wdt.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /**
  2. * \file
  3. *
  4. * \brief Instance description for WDT
  5. *
  6. * Copyright (c) 2018 Microchip Technology Inc.
  7. *
  8. * \license_start
  9. *
  10. * \page License
  11. *
  12. * SPDX-License-Identifier: Apache-2.0
  13. *
  14. * Licensed under the Apache License, Version 2.0 (the "License");
  15. * you may not use this file except in compliance with the License.
  16. * You may obtain a copy of the License at
  17. *
  18. * http://www.apache.org/licenses/LICENSE-2.0
  19. *
  20. * Unless required by applicable law or agreed to in writing, software
  21. * distributed under the License is distributed on an "AS IS" BASIS,
  22. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  23. * See the License for the specific language governing permissions and
  24. * limitations under the License.
  25. *
  26. * \license_stop
  27. *
  28. */
  29. /* file generated from device description version 2018-05-30T11:07:17Z */
  30. #ifndef _SAML11_WDT_INSTANCE_H_
  31. #define _SAML11_WDT_INSTANCE_H_
  32. /* ========== Register definition for WDT peripheral ========== */
  33. #if (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  34. #define REG_WDT_CTRLA (0x40002000) /**< (WDT) Control */
  35. #define REG_WDT_CONFIG (0x40002001) /**< (WDT) Configuration */
  36. #define REG_WDT_EWCTRL (0x40002002) /**< (WDT) Early Warning Interrupt Control */
  37. #define REG_WDT_INTENCLR (0x40002004) /**< (WDT) Interrupt Enable Clear */
  38. #define REG_WDT_INTENSET (0x40002005) /**< (WDT) Interrupt Enable Set */
  39. #define REG_WDT_INTFLAG (0x40002006) /**< (WDT) Interrupt Flag Status and Clear */
  40. #define REG_WDT_SYNCBUSY (0x40002008) /**< (WDT) Synchronization Busy */
  41. #define REG_WDT_CLEAR (0x4000200C) /**< (WDT) Clear */
  42. #else
  43. #define REG_WDT_CTRLA (*(__IO uint8_t*)0x40002000U) /**< (WDT) Control */
  44. #define REG_WDT_CONFIG (*(__IO uint8_t*)0x40002001U) /**< (WDT) Configuration */
  45. #define REG_WDT_EWCTRL (*(__IO uint8_t*)0x40002002U) /**< (WDT) Early Warning Interrupt Control */
  46. #define REG_WDT_INTENCLR (*(__IO uint8_t*)0x40002004U) /**< (WDT) Interrupt Enable Clear */
  47. #define REG_WDT_INTENSET (*(__IO uint8_t*)0x40002005U) /**< (WDT) Interrupt Enable Set */
  48. #define REG_WDT_INTFLAG (*(__IO uint8_t*)0x40002006U) /**< (WDT) Interrupt Flag Status and Clear */
  49. #define REG_WDT_SYNCBUSY (*(__I uint32_t*)0x40002008U) /**< (WDT) Synchronization Busy */
  50. #define REG_WDT_CLEAR (*(__O uint8_t*)0x4000200CU) /**< (WDT) Clear */
  51. #endif /* (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  52. /* ========== Instance Parameter definitions for WDT peripheral ========== */
  53. #define WDT_INSTANCE_ID 8
  54. #endif /* _SAML11_WDT_INSTANCE_ */