-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser.h
46 lines (28 loc) · 1.39 KB
/
user.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef _USER_H_
#define _USER_H_
/******************************************************************************/
/* User Level #define Macros */
/******************************************************************************/
#define led _LATA2
/******************************************************************************/
/* System Level #define Macros */
/******************************************************************************/
/* Microcontroller MIPs (FCY) */
#define SYS_FREQ 80000000UL
#define FCY SYS_FREQ/2
#define BAUDRATEAX12 57600
#define BRGVALAX12 ((FCY / BAUDRATEAX12 / 16) - 1)
#define BAUDRATERASPI 57600
#define BRGVALRASPI ((FCY / BAUDRATERASPI / 16) - 1)
/******************************************************************************/
/* 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 */
void InitTimers();
//void writeStringToUART (const char* msg);
// initialize all things
void Init_All(int);
#endif // _USER_H_