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