Projet

Général

Profil

Fichiers » Historique » Version 24

Patrice Nadeau, 2025-04-19 10:32

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