Fichiers » Historique » Version 43
Patrice Nadeau, 2025-10-18 13:28
1 | 1 | Patrice Nadeau | # Fichiers |
---|---|---|---|
2 | 2 | Patrice Nadeau | |
3 | 35 | Patrice Nadeau | Format selon la commande `tree --charset ascii` |
4 | 13 | Patrice Nadeau | |
5 | 11 | Patrice Nadeau | ``` |
6 | Projet |
||
7 | 33 | Patrice Nadeau | . |
8 | 36 | Patrice Nadeau | |-- AUTHORS : Fichier contenant les noms et courriels des auteurs |
9 | 31 | Patrice Nadeau | |-- bin : Répertoire contenant le fichier exécutable et les librairies compilées |
10 | 1 | Patrice Nadeau | |-- ChangeLog : Fichier des changements |
11 | 32 | Patrice Nadeau | |-- config.h : Fichier optionel contenant les macros communes au programme dans son ensemble (-imacros) |
12 | 1 | Patrice Nadeau | |-- COPYING : Fichier de licence (standard GNU) |
13 | 33 | Patrice Nadeau | |-- docs : Répertoire de la documentation (.pdf) |
14 | 31 | Patrice Nadeau | |-- include : Répertoire des fichiers d’en-tête (.h) |
15 | 26 | Patrice Nadeau | |-- INSTALL |
16 | 43 | Patrice Nadeau | |-- lib : Répertoire des libraires externes (liens symboliques) |
17 | 31 | Patrice Nadeau | |-- Makefile.in : Fichier d'informations spécifiques du projet pour le Makefile |
18 | 36 | Patrice Nadeau | |-- NEWS : |
19 | 34 | Patrice Nadeau | |-- obj : Répertoire contenant les objets (.o) |
20 | |-- README : Fichier d'informations du projet, en format markdown |
||
21 | 4 | Patrice Nadeau | `-- src : Répertoire des fichiers sources (.c) |
22 | ``` |
||
23 | 10 | Patrice Nadeau | |
24 | 42 | Patrice Nadeau | 1. Nom du fichier : |
25 | * Un préfixe en anglais de 8 caractères maximum pouvant contenir : |
||
26 | * Lettres minuscule |
||
27 | * Chiffres |
||
28 | * Trait de soulignement |
||
29 | * Un des suffixe suivants : |
||
30 | * `.h` : entête |
||
31 | * `.c` : sources |
||
32 | 1. Contenus |
||
33 | * Section Doxygen : |
||
34 | 1. `@file` : Le nom du fichier |
||
35 | 1. `@brief`: Une brève description |
||
36 | 1. `@version`: Le numéro de version |
||
37 | 1. `@date`: La date de dernière modification |
||
38 | 1. `@author`: Une liste des participant(e)s et leur courriel |
||
39 | 1. `@copyright`: La liste des années et participant(e)s |
||
40 | * Les fichiers d’entête contiennent en plus |
||
41 | 1. Une définition macro pour éviter de ré-inclure le fichier (<https://fr.wikipedia.org/wiki/Include_guard>). |
||
42 | 1 | Patrice Nadeau | |
43 | 2 | Patrice Nadeau | ## Exemple |
44 | 1 | Patrice Nadeau | ```c |
45 | 2 | Patrice Nadeau | #ifndef _usart_h |
46 | 1 | Patrice Nadeau | #define _usart_h |
47 | 40 | Patrice Nadeau | |
48 | 2 | Patrice Nadeau | /** |
49 | * @file : test.h |
||
50 | 1 | Patrice Nadeau | * @brief ATMEL AVR 8-bit C librairie |
51 | 2 | Patrice Nadeau | * @version 0.00.01 |
52 | * @date 2023-02-26 |
||
53 | 6 | Patrice Nadeau | * @author Patrice Nadeau <pnadeau@patricenadeau.com> |
54 | 2 | Patrice Nadeau | * @copyright 2023 Patrice Nadeau |
55 | 1 | Patrice Nadeau | * @pre AVR supportés (testés en gras) : |
56 | * - ATmega88 |
||
57 | * - ATmega168 |
||
58 | * - **ATmega328P** |
||
59 | */ |
||
60 | |||
61 | ... |
||
62 | |||
63 | 2 | Patrice Nadeau | #endif /*_usart_h*/ |
64 | 1 | Patrice Nadeau | ``` |