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