pm.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /**
  2. * \file
  3. *
  4. * \brief Instance description for PM
  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_PM_INSTANCE_H_
  31. #define _SAML11_PM_INSTANCE_H_
  32. /* ========== Register definition for PM peripheral ========== */
  33. #if (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  34. #define REG_PM_SLEEPCFG (0x40000401) /**< (PM) Sleep Configuration */
  35. #define REG_PM_PLCFG (0x40000402) /**< (PM) Performance Level Configuration */
  36. #define REG_PM_PWCFG (0x40000403) /**< (PM) Power Configuration */
  37. #define REG_PM_INTENCLR (0x40000404) /**< (PM) Interrupt Enable Clear */
  38. #define REG_PM_INTENSET (0x40000405) /**< (PM) Interrupt Enable Set */
  39. #define REG_PM_INTFLAG (0x40000406) /**< (PM) Interrupt Flag Status and Clear */
  40. #define REG_PM_STDBYCFG (0x40000408) /**< (PM) Standby Configuration */
  41. #else
  42. #define REG_PM_SLEEPCFG (*(__IO uint8_t*)0x40000401U) /**< (PM) Sleep Configuration */
  43. #define REG_PM_PLCFG (*(__IO uint8_t*)0x40000402U) /**< (PM) Performance Level Configuration */
  44. #define REG_PM_PWCFG (*(__IO uint8_t*)0x40000403U) /**< (PM) Power Configuration */
  45. #define REG_PM_INTENCLR (*(__IO uint8_t*)0x40000404U) /**< (PM) Interrupt Enable Clear */
  46. #define REG_PM_INTENSET (*(__IO uint8_t*)0x40000405U) /**< (PM) Interrupt Enable Set */
  47. #define REG_PM_INTFLAG (*(__IO uint8_t*)0x40000406U) /**< (PM) Interrupt Flag Status and Clear */
  48. #define REG_PM_STDBYCFG (*(__IO uint16_t*)0x40000408U) /**< (PM) Standby Configuration */
  49. #endif /* (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  50. /* ========== Instance Parameter definitions for PM peripheral ========== */
  51. #define PM_BIAS_RAM_HS 1 /* one if RAM HS can be back biased */
  52. #define PM_PD_NUM 1 /* Number of switchable Power Domain */
  53. #define PM_INSTANCE_ID 1
  54. #endif /* _SAML11_PM_INSTANCE_ */