(1) 프로젝트 시작 시 DIRECTORY 구성 참고

 Products                                                   (Products)
        Product Name                                            (name)
                Manuals                                                    (manuals)
                Software                                                    (Software)
                        Design and analysis                                   (Design)
                        Documents                                                (Doc)
                        Source                                                      (SRC)
                        Object Code                                               (OBJ)
                        Releases                                                   (Releases)
               Hardware                                                    (Hardware)
                        Designs                                                     (Design)
                        Schematics                                                (Schematic)
                        Layouts                                                     (Layout)

Software (Reusable Software Modules)                              (Software)
        Module Name                                                                  (module)
        Design                                                                            (Design)
        Source                                                                            (SRC)
        Documentation                                                                 (Doc)
        Releases                                                                        (Releases)

※ 한글/긴글을 모르는 Tool들 때문에 Directory Name는 영어/숫자 한 단어로 하는 게 좋다.


(2) .c Source 파일 내부는 다음 순서로 작성

- File Header (copyright message 등)
- Revision History
- #include files
- #define constant and macro
- Local data types (BYTE, U16, …)
- Local global variables
- Tables and Arrays
- Local functions prototypes
- Global function declarations
- Local function declarations


(3) .h Source 파일 내부는 다음 순서로 작성

- File Header (copyright message 등)
- Revision History
- #define constant and macro
- Global data types
- Global variables
- Externs to Tables and Arrays
- Global function prototypes

by 민트앤라떼 2012. 2. 20. 16:40