portab.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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.h
  15. * @brief Application portability macros and structures.
  16. *
  17. * @addtogroup application_portability
  18. * @{
  19. */
  20. #ifndef PORTAB_H
  21. #define PORTAB_H
  22. /*===========================================================================*/
  23. /* Module constants. */
  24. /*===========================================================================*/
  25. #define PORTAB_USB1 USBD1
  26. #define PORTAB_SDU1 SDU1
  27. #define PORTAB_BLINK_LED1 PAL_LINE(GPIOD, GPIOD_LED3)
  28. /*===========================================================================*/
  29. /* Module pre-compile time settings. */
  30. /*===========================================================================*/
  31. /*===========================================================================*/
  32. /* Derived constants and error checks. */
  33. /*===========================================================================*/
  34. /*===========================================================================*/
  35. /* Module data structures and types. */
  36. /*===========================================================================*/
  37. /*===========================================================================*/
  38. /* Module macros. */
  39. /*===========================================================================*/
  40. /*===========================================================================*/
  41. /* External declarations. */
  42. /*===========================================================================*/
  43. extern const MMCConfig portab_mmccfg;
  44. extern MMCDriver MMCD1;
  45. #ifdef __cplusplus
  46. extern "C" {
  47. #endif
  48. void portab_setup(void);
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52. /*===========================================================================*/
  53. /* Module inline functions. */
  54. /*===========================================================================*/
  55. #endif /* PORTAB_H */
  56. /** @} */