1 /* 2 * Copyright (c) 2024 Microchip 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef _MICROCHIP_PIC32CXSG_AC_INSTANCE_FIXUP_H_ 8 #define _MICROCHIP_PIC32CXSG_AC_INSTANCE_FIXUP_H_ 9 10 /* ========== Register definition for AC peripheral ========== */ 11 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 12 #define REG_AC_CTRLA (0x42002000) /**< \brief (AC) Control A */ 13 #define REG_AC_CTRLB (0x42002001) /**< \brief (AC) Control B */ 14 #define REG_AC_EVCTRL (0x42002002) /**< \brief (AC) Event Control */ 15 #define REG_AC_INTENCLR (0x42002004) /**< \brief (AC) Interrupt Enable Clear */ 16 #define REG_AC_INTENSET (0x42002005) /**< \brief (AC) Interrupt Enable Set */ 17 #define REG_AC_INTFLAG (0x42002006) /**< \brief (AC) Interrupt Flag Status and Clear */ 18 #define REG_AC_STATUSA (0x42002007) /**< \brief (AC) Status A */ 19 #define REG_AC_STATUSB (0x42002008) /**< \brief (AC) Status B */ 20 #define REG_AC_DBGCTRL (0x42002009) /**< \brief (AC) Debug Control */ 21 #define REG_AC_WINCTRL (0x4200200A) /**< \brief (AC) Window Control */ 22 #define REG_AC_SCALER0 (0x4200200C) /**< \brief (AC) Scaler 0 */ 23 #define REG_AC_SCALER1 (0x4200200D) /**< \brief (AC) Scaler 1 */ 24 #define REG_AC_COMPCTRL0 (0x42002010) /**< \brief (AC) Comparator Control 0 */ 25 #define REG_AC_COMPCTRL1 (0x42002014) /**< \brief (AC) Comparator Control 1 */ 26 #define REG_AC_SYNCBUSY (0x42002020) /**< \brief (AC) Synchronization Busy */ 27 #define REG_AC_CALIB (0x42002024) /**< \brief (AC) Calibration */ 28 #else 29 #define REG_AC_CTRLA (*(RwReg8 *)0x42002000UL) /**< \brief (AC) Control A */ 30 #define REG_AC_CTRLB (*(WoReg8 *)0x42002001UL) /**< \brief (AC) Control B */ 31 #define REG_AC_EVCTRL (*(RwReg16*)0x42002002UL) /**< \brief (AC) Event Control */ 32 #define REG_AC_INTENCLR (*(RwReg8 *)0x42002004UL) /**< \brief (AC) Interrupt Enable Clear */ 33 #define REG_AC_INTENSET (*(RwReg8 *)0x42002005UL) /**< \brief (AC) Interrupt Enable Set */ 34 #define REG_AC_INTFLAG (*(RwReg8 *)0x42002006UL) /**< \brief (AC) Interrupt Flag Status and Clear */ 35 #define REG_AC_STATUSA (*(RoReg8 *)0x42002007UL) /**< \brief (AC) Status A */ 36 #define REG_AC_STATUSB (*(RoReg8 *)0x42002008UL) /**< \brief (AC) Status B */ 37 #define REG_AC_DBGCTRL (*(RwReg8 *)0x42002009UL) /**< \brief (AC) Debug Control */ 38 #define REG_AC_WINCTRL (*(RwReg8 *)0x4200200AUL) /**< \brief (AC) Window Control */ 39 #define REG_AC_SCALER0 (*(RwReg8 *)0x4200200CUL) /**< \brief (AC) Scaler 0 */ 40 #define REG_AC_SCALER1 (*(RwReg8 *)0x4200200DUL) /**< \brief (AC) Scaler 1 */ 41 #define REG_AC_COMPCTRL0 (*(RwReg *)0x42002010UL) /**< \brief (AC) Comparator Control 0 */ 42 #define REG_AC_COMPCTRL1 (*(RwReg *)0x42002014UL) /**< \brief (AC) Comparator Control 1 */ 43 #define REG_AC_SYNCBUSY (*(RoReg *)0x42002020UL) /**< \brief (AC) Synchronization Busy */ 44 #define REG_AC_CALIB (*(RwReg16*)0x42002024UL) /**< \brief (AC) Calibration */ 45 #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 46 47 #endif /* _MICROCHIP_PIC32CXSG_AC_INSTANCE_FIXUP_H_ */ 48