osalconf.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 templates/halconf.h
  15. * @brief Bare-metal OSAL configuration header.
  16. *
  17. * @addtogroup OSAL_CONF
  18. * @{
  19. */
  20. #ifndef OSALCONF_H
  21. #define OSALCONF_H
  22. /**
  23. * @brief Frequency in Hertz of the system tick.
  24. */
  25. #if !defined(OSAL_ST_FREQUENCY) || defined(__DOXYGEN__)
  26. #define OSAL_ST_FREQUENCY 1000
  27. #endif
  28. /**
  29. * @brief Enables OSAL assertions.
  30. */
  31. #if !defined(OSAL_DBG_ENABLE_ASSERTS) || defined(__DOXYGEN__)
  32. #define OSAL_DBG_ENABLE_ASSERTS FALSE
  33. #endif
  34. /**
  35. * @brief Enables OSAL functions parameters checks.
  36. */
  37. #if !defined(OSAL_DBG_ENABLE_CHECKS) || defined(__DOXYGEN__)
  38. #define OSAL_DBG_ENABLE_CHECKS FALSE
  39. #endif
  40. /**
  41. * @brief OSAL initialization hook.
  42. */
  43. #if !defined(OSAL_INIT_HOOK) || defined(__DOXYGEN__)
  44. #define OSAL_INIT_HOOK() { \
  45. }
  46. #endif
  47. /**
  48. * @brief Idle loop hook macro.
  49. */
  50. #if !defined(OSAL_IDLE_HOOK) || defined(__DOXYGEN__)
  51. #define OSAL_IDLE_HOOK() { \
  52. }
  53. #endif
  54. #endif /* OSALCONF_H */
  55. /** @} */