Fichiers » Historique » Version 13
Patrice Nadeau, 2025-04-16 17:30
1 | 1 | Patrice Nadeau | # Fichiers |
---|---|---|---|
2 | 2 | Patrice Nadeau | |
3 | 13 | Patrice Nadeau | Format `tree --charset unicode` |
4 | |||
5 | 11 | Patrice Nadeau | ``` |
6 | Projet |
||
7 | |-- AUTHORS |
||
8 | |-- include |
||
9 | 12 | Patrice Nadeau | | `-- test.h |
10 | 11 | Patrice Nadeau | |-- src |
11 | 12 | Patrice Nadeau | | `-- test.c |
12 | 13 | Patrice Nadeau | `-- README |
13 | 11 | Patrice Nadeau | ``` |
14 | |||
15 | 4 | Patrice Nadeau | Les fichiers suivants sont des exceptions : |
16 | 7 | Patrice Nadeau | * `AUTHORS` : Fichier texte des noms et courriels des auteurs |
17 | 9 | Patrice Nadeau | * `ChangeLog` : |
18 | 8 | Patrice Nadeau | * `config.h` : Contient les macros communes au programme dans son ensemble (-imacros) |
19 | 4 | Patrice Nadeau | * `COPYING` : Contient les information de licence |
20 | 9 | Patrice Nadeau | * `INSTALL` : |
21 | 7 | Patrice Nadeau | * `Makefile.in` : Contient les informations spécifiques du projet pour le Makefile |
22 | 9 | Patrice Nadeau | * `NEWS` : |
23 | 4 | Patrice Nadeau | * `README` : Contient les informations d'un projet, en format *markdown* |
24 | |||
25 | 10 | Patrice Nadeau | |
26 | 1 | Patrice Nadeau | Le nom des fichiers DOIT être composé de la manière suivante : |
27 | 5 | Patrice Nadeau | 1. Un préfixe en anglais de 8 caractères maximum |
28 | 2 | Patrice Nadeau | 1. Lettres minuscule |
29 | 1. Chiffres |
||
30 | 1. Trait de soulignement |
||
31 | 1. Un des suffixe suivants : |
||
32 | 1. `.h` : entête |
||
33 | 1. `.c` : sources |
||
34 | 1. Contient une section Doxygen : |
||
35 | 1. `@file` : Le nom du fichier |
||
36 | 1. `@brief`: Une brève description |
||
37 | 1. `@version`: Le numéro de version |
||
38 | 1. `@date`: La date de dernière modification |
||
39 | 1. `@author`: Une liste des participant(e)s et leur courriel |
||
40 | 1. `@copyright`: La liste des années et participant(e)s |
||
41 | 1. Les fichiers d’entête contiennent en plus |
||
42 | 1. Une définition macro pour éviter de ré-inclure le fichier. |
||
43 | 1 | Patrice Nadeau | |
44 | 2 | Patrice Nadeau | ## Exemple |
45 | 1 | Patrice Nadeau | ```c |
46 | /** |
||
47 | 2 | Patrice Nadeau | #ifndef _usart_h |
48 | #define _usart_h |
||
49 | /** |
||
50 | * @file : test.h |
||
51 | 1 | Patrice Nadeau | * @brief ATMEL AVR 8-bit C librairie |
52 | 2 | Patrice Nadeau | * @version 0.00.01 |
53 | * @date 2023-02-26 |
||
54 | 6 | Patrice Nadeau | * @author Patrice Nadeau <pnadeau@patricenadeau.com> |
55 | 2 | Patrice Nadeau | * @copyright 2023 Patrice Nadeau |
56 | 1 | Patrice Nadeau | * @pre AVR supportés (testés en gras) : |
57 | * - ATmega88 |
||
58 | * - ATmega168 |
||
59 | * - **ATmega328P** |
||
60 | */ |
||
61 | |||
62 | ... |
||
63 | |||
64 | 2 | Patrice Nadeau | #endif /*_usart_h*/ |
65 | 1 | Patrice Nadeau | ``` |