forked from poppy-project/poppy_com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPeriphMaster.c
56 lines (39 loc) · 915 Bytes
/
PeriphMaster.c
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
56
/**
* \file PeriphMaster.c
* \brief application carteperiph
* \details this file is the main application it don't must any reference to any hardware
*/
/**
* This is the minimal include you will need to use poppy-com in a module
* application
*/
#include "poppy-com/poppyNetwork.h"
#include "include/protocol.h"
#include "include/HAL.h" // Hardware abstraction layer
#include "include/globaletypedef.h"
#include "include/PeriphMaster.h"
#include "include/utility.h"
#include "include/init.h"
#include "include/pwm.h"
#include "include/isr.h" //driver of interruption
extern struct data system_data;
/**
* \brief main
*
* \return none
*
* \details Details
*/int main(void)
{
cli();
init();
pwm_init();
isr_init();
system_data.led.A=0xff;
sei();
poppyNetwork_init(tx_cb, rx_cb, rxgc_cb);
while(1)
{
set_color_s(system_data.led);
}
}