Keyboard firmwares for Atmel AVR and Cortex-M
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

board.c 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
  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. #include "hal.h"
  14. /**
  15. * @brief PAL setup.
  16. * @details Digital I/O ports static configuration as defined in @p board.h.
  17. * This variable is used by the HAL when initializing the PAL driver.
  18. */
  19. #if HAL_USE_PAL || defined(__DOXYGEN__)
  20. const PALConfig pal_default_config =
  21. {
  22. {VAL_GPIOAODR, VAL_GPIOACRL, VAL_GPIOACRH},
  23. {VAL_GPIOBODR, VAL_GPIOBCRL, VAL_GPIOBCRH},
  24. {VAL_GPIOCODR, VAL_GPIOCCRL, VAL_GPIOCCRH},
  25. {VAL_GPIODODR, VAL_GPIODCRL, VAL_GPIODCRH},
  26. {VAL_GPIOEODR, VAL_GPIOECRL, VAL_GPIOECRH},
  27. };
  28. #endif
  29. /*
  30. * Early initialization code.
  31. * This initialization must be performed just after stack setup and before
  32. * any other initialization.
  33. */
  34. void __early_init(void) {
  35. stm32_clock_init();
  36. }
  37. /*
  38. * Board-specific initialization code.
  39. */
  40. void boardInit(void) {
  41. }