portab.c 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. ChibiOS - Copyright (C) 2006..2018 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. /**
  14. * @file portab.c
  15. * @brief Application portability module code.
  16. *
  17. * @addtogroup application_portability
  18. * @{
  19. */
  20. #include "hal.h"
  21. #include "portab.h"
  22. /*===========================================================================*/
  23. /* Module local definitions. */
  24. /*===========================================================================*/
  25. /*===========================================================================*/
  26. /* Module exported variables. */
  27. /*===========================================================================*/
  28. /*===========================================================================*/
  29. /* Module local types. */
  30. /*===========================================================================*/
  31. /*===========================================================================*/
  32. /* Module local variables. */
  33. /*===========================================================================*/
  34. /*===========================================================================*/
  35. /* Module local functions. */
  36. /*===========================================================================*/
  37. /*===========================================================================*/
  38. /* Module exported functions. */
  39. /*===========================================================================*/
  40. void portab_setup(void) {
  41. /*
  42. * Initialize board LED.
  43. */
  44. palSetLineMode(LINE_ARD_D13, PAL_MODE_OUTPUT_PUSHPULL);
  45. }
  46. /** @} */