Implement a secure ICS protocol targeting LoRa Node151 microcontroller for controlling irrigation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

57 lines
2.8 KiB

  1. /**
  2. * \file
  3. *
  4. * \brief Instance description for PM
  5. *
  6. * Copyright (c) 2016 Atmel Corporation,
  7. * a wholly owned subsidiary of Microchip Technology Inc.
  8. *
  9. * \asf_license_start
  10. *
  11. * \page License
  12. *
  13. * Licensed under the Apache License, Version 2.0 (the "License");
  14. * you may not use this file except in compliance with the License.
  15. * You may obtain a copy of the Licence at
  16. *
  17. * http://www.apache.org/licenses/LICENSE-2.0
  18. *
  19. * Unless required by applicable law or agreed to in writing, software
  20. * distributed under the License is distributed on an "AS IS" BASIS,
  21. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  22. * See the License for the specific language governing permissions and
  23. * limitations under the License.
  24. *
  25. * \asf_license_stop
  26. *
  27. */
  28. #ifndef _SAML21_PM_INSTANCE_
  29. #define _SAML21_PM_INSTANCE_
  30. /* ========== Register definition for PM peripheral ========== */
  31. #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  32. #define REG_PM_CTRLA (0x40000000) /**< \brief (PM) Control A */
  33. #define REG_PM_SLEEPCFG (0x40000001) /**< \brief (PM) Sleep Configuration */
  34. #define REG_PM_PLCFG (0x40000002) /**< \brief (PM) Performance Level Configuration */
  35. #define REG_PM_INTENCLR (0x40000004) /**< \brief (PM) Interrupt Enable Clear */
  36. #define REG_PM_INTENSET (0x40000005) /**< \brief (PM) Interrupt Enable Set */
  37. #define REG_PM_INTFLAG (0x40000006) /**< \brief (PM) Interrupt Flag Status and Clear */
  38. #define REG_PM_STDBYCFG (0x40000008) /**< \brief (PM) Standby Configuration */
  39. #define REG_PM_PWSAKDLY (0x4000000C) /**< \brief (PM) Power Switch Acknowledge Delay */
  40. #else
  41. #define REG_PM_CTRLA (*(RwReg8 *)0x40000000UL) /**< \brief (PM) Control A */
  42. #define REG_PM_SLEEPCFG (*(RwReg8 *)0x40000001UL) /**< \brief (PM) Sleep Configuration */
  43. #define REG_PM_PLCFG (*(RwReg8 *)0x40000002UL) /**< \brief (PM) Performance Level Configuration */
  44. #define REG_PM_INTENCLR (*(RwReg8 *)0x40000004UL) /**< \brief (PM) Interrupt Enable Clear */
  45. #define REG_PM_INTENSET (*(RwReg8 *)0x40000005UL) /**< \brief (PM) Interrupt Enable Set */
  46. #define REG_PM_INTFLAG (*(RwReg8 *)0x40000006UL) /**< \brief (PM) Interrupt Flag Status and Clear */
  47. #define REG_PM_STDBYCFG (*(RwReg16*)0x40000008UL) /**< \brief (PM) Standby Configuration */
  48. #define REG_PM_PWSAKDLY (*(RwReg8 *)0x4000000CUL) /**< \brief (PM) Power Switch Acknowledge Delay */
  49. #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  50. /* ========== Instance parameters for PM peripheral ========== */
  51. #define PM_PD_NUM 3 // Number of switchable Power Domain
  52. #endif /* _SAML21_PM_INSTANCE_ */