-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsystem.h
26 lines (20 loc) · 1.08 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
26
/******************************************************************************/
/* System Level #define Macros */
/******************************************************************************/
#include <plib.h>
#include <GenericTypeDefs.h>
/* TODO Define system operating frequency */
#define MIKROSHIT
/* Microcontroller MIPs (FCY) */
#define SYS_FREQ 80000000L
#define FCY SYS_FREQ
// Specific to PIC32MX processor
//#define GetSystemClock() (80000000ul) // 8 MHz/2 x 20 PLL -or- 12MHz/3 x 20 PLL
//#define GetPeripheralClock() GetSystemClock() //FPBDIV = DIV_1
//#define GetInstructionClock() (GetSystemClock())
/******************************************************************************/
/* System Function Prototypes */
/******************************************************************************/
/* Custom oscillator configuration funtions, reset source evaluation
functions, and other non-peripheral microcontroller initialization functions
go here. */