-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsystem.h
More file actions
31 lines (24 loc) · 1.09 KB
/
system.h
File metadata and controls
31 lines (24 loc) · 1.09 KB
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
#ifndef _SYSTEM_H
#define _SYSTEM_H
/******************************************************************************/
/* System Level #define Macros */
/******************************************************************************/
#include <libpic30.h> // includes delay_us and delay_ms
#include <stdint.h>
/* ****** G E N E R I C D E F I N I T I O N S ************************************************/
#define HIGH 1
#define LOW 0
#define OUTPUT 0
#define INPUT 1
#define SET 1
#define CLEAR 0
/* Microcontroller MIPs (FCY) */
#define SYS_FREQ 32000000UL
/******************************************************************************/
/* 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 */
#endif