1 /* 2 * Copyright (c) 2023 ENE Technology Inc. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef ENE_KB1200_GPTD_H 8 #define ENE_KB1200_GPTD_H 9 10 /** 11 * Structure type to access GPIO Trigger Detector (GPTD). 12 */ 13 struct gptd_regs { 14 volatile uint32_t GPTDIE; /*Interrupt Enable Register */ 15 volatile uint32_t Reserved1[3]; 16 volatile uint32_t GPTDPF; /*Event Pending Flag Register */ 17 volatile uint32_t Reserved2[3]; 18 volatile uint32_t GPTDCHG; /*Change Trigger Register */ 19 volatile uint32_t Reserved3[3]; 20 volatile uint32_t GPTDEL; /*Level/Edge Trigger Register */ 21 volatile uint32_t Reserved4[3]; 22 volatile uint32_t GPTDPS; /*Polarity Selection Register */ 23 volatile uint32_t Reserved5[3]; 24 volatile uint32_t GPTDWE; /*WakeUP Enable Register */ 25 volatile uint32_t Reserved6[3]; 26 }; 27 28 #endif /* ENE_KB1200_GPTD_H */ 29