Projet

Général

Profil

Fichiers » Historique » Version 15

Patrice Nadeau, 2025-04-16 17:53

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