forked from AnthonyWaithaka/twr_k60n512
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.h
41 lines (31 loc) · 863 Bytes
/
main.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
/*
* File: main.h
*
* Copyright (c) 2013, 0xc0170
*
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://www.wtfpl.net/ for more details.
*
*/
#ifndef MAIN_H
#define MAIN_H
#define BUTTON1 (1 << 19)
#define LED1 (1 << 11)
#define LED2 (1 << 28)
#define LED1_ON GPIOA_PCOR = LED1
#define LED2_ON GPIOA_PCOR = LED2
#define LED1_OFF GPIOA_PSOR = LED1
#define LED2_OFF GPIOA_PSOR = LED2
#define LED1_TOGGLE GPIOA_PTOR = LED1
#define LED2_TOGGLE GPIOA_PTOR = LED2
#if defined (__cplusplus)
extern "C" {
#endif
int main(void);
#if defined (__cplusplus)
}
#endif
#endif