hal_wdg_lld.c 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 hal_wdg_lld.c
  15. * @brief WDG Driver subsystem low level driver source template.
  16. *
  17. * @addtogroup WDG
  18. * @{
  19. */
  20. #include "hal.h"
  21. #if (HAL_USE_WDG == TRUE) || defined(__DOXYGEN__)
  22. /*===========================================================================*/
  23. /* Driver local definitions. */
  24. /*===========================================================================*/
  25. /*===========================================================================*/
  26. /* Driver exported variables. */
  27. /*===========================================================================*/
  28. #if (PLATFORM_WDG_USE_WDG1 == TRUE) || defined(__DOXYGEN__)
  29. WDGDriver WDGD1;
  30. #endif
  31. /*===========================================================================*/
  32. /* Driver local variables. */
  33. /*===========================================================================*/
  34. /*===========================================================================*/
  35. /* Driver local functions. */
  36. /*===========================================================================*/
  37. /*===========================================================================*/
  38. /* Driver interrupt handlers. */
  39. /*===========================================================================*/
  40. /*===========================================================================*/
  41. /* Driver exported functions. */
  42. /*===========================================================================*/
  43. /**
  44. * @brief Low level WDG driver initialization.
  45. *
  46. * @notapi
  47. */
  48. void wdg_lld_init(void) {
  49. }
  50. /**
  51. * @brief Configures and activates the WDG peripheral.
  52. *
  53. * @param[in] wdgp pointer to the @p WDGDriver object
  54. *
  55. * @notapi
  56. */
  57. void wdg_lld_start(WDGDriver *wdgp) {
  58. (void)wdgp;
  59. }
  60. /**
  61. * @brief Deactivates the WDG peripheral.
  62. *
  63. * @param[in] wdgp pointer to the @p WDGDriver object
  64. *
  65. * @notapi
  66. */
  67. void wdg_lld_stop(WDGDriver *wdgp) {
  68. (void)wdgp;
  69. }
  70. /**
  71. * @brief Reloads WDG's counter.
  72. *
  73. * @param[in] wdgp pointer to the @p WDGDriver object
  74. *
  75. * @notapi
  76. */
  77. void wdg_lld_reset(WDGDriver * wdgp) {
  78. (void)wdgp;
  79. }
  80. #endif /* HAL_USE_WDG */
  81. /** @} */