Projet

Général

Profil

Fichiers » Historique » Version 16

Patrice Nadeau, 2025-04-16 18:15

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