Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

board.h 1.3KB

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