portab.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 USBD2
  26. #define PORTAB_SDU1 SDU2
  27. #define PORTAB_BLINK_LED1 LINE_ARD_D13
  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. #ifdef __cplusplus
  44. extern "C" {
  45. #endif
  46. void portab_setup(void);
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50. /*===========================================================================*/
  51. /* Module inline functions. */
  52. /*===========================================================================*/
  53. #endif /* PORTAB_H */
  54. /** @} */