-
Notifications
You must be signed in to change notification settings - Fork 0
/
MB1_System.h
55 lines (41 loc) · 1.16 KB
/
MB1_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
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
/**
* @file MB1_System.h
* @author Pham Huu Dang Nhat <[email protected]>, HLib MBoard team.
* @version 1.2
* @date 9-4-2014
* @brief This is the entry point of MBoard-1 system.
*/
#ifndef __MB1_SYSTEM_H
#define __MB1_SYSTEM_H
/* Inlcudes */
#include "MB1_Glb.h"
#include "MB1_Leds.h"
#include "MB1_Serial_t.h"
#include "MB1_Misc.h"
#include "MB1_ISR.h"
#include "MB1_SPI.h"
#include "MB1_Buttons.h"
#include "hl_crc.h"
/**<-------------- Global vars and objects in the system of MB1 ------------*/
/**< SPIs */
extern SPI MB1_SPI1;
extern SPI MB1_SPI2;
/**< LEDs */
extern Led MB1_Led_red;
extern Led MB1_Led_green;
/**< Buttons */
extern Button MB1_usrBtn0;
extern Button MB1_usrBtn1;
/**< USARTs */
extern serial_t MB1_USART1;
extern serial_t MB1_USART2;
/**< CRC */
extern CRC_c MB1_crc;
/**< Misc, global functions ! */
/**< ISRs */
extern ISRMgr MB1_ISRs;
/**<-------------- Global vars and objects in the system of MB1 ------------*/
/**<-------------- MB1 system functions ------------*/
void MB1_system_init (void);
/**<-------------- MB1 system functions ------------*/
#endif // __MB1_SYSTEM_H