opamp.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /**
  2. * \file
  3. *
  4. * \brief Instance description for OPAMP
  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_OPAMP_INSTANCE_H_
  31. #define _SAML11_OPAMP_INSTANCE_H_
  32. /* ========== Register definition for OPAMP peripheral ========== */
  33. #if (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  34. #define REG_OPAMP_CTRLA (0x42003000) /**< (OPAMP) Control A */
  35. #define REG_OPAMP_STATUS (0x42003002) /**< (OPAMP) Status */
  36. #define REG_OPAMP_OPAMPCTRL (0x42003004) /**< (OPAMP) OPAMP n Control */
  37. #define REG_OPAMP_OPAMPCTRL0 (0x42003004) /**< (OPAMP) OPAMP 0 Control */
  38. #define REG_OPAMP_OPAMPCTRL1 (0x42003008) /**< (OPAMP) OPAMP 1 Control */
  39. #define REG_OPAMP_OPAMPCTRL2 (0x4200300C) /**< (OPAMP) OPAMP 2 Control */
  40. #define REG_OPAMP_RESCTRL (0x42003010) /**< (OPAMP) Resister Control */
  41. #else
  42. #define REG_OPAMP_CTRLA (*(__IO uint8_t*)0x42003000U) /**< (OPAMP) Control A */
  43. #define REG_OPAMP_STATUS (*(__I uint8_t*)0x42003002U) /**< (OPAMP) Status */
  44. #define REG_OPAMP_OPAMPCTRL (*(__IO uint32_t*)0x42003004U) /**< (OPAMP) OPAMP n Control */
  45. #define REG_OPAMP_OPAMPCTRL0 (*(__IO uint32_t*)0x42003004U) /**< (OPAMP) OPAMP 0 Control */
  46. #define REG_OPAMP_OPAMPCTRL1 (*(__IO uint32_t*)0x42003008U) /**< (OPAMP) OPAMP 1 Control */
  47. #define REG_OPAMP_OPAMPCTRL2 (*(__IO uint32_t*)0x4200300CU) /**< (OPAMP) OPAMP 2 Control */
  48. #define REG_OPAMP_RESCTRL (*(__IO uint8_t*)0x42003010U) /**< (OPAMP) Resister Control */
  49. #endif /* (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  50. /* ========== Instance Parameter definitions for OPAMP peripheral ========== */
  51. #define OPAMP_INSTANCE_ID 76
  52. #endif /* _SAML11_OPAMP_INSTANCE_ */