-
Notifications
You must be signed in to change notification settings - Fork 1
/
system.h
26 lines (18 loc) · 1.07 KB
/
system.h
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
/******************************************************************************/
/* System Level #define Macros */
/******************************************************************************/
/* TODO Define system operating frequency */
/* Microcontroller MIPs (FCY) */
#define SYS_FREQ 8000000L
#define FCY SYS_FREQ/2
/* Device Flash Memory Configuration */
#define PM_INSTR_SIZE 4 //bytes per instruction
#define PM_ROW_SIZE 256 //user flash row size in bytes
#define PM_PAGE_SIZE 2048 //user flash page size in bytes
/******************************************************************************/
/* System Function Prototypes */
/******************************************************************************/
/* Custom oscillator configuration funtions, reset source evaluation
functions, and other non-peripheral microcontroller initialization functions
go here. */
void ConfigureOscillator(void); /* Handles clock switching/osc initialization */