-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.c
51 lines (39 loc) · 743 Bytes
/
main.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
/*
0xA000 0x37000
0x20000900 0x3700
0x10000 0x30000
0x20000800 0x3800
*/
//#pragma ARM
#include "nrf51.h"
#include "nrf51422_peripherals.h"
#include "nrf51_bitfields.h"
#include "stdio.h"
#include "stdlib.h"
#include "nrf_delay.h"
#include "nrf_gpio.h"
#include "SEGGER_RTT.h"
#include "nrf_temp.h"
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include "Universal.h"
int main(void) {
uint32_t temperature;
//printf("Test\r\n");
init();
Wait_For_Button_Press(0);
Bootloader();
BlinkLEDS(10);
while(1==1)
{
SetLEDS( ReadButtons() );
//SetLEDS ( iterator++ );
//nrf_delay_ms(1000);
//temperature = ReadTemperature();
}
//return 0;
}