definitions for the CC26xx/CC13XX GPT modules More...
definitions for the CC26xx/CC13XX GPT modules
Definition in file cc26xx_cc13xx_gpt.h.
#include "cc26xx_cc13xx.h"
Go to the source code of this file.
Data Structures | |
struct | gpt_reg_t |
GPT registers. More... | |
Macros | |
#define | GPT_NUMOF 4 |
GPT count. | |
#define | NUM_CHANNELS_PER_GPT 1 |
GPT channel count. | |
#define | GPT0_BASE (0x40010000) |
GPT base register addresses. | |
#define | GPT1_BASE (0x40011000) |
GTP1 base address. | |
#define | GPT2_BASE (0x40012000) |
GTP2 base address. | |
#define | GPT3_BASE (0x40013000) |
GTP3 base address. | |
#define | GPT0 ((gpt_reg_t *) (GPT0_BASE)) |
GPT instances. | |
#define | GPT1 ((gpt_reg_t *) (GPT1_BASE)) |
#define | GPT2 ((gpt_reg_t *) (GPT2_BASE)) |
#define | GPT3 ((gpt_reg_t *) (GPT3_BASE)) |
#define | GPT_CFG_32T 0 |
GPT register values. | |
#define | GPT_CFG_32RTC 1 |
#define | GPT_CFG_16T 4 |
#define | GPT_TXMR_TXMR_ONE_SHOT 0x00000001 |
#define | GPT_TXMR_TXMR_PERIODIC 0x00000002 |
#define | GPT_TXMR_TXMR_CAPTURE 0x00000003 |
#define | GPT_TXMR_TXCM_EDGECNT 0x00000000 |
#define | GPT_TXMR_TXCM_EDGETIME 0x00000004 |
#define | GPT_TXMR_TXAMS_CAPTCOMP 0x00000000 |
#define | GPT_TXMR_TXAMS_PWM 0x00000008 |
#define | GPT_TXMR_TXCDIR_DOWN 0x00000000 |
#define | GPT_TXMR_TXCDIR_UP 0x00000010 /* starts from 0 */ |
#define | GPT_TXMR_TXMIE 0x00000020 /* match interrupt */ |
#define | GPT_TXMR_TXWOT 0x00000040 /* wait on trigger from daisy */ |
#define | GPT_TXMR_TXSNAPS 0x00000080 |
#define | GPT_TXMR_TXILD_CLOCK 0x00000000 /* interrupt loac: update TXPR or TXR */ |
#define | GPT_TXMR_TXILD_TIMEOUT 0x00000100 |
#define | GPT_TXMR_TXPWMIE 0x00000200 |
#define | GPT_TXMR_TXMRSU 0x00000400 |
#define | GPT_TXMR_TXPLO 0x00000800 |
#define | GPT_TXMR_TXCIN 0x00001000 |
#define | GPT_TXMR_TCACT_DIS 0x00000000 |
#define | GPT_TXMR_TCACT_TGL_TO 0x00002000 |
#define | GPT_TXMR_TCACT_CLR_TO 0x00004000 |
#define | GPT_TXMR_TCACT_SET_TO 0x00006000 |
#define | GPT_TXMR_TCACT_SET_NOW_TGL_TO 0x00008000 |
#define | GPT_TXMR_TCACT_CLR_NOW_TGL_TO 0x0000a000 |
#define | GPT_TXMR_TCACT_SET_NOW_CLR_TO 0x0000c000 |
#define | GPT_TXMR_TCACT_CLR_NOW_SET_TO 0x0000e000 |
#define | GPT_CTL_TAEN 0x00000001 |
#define | GPT_CTL_TASTALL 0x00000002 |
#define | GPT_CTL_TAEVENT_POS 0x00000000 |
#define | GPT_CTL_TAEVENT_NEG 0x00000004 |
#define | GPT_CTL_TAEVENT_BOTH 0x0000000c |
#define | GPT_CTL_RTCEN 0x00000010 |
#define | GPT_CTL_TAPWML_INV 0x00000040 |
#define | GPT_CTL_TBEN 0x00000100 /* still need capture CFG */ |
#define | GPT_CTL_TBSTALL 0x00000200 |
#define | GPT_CTL_TBEVENT_POS 0x00000000 |
#define | GPT_CTL_TBEVENT_NEG 0x00000400 |
#define | GPT_CTL_TBEVENT_BOTH 0x00000c00 |
#define | GPT_CTL_TBPWML_INV 0x00004000 |
#define | GPT_SYNC_SYNC1_A 0x00000001 |
#define | GPT_SYNC_SYNC1_B 0x00000002 |
#define | GPT_SYNC_SYNC2_A 0x00000004 |
#define | GPT_SYNC_SYNC2_B 0x00000008 |
#define | GPT_SYNC_SYNC3_A 0x00000010 |
#define | GPT_SYNC_SYNC3_B 0x00000020 |
#define | GPT_SYNC_SYNC4_A 0x00000040 |
#define | GPT_SYNC_SYNC4_B 0x00000080 |
#define | GPT_IMR_TATOIM 0x00000001 |
#define | GPT_IMR_CAMIM 0x00000002 |
#define | GPT_IMR_CAEIM 0x00000004 |
#define | GPT_IMR_RTCIM 0x00000008 |
#define | GPT_IMR_TAMIM 0x00000010 |
#define | GPT_IMR_DMAAIM 0x00000020 |
#define | GPT_IMR_TBTOIM 0x00000100 |
#define | GPT_IMR_CBMIM 0x00000200 |
#define | GPT_IMR_CBEIM 0x00000400 |
#define | GPT_IMR_TBMIM 0x00000800 |
#define | GPT_IMR_DMABIM 0x00002000 |
#define | GPT_IMR_WUMIS 0x00010000 |
#define | GPT_RIS_TATORIS 0x00000001 |
#define | GPT_RIS_CAMRIS 0x00000002 |
#define | GPT_RIS_CAERIS 0x00000004 |
#define | GPT_RIS_RTCRIS 0x00000008 |
#define | GPT_RIS_TAMRIS 0x00000010 |
#define | GPT_RIS_TBTORIS 0x00000100 |
#define | GPT_RIS_CBMRIS 0x00000200 |
#define | GPT_RIS_CBERIS 0x00000400 |
#define | GPT_RIS_TBMRIS 0x00000800 |
#define | GPT_RIS_DMARIS 0x00002000 |
#define | GPT_RIS_WURIS 0x00010000 |
#define | GPT_MIS_TATOMIS 0x00000001 |
#define | GPT_MIS_CAMMIS 0x00000002 |
#define | GPT_MIS_CAEMIS 0x00000004 |
#define | GPT_MIS_RTCMIS 0x00000008 |
#define | GPT_MIS_TAMMIS 0x00000010 |
#define | GPT_MIS_TBTOMIS 0x00000100 |
#define | GPT_MIS_CBMMIS 0x00000200 |
#define | GPT_MIS_CBEMIS 0x00000400 |
#define | GPT_MIS_TBMMIS 0x00000800 |
#define | GPT_MIS_DMAMIS 0x00002000 |
#define | GPT_MIS_WUMIS 0x00010000 |
#define | GPT_ICLR_TATOCINT 0x00000001 |
#define | GPT_ICLR_CAMCINT 0x00000002 |
#define | GPT_ICLR_CAECINT 0x00000004 |
#define | GPT_ICLR_RTCCINT 0x00000008 |
#define | GPT_ICLR_TAMCINT 0x00000010 |
#define | GPT_ICLR_TBTOCINT 0x00000100 |
#define | GPT_ICLR_CBMCINT 0x00000200 |
#define | GPT_ICLR_CBECINT 0x00000400 |
#define | GPT_ICLR_TBMCINT 0x00000800 |
#define | GPT_ICLR_DMACINT 0x00002000 |
#define | GPT_ICLR_WUCINT 0x00010000 |
#define | GPT_DMAEV_TATODMAEN 0x00000001 |
#define | GPT_DMAEV_CAMDMAEN 0x00000002 |
#define | GPT_DMAEV_CAEDMAEN 0x00000004 |
#define | GPT_DMAEV_RTCDMAEN 0x00000008 |
#define | GPT_DMAEV_TAMDMAEN 0x00000010 |
#define | GPT_DMAEV_TBTODMAEN 0x00000100 |
#define | GPT_DMAEV_CBMDMAEN 0x00000200 |
#define | GPT_DMAEV_CBEDMAEN 0x00000400 |
#define | GPT_DMAEV_TBMDMAEN 0x00000800 |
GPT instances.
Definition at line 79 of file cc26xx_cc13xx_gpt.h.
#define GPT0_BASE (0x40010000) |
Definition at line 80 of file cc26xx_cc13xx_gpt.h.
#define GPT1_BASE (0x40011000) |
GTP1 base address.
Definition at line 70 of file cc26xx_cc13xx_gpt.h.
Definition at line 81 of file cc26xx_cc13xx_gpt.h.
#define GPT2_BASE (0x40012000) |
GTP2 base address.
Definition at line 71 of file cc26xx_cc13xx_gpt.h.
Definition at line 82 of file cc26xx_cc13xx_gpt.h.
#define GPT3_BASE (0x40013000) |
GTP3 base address.
Definition at line 72 of file cc26xx_cc13xx_gpt.h.
#define GPT_CFG_16T 4 |
Definition at line 91 of file cc26xx_cc13xx_gpt.h.
#define GPT_CFG_32RTC 1 |
Definition at line 90 of file cc26xx_cc13xx_gpt.h.
#define GPT_CFG_32T 0 |
GPT register values.
Definition at line 89 of file cc26xx_cc13xx_gpt.h.
#define GPT_CTL_RTCEN 0x00000010 |
Definition at line 125 of file cc26xx_cc13xx_gpt.h.
#define GPT_CTL_TAEN 0x00000001 |
Definition at line 120 of file cc26xx_cc13xx_gpt.h.
#define GPT_CTL_TAEVENT_BOTH 0x0000000c |
Definition at line 124 of file cc26xx_cc13xx_gpt.h.
#define GPT_CTL_TAEVENT_NEG 0x00000004 |
Definition at line 123 of file cc26xx_cc13xx_gpt.h.
#define GPT_CTL_TAEVENT_POS 0x00000000 |
Definition at line 122 of file cc26xx_cc13xx_gpt.h.
#define GPT_CTL_TAPWML_INV 0x00000040 |
Definition at line 126 of file cc26xx_cc13xx_gpt.h.
#define GPT_CTL_TASTALL 0x00000002 |
Definition at line 121 of file cc26xx_cc13xx_gpt.h.
#define GPT_CTL_TBEN 0x00000100 /* still need capture CFG */ |
Definition at line 127 of file cc26xx_cc13xx_gpt.h.
#define GPT_CTL_TBEVENT_BOTH 0x00000c00 |
Definition at line 131 of file cc26xx_cc13xx_gpt.h.
#define GPT_CTL_TBEVENT_NEG 0x00000400 |
Definition at line 130 of file cc26xx_cc13xx_gpt.h.
#define GPT_CTL_TBEVENT_POS 0x00000000 |
Definition at line 129 of file cc26xx_cc13xx_gpt.h.
#define GPT_CTL_TBPWML_INV 0x00004000 |
Definition at line 132 of file cc26xx_cc13xx_gpt.h.
#define GPT_CTL_TBSTALL 0x00000200 |
Definition at line 128 of file cc26xx_cc13xx_gpt.h.
#define GPT_DMAEV_CAEDMAEN 0x00000004 |
Definition at line 194 of file cc26xx_cc13xx_gpt.h.
#define GPT_DMAEV_CAMDMAEN 0x00000002 |
Definition at line 193 of file cc26xx_cc13xx_gpt.h.
#define GPT_DMAEV_CBEDMAEN 0x00000400 |
Definition at line 199 of file cc26xx_cc13xx_gpt.h.
#define GPT_DMAEV_CBMDMAEN 0x00000200 |
Definition at line 198 of file cc26xx_cc13xx_gpt.h.
#define GPT_DMAEV_RTCDMAEN 0x00000008 |
Definition at line 195 of file cc26xx_cc13xx_gpt.h.
#define GPT_DMAEV_TAMDMAEN 0x00000010 |
Definition at line 196 of file cc26xx_cc13xx_gpt.h.
#define GPT_DMAEV_TATODMAEN 0x00000001 |
Definition at line 192 of file cc26xx_cc13xx_gpt.h.
#define GPT_DMAEV_TBMDMAEN 0x00000800 |
Definition at line 200 of file cc26xx_cc13xx_gpt.h.
#define GPT_DMAEV_TBTODMAEN 0x00000100 |
Definition at line 197 of file cc26xx_cc13xx_gpt.h.
#define GPT_ICLR_CAECINT 0x00000004 |
Definition at line 182 of file cc26xx_cc13xx_gpt.h.
#define GPT_ICLR_CAMCINT 0x00000002 |
Definition at line 181 of file cc26xx_cc13xx_gpt.h.
#define GPT_ICLR_CBECINT 0x00000400 |
Definition at line 187 of file cc26xx_cc13xx_gpt.h.
#define GPT_ICLR_CBMCINT 0x00000200 |
Definition at line 186 of file cc26xx_cc13xx_gpt.h.
#define GPT_ICLR_DMACINT 0x00002000 |
Definition at line 189 of file cc26xx_cc13xx_gpt.h.
#define GPT_ICLR_RTCCINT 0x00000008 |
Definition at line 183 of file cc26xx_cc13xx_gpt.h.
#define GPT_ICLR_TAMCINT 0x00000010 |
Definition at line 184 of file cc26xx_cc13xx_gpt.h.
#define GPT_ICLR_TATOCINT 0x00000001 |
Definition at line 180 of file cc26xx_cc13xx_gpt.h.
#define GPT_ICLR_TBMCINT 0x00000800 |
Definition at line 188 of file cc26xx_cc13xx_gpt.h.
#define GPT_ICLR_TBTOCINT 0x00000100 |
Definition at line 185 of file cc26xx_cc13xx_gpt.h.
#define GPT_ICLR_WUCINT 0x00010000 |
Definition at line 190 of file cc26xx_cc13xx_gpt.h.
#define GPT_IMR_CAEIM 0x00000004 |
Definition at line 145 of file cc26xx_cc13xx_gpt.h.
#define GPT_IMR_CAMIM 0x00000002 |
Definition at line 144 of file cc26xx_cc13xx_gpt.h.
#define GPT_IMR_CBEIM 0x00000400 |
Definition at line 151 of file cc26xx_cc13xx_gpt.h.
#define GPT_IMR_CBMIM 0x00000200 |
Definition at line 150 of file cc26xx_cc13xx_gpt.h.
#define GPT_IMR_DMAAIM 0x00000020 |
Definition at line 148 of file cc26xx_cc13xx_gpt.h.
#define GPT_IMR_DMABIM 0x00002000 |
Definition at line 153 of file cc26xx_cc13xx_gpt.h.
#define GPT_IMR_RTCIM 0x00000008 |
Definition at line 146 of file cc26xx_cc13xx_gpt.h.
#define GPT_IMR_TAMIM 0x00000010 |
Definition at line 147 of file cc26xx_cc13xx_gpt.h.
#define GPT_IMR_TATOIM 0x00000001 |
Definition at line 143 of file cc26xx_cc13xx_gpt.h.
#define GPT_IMR_TBMIM 0x00000800 |
Definition at line 152 of file cc26xx_cc13xx_gpt.h.
#define GPT_IMR_TBTOIM 0x00000100 |
Definition at line 149 of file cc26xx_cc13xx_gpt.h.
#define GPT_IMR_WUMIS 0x00010000 |
Definition at line 154 of file cc26xx_cc13xx_gpt.h.
#define GPT_MIS_CAEMIS 0x00000004 |
Definition at line 170 of file cc26xx_cc13xx_gpt.h.
#define GPT_MIS_CAMMIS 0x00000002 |
Definition at line 169 of file cc26xx_cc13xx_gpt.h.
#define GPT_MIS_CBEMIS 0x00000400 |
Definition at line 175 of file cc26xx_cc13xx_gpt.h.
#define GPT_MIS_CBMMIS 0x00000200 |
Definition at line 174 of file cc26xx_cc13xx_gpt.h.
#define GPT_MIS_DMAMIS 0x00002000 |
Definition at line 177 of file cc26xx_cc13xx_gpt.h.
#define GPT_MIS_RTCMIS 0x00000008 |
Definition at line 171 of file cc26xx_cc13xx_gpt.h.
#define GPT_MIS_TAMMIS 0x00000010 |
Definition at line 172 of file cc26xx_cc13xx_gpt.h.
#define GPT_MIS_TATOMIS 0x00000001 |
Definition at line 168 of file cc26xx_cc13xx_gpt.h.
#define GPT_MIS_TBMMIS 0x00000800 |
Definition at line 176 of file cc26xx_cc13xx_gpt.h.
#define GPT_MIS_TBTOMIS 0x00000100 |
Definition at line 173 of file cc26xx_cc13xx_gpt.h.
#define GPT_MIS_WUMIS 0x00010000 |
Definition at line 178 of file cc26xx_cc13xx_gpt.h.
#define GPT_NUMOF 4 |
GPT count.
Definition at line 203 of file cc26xx_cc13xx_gpt.h.
#define GPT_RIS_CAERIS 0x00000004 |
Definition at line 158 of file cc26xx_cc13xx_gpt.h.
#define GPT_RIS_CAMRIS 0x00000002 |
Definition at line 157 of file cc26xx_cc13xx_gpt.h.
#define GPT_RIS_CBERIS 0x00000400 |
Definition at line 163 of file cc26xx_cc13xx_gpt.h.
#define GPT_RIS_CBMRIS 0x00000200 |
Definition at line 162 of file cc26xx_cc13xx_gpt.h.
#define GPT_RIS_DMARIS 0x00002000 |
Definition at line 165 of file cc26xx_cc13xx_gpt.h.
#define GPT_RIS_RTCRIS 0x00000008 |
Definition at line 159 of file cc26xx_cc13xx_gpt.h.
#define GPT_RIS_TAMRIS 0x00000010 |
Definition at line 160 of file cc26xx_cc13xx_gpt.h.
#define GPT_RIS_TATORIS 0x00000001 |
Definition at line 156 of file cc26xx_cc13xx_gpt.h.
#define GPT_RIS_TBMRIS 0x00000800 |
Definition at line 164 of file cc26xx_cc13xx_gpt.h.
#define GPT_RIS_TBTORIS 0x00000100 |
Definition at line 161 of file cc26xx_cc13xx_gpt.h.
#define GPT_RIS_WURIS 0x00010000 |
Definition at line 166 of file cc26xx_cc13xx_gpt.h.
#define GPT_SYNC_SYNC1_A 0x00000001 |
Definition at line 134 of file cc26xx_cc13xx_gpt.h.
#define GPT_SYNC_SYNC1_B 0x00000002 |
Definition at line 135 of file cc26xx_cc13xx_gpt.h.
#define GPT_SYNC_SYNC2_A 0x00000004 |
Definition at line 136 of file cc26xx_cc13xx_gpt.h.
#define GPT_SYNC_SYNC2_B 0x00000008 |
Definition at line 137 of file cc26xx_cc13xx_gpt.h.
#define GPT_SYNC_SYNC3_A 0x00000010 |
Definition at line 138 of file cc26xx_cc13xx_gpt.h.
#define GPT_SYNC_SYNC3_B 0x00000020 |
Definition at line 139 of file cc26xx_cc13xx_gpt.h.
#define GPT_SYNC_SYNC4_A 0x00000040 |
Definition at line 140 of file cc26xx_cc13xx_gpt.h.
#define GPT_SYNC_SYNC4_B 0x00000080 |
Definition at line 141 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TCACT_CLR_NOW_SET_TO 0x0000e000 |
Definition at line 118 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TCACT_CLR_NOW_TGL_TO 0x0000a000 |
Definition at line 116 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TCACT_CLR_TO 0x00004000 |
Definition at line 113 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TCACT_DIS 0x00000000 |
Definition at line 111 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TCACT_SET_NOW_CLR_TO 0x0000c000 |
Definition at line 117 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TCACT_SET_NOW_TGL_TO 0x00008000 |
Definition at line 115 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TCACT_SET_TO 0x00006000 |
Definition at line 114 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TCACT_TGL_TO 0x00002000 |
Definition at line 112 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TXAMS_CAPTCOMP 0x00000000 |
Definition at line 98 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TXAMS_PWM 0x00000008 |
Definition at line 99 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TXCDIR_DOWN 0x00000000 |
Definition at line 100 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TXCDIR_UP 0x00000010 /* starts from 0 */ |
Definition at line 101 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TXCIN 0x00001000 |
Definition at line 110 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TXCM_EDGECNT 0x00000000 |
Definition at line 96 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TXCM_EDGETIME 0x00000004 |
Definition at line 97 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TXILD_CLOCK 0x00000000 /* interrupt loac: update TXPR or TXR */ |
Definition at line 105 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TXILD_TIMEOUT 0x00000100 |
Definition at line 106 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TXMIE 0x00000020 /* match interrupt */ |
Definition at line 102 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TXMR_CAPTURE 0x00000003 |
Definition at line 95 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TXMR_ONE_SHOT 0x00000001 |
Definition at line 93 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TXMR_PERIODIC 0x00000002 |
Definition at line 94 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TXMRSU 0x00000400 |
Definition at line 108 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TXPLO 0x00000800 |
Definition at line 109 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TXPWMIE 0x00000200 |
Definition at line 107 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TXSNAPS 0x00000080 |
Definition at line 104 of file cc26xx_cc13xx_gpt.h.
#define GPT_TXMR_TXWOT 0x00000040 /* wait on trigger from daisy */ |
Definition at line 103 of file cc26xx_cc13xx_gpt.h.
#define NUM_CHANNELS_PER_GPT 1 |
GPT channel count.
Definition at line 204 of file cc26xx_cc13xx_gpt.h.