-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmirp.cpp
More file actions
31 lines (25 loc) · 768 Bytes
/
mirp.cpp
File metadata and controls
31 lines (25 loc) · 768 Bytes
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
#include "mirp.h"
int main(void) {
sei(); // Enable interrupts
StdMsg::Init();
// Check if uart communication is avaliable
// if(UART::IsAvailable()) {
// if(StdMsg::CommandCompare(UART::SendCommand(ASK_NETWORK_TYPE),
// CLIENT_TYPE)) {
// UART::Print("client_mode\n");
// // initialise client_mode
// } else {
// UART::Print("standalone_mode\n");
// // assume that node is standalone in node network
// // send UDP command to attempt to communicate with other nodes...
// }
// } else {
// // Not connected
// //StdMsg::SendWarning(MSG_NOT_CONNECTED);
// }
// UART::Print("abc\n");
Modules::Init();
Modules::ExecuteSetup();
Modules::ExecuteLoop();
return 0;
}