-
Notifications
You must be signed in to change notification settings - Fork 0
/
project_information.txt
59 lines (46 loc) · 2.55 KB
/
project_information.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<Application Description for Project Goes Here>
Project Owner(s):
Author(s):
Hardware Platform:
Debuggers Used:
Programmers Used:
MPLAB Version:
C Compiler Version:
Final Checksum:
FILES INCLUDED IN THE PROJECT TREE:
system.h - contains custom oscillator configuration function prototypes,
reset source evaluation function prototypes, and non-peripheral
microcontroller initialization function prototypes. It also may contain
system level #define macros and variables. This file is included
by system.c
user.h - contains parameters and function prototypes used in user.c for user
level functions, for example, InitApp();
configuration_bits.c - contains device configuration bit macros. Refer to
the comments in configuration_bits.c for instructions on where to get
information about device configuration bits and their corresponding macros.
exceptions.c - generally speaking, a user would not modify this file unless
they were having problems resulting in exceptions. If the code in this file
is entered, that means there is a critical hardware problem or software bug.
The cause register will need evaluated by the user to determine the source
of the problem. A macro stub is available which can be added to write
the exception cause to flash for troubleshooting exceptions in release mode.
interrupts.c - this file contains example stubs for interrupts. The user would
put the interrupt vectors for their application in interrupts.c.
main.c - this is the main code for the project. global variables and the
main() function are located in main.c The user would put their primary program
flow in main.c, and the operation should be contained in main.c with an
infinite loop.
system.c - contains custom oscillator configuration functions, reset source
evaluation functions, and non-peripheral microcontroller initialization
functions. Functions in system.c would often be called from main.c during
device initialization.
user.c - Custom user algorithms, user peripheral initialization, data
computation functions, and calculation functions would go here. Prototypes for
user.c would go in user.h.
FILES INCLUDED IN THE PROJECT BUT NOT IN THE PROJECT TREE:
#include <plib.h> /* Include to use PIC32 peripheral libraries */
#include <stdint.h> /* For uint32_t definition */
#include <stdbool.h> /* For true/false definition */
#include <sys/attribs.h> /* For __ISR definition */
These files come with the C32 compiler. Check the compiler documentation for
more information on these files.