]> git.gir.st - tmk_keyboard.git/blob - keyboard/kl27z_kbd/boards/ELF/board.h
Merge branch 'kl27z'
[tmk_keyboard.git] / keyboard / kl27z_kbd / boards / ELF / board.h
1 /*
2 ChibiOS - (C) 2015-2016 flabbergast <s3+flabbergast@sdfeu.org>
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17 #ifndef _BOARD_H_
18 #define _BOARD_H_
19
20 /*
21 * Setup for a custom KL27Z breakout board.
22 */
23
24 /*
25 * Board identifier.
26 */
27 #define BOARD_KL27Z_BREAKOUT
28 #define BOARD_NAME "Custom KL27Z breakout"
29
30 /*
31 * MCU type
32 */
33 #define KL27Zxxx
34
35 /*
36 * Onboard features.
37 */
38 //#define GPIO_LED IOPORT1
39 //#define PIN_LED 2
40 // PTD7 on ELF
41 #define GPIO_LED IOPORT4
42 #define PIN_LED 7
43 #define GPIO_BUTTON IOPORT1
44 #define PIN_BUTTON 4
45
46 #if !defined(_FROM_ASM_)
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50 void boardInit(void);
51 #ifdef __cplusplus
52 }
53 #endif
54 #endif /* _FROM_ASM_ */
55
56 #endif /* _BOARD_H_ */
Imprint / Impressum