Projet

Général

Profil

Fichiers » Historique » Version 44

Patrice Nadeau, 2025-11-02 09:39

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