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