Fichiers » Historique » Version 42
Patrice Nadeau, 2025-10-17 17:00
| 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 | 31 | Patrice Nadeau | |-- lib : Répertoire des libraires externes |
| 17 | 26 | Patrice Nadeau | | `-- lib1 (lien symbolique vers le projet de la librairie) |
| 18 | | |-- include |
||
| 19 | 18 | Patrice Nadeau | | `-- src |
| 20 | 31 | Patrice Nadeau | |-- Makefile.in : Fichier d'informations spécifiques du projet pour le Makefile |
| 21 | 36 | Patrice Nadeau | |-- NEWS : |
| 22 | 34 | Patrice Nadeau | |-- obj : Répertoire contenant les objets (.o) |
| 23 | |-- README : Fichier d'informations du projet, en format markdown |
||
| 24 | 4 | Patrice Nadeau | `-- src : Répertoire des fichiers sources (.c) |
| 25 | ``` |
||
| 26 | 10 | Patrice Nadeau | |
| 27 | 42 | Patrice Nadeau | 1. Nom du fichier : |
| 28 | * Un préfixe en anglais de 8 caractères maximum pouvant contenir : |
||
| 29 | * Lettres minuscule |
||
| 30 | * Chiffres |
||
| 31 | * Trait de soulignement |
||
| 32 | * Un des suffixe suivants : |
||
| 33 | * `.h` : entête |
||
| 34 | * `.c` : sources |
||
| 35 | 1. Contenus |
||
| 36 | * Section Doxygen : |
||
| 37 | 1. `@file` : Le nom du fichier |
||
| 38 | 1. `@brief`: Une brève description |
||
| 39 | 1. `@version`: Le numéro de version |
||
| 40 | 1. `@date`: La date de dernière modification |
||
| 41 | 1. `@author`: Une liste des participant(e)s et leur courriel |
||
| 42 | 1. `@copyright`: La liste des années et participant(e)s |
||
| 43 | * Les fichiers d’entête contiennent en plus |
||
| 44 | 1. Une définition macro pour éviter de ré-inclure le fichier (<https://fr.wikipedia.org/wiki/Include_guard>). |
||
| 45 | 1 | Patrice Nadeau | |
| 46 | 2 | Patrice Nadeau | ## Exemple |
| 47 | 1 | Patrice Nadeau | ```c |
| 48 | 2 | Patrice Nadeau | #ifndef _usart_h |
| 49 | 1 | Patrice Nadeau | #define _usart_h |
| 50 | 40 | Patrice Nadeau | |
| 51 | 2 | Patrice Nadeau | /** |
| 52 | * @file : test.h |
||
| 53 | 1 | Patrice Nadeau | * @brief ATMEL AVR 8-bit C librairie |
| 54 | 2 | Patrice Nadeau | * @version 0.00.01 |
| 55 | * @date 2023-02-26 |
||
| 56 | 6 | Patrice Nadeau | * @author Patrice Nadeau <pnadeau@patricenadeau.com> |
| 57 | 2 | Patrice Nadeau | * @copyright 2023 Patrice Nadeau |
| 58 | 1 | Patrice Nadeau | * @pre AVR supportés (testés en gras) : |
| 59 | * - ATmega88 |
||
| 60 | * - ATmega168 |
||
| 61 | * - **ATmega328P** |
||
| 62 | */ |
||
| 63 | |||
| 64 | ... |
||
| 65 | |||
| 66 | 2 | Patrice Nadeau | #endif /*_usart_h*/ |
| 67 | 1 | Patrice Nadeau | ``` |