hal_lld.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 LPC214x/hal_lld.h
  15. * @brief LPC214x HAL subsystem low level driver header.
  16. *
  17. * @addtogroup HAL
  18. * @{
  19. */
  20. #ifndef HAL_LLD_H
  21. #define HAL_LLD_H
  22. #include "lpc214x.h"
  23. #include "vic.h"
  24. /*===========================================================================*/
  25. /* Driver constants. */
  26. /*===========================================================================*/
  27. /**
  28. * @brief Defines the support for realtime counters in the HAL.
  29. */
  30. #define HAL_IMPLEMENTS_COUNTERS FALSE
  31. /**
  32. * @brief Platform name.
  33. */
  34. #define PLATFORM_NAME "LPC214x"
  35. /*===========================================================================*/
  36. /* Driver pre-compile time settings. */
  37. /*===========================================================================*/
  38. /**
  39. * @brief Default action for the non vectored IRQ handler, nothing.
  40. */
  41. #if !defined(LPC214x_NON_VECTORED_IRQ_HOOK) || defined(__DOXYGEN__)
  42. #define LPC214x_NON_VECTORED_IRQ_HOOK()
  43. #endif
  44. /*===========================================================================*/
  45. /* Derived constants and error checks. */
  46. /*===========================================================================*/
  47. /*===========================================================================*/
  48. /* Driver data structures and types. */
  49. /*===========================================================================*/
  50. /*===========================================================================*/
  51. /* Driver macros. */
  52. /*===========================================================================*/
  53. /*===========================================================================*/
  54. /* External declarations. */
  55. /*===========================================================================*/
  56. #ifdef __cplusplus
  57. extern "C" {
  58. #endif
  59. void hal_lld_init(void);
  60. void lpc214x_clock_init(void);
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64. #endif /* HAL_LLD_H */
  65. /** @} */