nrf51_to_nrf52840.h 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342
  1. /*
  2. Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
  3. All rights reserved.
  4. Redistribution and use in source and binary forms, with or without modification,
  5. are permitted provided that the following conditions are met:
  6. 1. Redistributions of source code must retain the above copyright notice, this
  7. list of conditions and the following disclaimer.
  8. 2. Redistributions in binary form, except as embedded into a Nordic
  9. Semiconductor ASA integrated circuit in a product or a software update for
  10. such product, must reproduce the above copyright notice, this list of
  11. conditions and the following disclaimer in the documentation and/or other
  12. materials provided with the distribution.
  13. 3. Neither the name of Nordic Semiconductor ASA nor the names of its
  14. contributors may be used to endorse or promote products derived from this
  15. software without specific prior written permission.
  16. 4. This software, with or without modification, must only be used with a
  17. Nordic Semiconductor ASA integrated circuit.
  18. 5. Any software provided in binary form under this license must not be reverse
  19. engineered, decompiled, modified and/or disassembled.
  20. THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
  21. OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  22. OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
  23. DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
  24. LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  25. CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  26. GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  27. HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  28. LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  29. OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. */
  31. #ifndef NRF51_TO_NRF52840_H
  32. #define NRF51_TO_NRF52840_H
  33. /*lint ++flb "Enter library region */
  34. /* This file is given to prevent your SW from not compiling with the name changes between nRF51 and nRF52840 devices.
  35. * It redefines the old nRF51 names into the new ones as long as the functionality is still supported. If the
  36. * functionality is gone, there old names are not defined, so compilation will fail. Note that also includes macros
  37. * from the nrf51_deprecated.h file. */
  38. /* IRQ */
  39. /* Several peripherals have been added to several indexes. Names of IRQ handlers and IRQ numbers have changed. */
  40. #ifndef UART0_IRQHandler
  41. #define UART0_IRQHandler UARTE0_UART0_IRQHandler
  42. #endif
  43. #ifndef SPI0_TWI0_IRQHandler
  44. #define SPI0_TWI0_IRQHandler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
  45. #endif
  46. #ifndef SPI1_TWI1_IRQHandler
  47. #define SPI1_TWI1_IRQHandler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
  48. #endif
  49. #ifndef ADC_IRQHandler
  50. #define ADC_IRQHandler SAADC_IRQHandler
  51. #endif
  52. #ifndef LPCOMP_IRQHandler
  53. #define LPCOMP_IRQHandler COMP_LPCOMP_IRQHandler
  54. #endif
  55. #ifndef SWI0_IRQHandler
  56. #define SWI0_IRQHandler SWI0_EGU0_IRQHandler
  57. #endif
  58. #ifndef SWI1_IRQHandler
  59. #define SWI1_IRQHandler SWI1_EGU1_IRQHandler
  60. #endif
  61. #ifndef SWI2_IRQHandler
  62. #define SWI2_IRQHandler SWI2_EGU2_IRQHandler
  63. #endif
  64. #ifndef SWI3_IRQHandler
  65. #define SWI3_IRQHandler SWI3_EGU3_IRQHandler
  66. #endif
  67. #ifndef SWI4_IRQHandler
  68. #define SWI4_IRQHandler SWI4_EGU4_IRQHandler
  69. #endif
  70. #ifndef SWI5_IRQHandler
  71. #define SWI5_IRQHandler SWI5_EGU5_IRQHandler
  72. #endif
  73. #ifndef UART0_IRQn
  74. #define UART0_IRQn UARTE0_UART0_IRQn
  75. #endif
  76. #ifndef SPI0_TWI0_IRQn
  77. #define SPI0_TWI0_IRQn SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQn
  78. #endif
  79. #ifndef SPI1_TWI1_IRQn
  80. #define SPI1_TWI1_IRQn SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQn
  81. #endif
  82. #ifndef ADC_IRQn
  83. #define ADC_IRQn SAADC_IRQn
  84. #endif
  85. #ifndef LPCOMP_IRQn
  86. #define LPCOMP_IRQn COMP_LPCOMP_IRQn
  87. #endif
  88. #ifndef SWI0_IRQn
  89. #define SWI0_IRQn SWI0_EGU0_IRQn
  90. #endif
  91. #ifndef SWI1_IRQn
  92. #define SWI1_IRQn SWI1_EGU1_IRQn
  93. #endif
  94. #ifndef SWI2_IRQn
  95. #define SWI2_IRQn SWI2_EGU2_IRQn
  96. #endif
  97. #ifndef SWI3_IRQn
  98. #define SWI3_IRQn SWI3_EGU3_IRQn
  99. #endif
  100. #ifndef SWI4_IRQn
  101. #define SWI4_IRQn SWI4_EGU4_IRQn
  102. #endif
  103. #ifndef SWI5_IRQn
  104. #define SWI5_IRQn SWI5_EGU5_IRQn
  105. #endif
  106. /* UICR */
  107. /* Register RBPCONF was renamed to APPROTECT. */
  108. #ifndef RBPCONF
  109. #define RBPCONF APPROTECT
  110. #endif
  111. #ifndef UICR_RBPCONF_PALL_Pos
  112. #define UICR_RBPCONF_PALL_Pos UICR_APPROTECT_PALL_Pos
  113. #endif
  114. #ifndef UICR_RBPCONF_PALL_Msk
  115. #define UICR_RBPCONF_PALL_Msk UICR_APPROTECT_PALL_Msk
  116. #endif
  117. #ifndef UICR_RBPCONF_PALL_Enabled
  118. #define UICR_RBPCONF_PALL_Enabled UICR_APPROTECT_PALL_Enabled
  119. #endif
  120. #ifndef UICR_RBPCONF_PALL_Disabled
  121. #define UICR_RBPCONF_PALL_Disabled UICR_APPROTECT_PALL_Disabled
  122. #endif
  123. /* GPIO */
  124. /* GPIO port was renamed to P0. */
  125. #ifndef NRF_GPIO
  126. #define NRF_GPIO NRF_P0
  127. #endif
  128. #ifndef NRF_GPIO_BASE
  129. #define NRF_GPIO_BASE NRF_P0_BASE
  130. #endif
  131. /* QDEC */
  132. /* The registers PSELA, PSELB and PSELLED were restructured into a struct. */
  133. #ifndef PSELLED
  134. #define PSELLED PSEL.LED
  135. #endif
  136. #ifndef PSELA
  137. #define PSELA PSEL.A
  138. #endif
  139. #ifndef PSELB
  140. #define PSELB PSEL.B
  141. #endif
  142. /* SPIS */
  143. /* The registers PSELSCK, PSELMISO, PSELMOSI, PSELCSN were restructured into a struct. */
  144. #ifndef PSELSCK
  145. #define PSELSCK PSEL.SCK
  146. #endif
  147. #ifndef PSELMISO
  148. #define PSELMISO PSEL.MISO
  149. #endif
  150. #ifndef PSELMOSI
  151. #define PSELMOSI PSEL.MOSI
  152. #endif
  153. #ifndef PSELCSN
  154. #define PSELCSN PSEL.CSN
  155. #endif
  156. /* The registers RXDPTR, MAXRX, AMOUNTRX were restructured into a struct */
  157. #ifndef RXDPTR
  158. #define RXDPTR RXD.PTR
  159. #endif
  160. #ifndef MAXRX
  161. #define MAXRX RXD.MAXCNT
  162. #endif
  163. #ifndef AMOUNTRX
  164. #define AMOUNTRX RXD.AMOUNT
  165. #endif
  166. #ifndef SPIS_MAXRX_MAXRX_Pos
  167. #define SPIS_MAXRX_MAXRX_Pos SPIS_RXD_MAXCNT_MAXCNT_Pos
  168. #endif
  169. #ifndef SPIS_MAXRX_MAXRX_Msk
  170. #define SPIS_MAXRX_MAXRX_Msk SPIS_RXD_MAXCNT_MAXCNT_Msk
  171. #endif
  172. #ifndef SPIS_AMOUNTRX_AMOUNTRX_Pos
  173. #define SPIS_AMOUNTRX_AMOUNTRX_Pos SPIS_RXD_AMOUNT_AMOUNT_Pos
  174. #endif
  175. #ifndef SPIS_AMOUNTRX_AMOUNTRX_Msk
  176. #define SPIS_AMOUNTRX_AMOUNTRX_Msk SPIS_RXD_AMOUNT_AMOUNT_Msk
  177. #endif
  178. /* The registers TXDPTR, MAXTX, AMOUNTTX were restructured into a struct */
  179. #ifndef TXDPTR
  180. #define TXDPTR TXD.PTR
  181. #endif
  182. #ifndef MAXTX
  183. #define MAXTX TXD.MAXCNT
  184. #endif
  185. #ifndef AMOUNTTX
  186. #define AMOUNTTX TXD.AMOUNT
  187. #endif
  188. #ifndef SPIS_MAXTX_MAXTX_Pos
  189. #define SPIS_MAXTX_MAXTX_Pos SPIS_TXD_MAXCNT_MAXCNT_Pos
  190. #endif
  191. #ifndef SPIS_MAXTX_MAXTX_Msk
  192. #define SPIS_MAXTX_MAXTX_Msk SPIS_TXD_MAXCNT_MAXCNT_Msk
  193. #endif
  194. #ifndef SPIS_AMOUNTTX_AMOUNTTX_Pos
  195. #define SPIS_AMOUNTTX_AMOUNTTX_Pos SPIS_TXD_AMOUNT_AMOUNT_Pos
  196. #endif
  197. #ifndef SPIS_AMOUNTTX_AMOUNTTX_Msk
  198. #define SPIS_AMOUNTTX_AMOUNTTX_Msk SPIS_TXD_AMOUNT_AMOUNT_Msk
  199. #endif
  200. /* UART */
  201. /* The registers PSELRTS, PSELTXD, PSELCTS, PSELRXD were restructured into a struct. */
  202. #ifndef PSELRTS
  203. #define PSELRTS PSEL.RTS
  204. #endif
  205. #ifndef PSELTXD
  206. #define PSELTXD PSEL.TXD
  207. #endif
  208. #ifndef PSELCTS
  209. #define PSELCTS PSEL.CTS
  210. #endif
  211. #ifndef PSELRXD
  212. #define PSELRXD PSEL.RXD
  213. #endif
  214. /* TWI */
  215. /* The registers PSELSCL, PSELSDA were restructured into a struct. */
  216. #ifndef PSELSCL
  217. #define PSELSCL PSEL.SCL
  218. #endif
  219. #ifndef PSELSDA
  220. #define PSELSDA PSEL.SDA
  221. #endif
  222. /* From nrf51_deprecated.h */
  223. /* NVMC */
  224. /* The register ERASEPROTECTEDPAGE changed name to ERASEPCR0 in the documentation. */
  225. #ifndef ERASEPROTECTEDPAGE
  226. #define ERASEPROTECTEDPAGE ERASEPCR0
  227. #endif
  228. /* IRQ */
  229. /* COMP module was eliminated. Adapted to nrf52840 headers. */
  230. #ifndef LPCOMP_COMP_IRQHandler
  231. #define LPCOMP_COMP_IRQHandler COMP_LPCOMP_IRQHandler
  232. #endif
  233. #ifndef LPCOMP_COMP_IRQn
  234. #define LPCOMP_COMP_IRQn COMP_LPCOMP_IRQn
  235. #endif
  236. /* REFSEL register redefined enumerated values and added some more. */
  237. #ifndef LPCOMP_REFSEL_REFSEL_SupplyOneEighthPrescaling
  238. #define LPCOMP_REFSEL_REFSEL_SupplyOneEighthPrescaling LPCOMP_REFSEL_REFSEL_Ref1_8Vdd
  239. #endif
  240. #ifndef LPCOMP_REFSEL_REFSEL_SupplyTwoEighthsPrescaling
  241. #define LPCOMP_REFSEL_REFSEL_SupplyTwoEighthsPrescaling LPCOMP_REFSEL_REFSEL_Ref2_8Vdd
  242. #endif
  243. #ifndef LPCOMP_REFSEL_REFSEL_SupplyThreeEighthsPrescaling
  244. #define LPCOMP_REFSEL_REFSEL_SupplyThreeEighthsPrescaling LPCOMP_REFSEL_REFSEL_Ref3_8Vdd
  245. #endif
  246. #ifndef LPCOMP_REFSEL_REFSEL_SupplyFourEighthsPrescaling
  247. #define LPCOMP_REFSEL_REFSEL_SupplyFourEighthsPrescaling LPCOMP_REFSEL_REFSEL_Ref4_8Vdd
  248. #endif
  249. #ifndef LPCOMP_REFSEL_REFSEL_SupplyFiveEighthsPrescaling
  250. #define LPCOMP_REFSEL_REFSEL_SupplyFiveEighthsPrescaling LPCOMP_REFSEL_REFSEL_Ref5_8Vdd
  251. #endif
  252. #ifndef LPCOMP_REFSEL_REFSEL_SupplySixEighthsPrescaling
  253. #define LPCOMP_REFSEL_REFSEL_SupplySixEighthsPrescaling LPCOMP_REFSEL_REFSEL_Ref6_8Vdd
  254. #endif
  255. #ifndef LPCOMP_REFSEL_REFSEL_SupplySevenEighthsPrescaling
  256. #define LPCOMP_REFSEL_REFSEL_SupplySevenEighthsPrescaling LPCOMP_REFSEL_REFSEL_Ref7_8Vdd
  257. #endif
  258. /* RADIO */
  259. /* The name of the field SKIPADDR was corrected. Old macros added for compatibility. */
  260. #ifndef RADIO_CRCCNF_SKIP_ADDR_Pos
  261. #define RADIO_CRCCNF_SKIP_ADDR_Pos RADIO_CRCCNF_SKIPADDR_Pos
  262. #endif
  263. #ifndef RADIO_CRCCNF_SKIP_ADDR_Msk
  264. #define RADIO_CRCCNF_SKIP_ADDR_Msk RADIO_CRCCNF_SKIPADDR_Msk
  265. #endif
  266. #ifndef RADIO_CRCCNF_SKIP_ADDR_Include
  267. #define RADIO_CRCCNF_SKIP_ADDR_Include RADIO_CRCCNF_SKIPADDR_Include
  268. #endif
  269. #ifndef RADIO_CRCCNF_SKIP_ADDR_Skip
  270. #define RADIO_CRCCNF_SKIP_ADDR_Skip RADIO_CRCCNF_SKIPADDR_Skip
  271. #endif
  272. /* FICR */
  273. /* The registers FICR.DEVICEID0 and FICR.DEVICEID1 were renamed into an array. */
  274. #ifndef DEVICEID0
  275. #define DEVICEID0 DEVICEID[0]
  276. #endif
  277. #ifndef DEVICEID1
  278. #define DEVICEID1 DEVICEID[1]
  279. #endif
  280. /* The registers FICR.ER0, FICR.ER1, FICR.ER2 and FICR.ER3 were renamed into an array. */
  281. #ifndef ER0
  282. #define ER0 ER[0]
  283. #endif
  284. #ifndef ER1
  285. #define ER1 ER[1]
  286. #endif
  287. #ifndef ER2
  288. #define ER2 ER[2]
  289. #endif
  290. #ifndef ER3
  291. #define ER3 ER[3]
  292. #endif
  293. /* The registers FICR.IR0, FICR.IR1, FICR.IR2 and FICR.IR3 were renamed into an array. */
  294. #ifndef IR0
  295. #define IR0 IR[0]
  296. #endif
  297. #ifndef IR1
  298. #define IR1 IR[1]
  299. #endif
  300. #ifndef IR2
  301. #define IR2 IR[2]
  302. #endif
  303. #ifndef IR3
  304. #define IR3 IR[3]
  305. #endif
  306. /* The registers FICR.DEVICEADDR0 and FICR.DEVICEADDR1 were renamed into an array. */
  307. #ifndef DEVICEADDR0
  308. #define DEVICEADDR0 DEVICEADDR[0]
  309. #endif
  310. #ifndef DEVICEADDR1
  311. #define DEVICEADDR1 DEVICEADDR[1]
  312. #endif
  313. /* PPI */
  314. /* The tasks PPI.TASKS_CHGxEN and PPI.TASKS_CHGxDIS were renamed into an array of structs. */
  315. #ifndef TASKS_CHG0EN
  316. #define TASKS_CHG0EN TASKS_CHG[0].EN
  317. #endif
  318. #ifndef TASKS_CHG0DIS
  319. #define TASKS_CHG0DIS TASKS_CHG[0].DIS
  320. #endif
  321. #ifndef TASKS_CHG1EN
  322. #define TASKS_CHG1EN TASKS_CHG[1].EN
  323. #endif
  324. #ifndef TASKS_CHG1DIS
  325. #define TASKS_CHG1DIS TASKS_CHG[1].DIS
  326. #endif
  327. #ifndef TASKS_CHG2EN
  328. #define TASKS_CHG2EN TASKS_CHG[2].EN
  329. #endif
  330. #ifndef TASKS_CHG2DIS
  331. #define TASKS_CHG2DIS TASKS_CHG[2].DIS
  332. #endif
  333. #ifndef TASKS_CHG3EN
  334. #define TASKS_CHG3EN TASKS_CHG[3].EN
  335. #endif
  336. #ifndef TASKS_CHG3DIS
  337. #define TASKS_CHG3DIS TASKS_CHG[3].DIS
  338. #endif
  339. /* The registers PPI.CHx_EEP and PPI.CHx_TEP were renamed into an array of structs. */
  340. #ifndef CH0_EEP
  341. #define CH0_EEP CH[0].EEP
  342. #endif
  343. #ifndef CH0_TEP
  344. #define CH0_TEP CH[0].TEP
  345. #endif
  346. #ifndef CH1_EEP
  347. #define CH1_EEP CH[1].EEP
  348. #endif
  349. #ifndef CH1_TEP
  350. #define CH1_TEP CH[1].TEP
  351. #endif
  352. #ifndef CH2_EEP
  353. #define CH2_EEP CH[2].EEP
  354. #endif
  355. #ifndef CH2_TEP
  356. #define CH2_TEP CH[2].TEP
  357. #endif
  358. #ifndef CH3_EEP
  359. #define CH3_EEP CH[3].EEP
  360. #endif
  361. #ifndef CH3_TEP
  362. #define CH3_TEP CH[3].TEP
  363. #endif
  364. #ifndef CH4_EEP
  365. #define CH4_EEP CH[4].EEP
  366. #endif
  367. #ifndef CH4_TEP
  368. #define CH4_TEP CH[4].TEP
  369. #endif
  370. #ifndef CH5_EEP
  371. #define CH5_EEP CH[5].EEP
  372. #endif
  373. #ifndef CH5_TEP
  374. #define CH5_TEP CH[5].TEP
  375. #endif
  376. #ifndef CH6_EEP
  377. #define CH6_EEP CH[6].EEP
  378. #endif
  379. #ifndef CH6_TEP
  380. #define CH6_TEP CH[6].TEP
  381. #endif
  382. #ifndef CH7_EEP
  383. #define CH7_EEP CH[7].EEP
  384. #endif
  385. #ifndef CH7_TEP
  386. #define CH7_TEP CH[7].TEP
  387. #endif
  388. #ifndef CH8_EEP
  389. #define CH8_EEP CH[8].EEP
  390. #endif
  391. #ifndef CH8_TEP
  392. #define CH8_TEP CH[8].TEP
  393. #endif
  394. #ifndef CH9_EEP
  395. #define CH9_EEP CH[9].EEP
  396. #endif
  397. #ifndef CH9_TEP
  398. #define CH9_TEP CH[9].TEP
  399. #endif
  400. #ifndef CH10_EEP
  401. #define CH10_EEP CH[10].EEP
  402. #endif
  403. #ifndef CH10_TEP
  404. #define CH10_TEP CH[10].TEP
  405. #endif
  406. #ifndef CH11_EEP
  407. #define CH11_EEP CH[11].EEP
  408. #endif
  409. #ifndef CH11_TEP
  410. #define CH11_TEP CH[11].TEP
  411. #endif
  412. #ifndef CH12_EEP
  413. #define CH12_EEP CH[12].EEP
  414. #endif
  415. #ifndef CH12_TEP
  416. #define CH12_TEP CH[12].TEP
  417. #endif
  418. #ifndef CH13_EEP
  419. #define CH13_EEP CH[13].EEP
  420. #endif
  421. #ifndef CH13_TEP
  422. #define CH13_TEP CH[13].TEP
  423. #endif
  424. #ifndef CH14_EEP
  425. #define CH14_EEP CH[14].EEP
  426. #endif
  427. #ifndef CH14_TEP
  428. #define CH14_TEP CH[14].TEP
  429. #endif
  430. #ifndef CH15_EEP
  431. #define CH15_EEP CH[15].EEP
  432. #endif
  433. #ifndef CH15_TEP
  434. #define CH15_TEP CH[15].TEP
  435. #endif
  436. /* The registers PPI.CHG0, PPI.CHG1, PPI.CHG2 and PPI.CHG3 were renamed into an array. */
  437. #ifndef CHG0
  438. #define CHG0 CHG[0]
  439. #endif
  440. #ifndef CHG1
  441. #define CHG1 CHG[1]
  442. #endif
  443. #ifndef CHG2
  444. #define CHG2 CHG[2]
  445. #endif
  446. #ifndef CHG3
  447. #define CHG3 CHG[3]
  448. #endif
  449. /* All bitfield macros for the CHGx registers therefore changed name. */
  450. #ifndef PPI_CHG0_CH15_Pos
  451. #define PPI_CHG0_CH15_Pos PPI_CHG_CH15_Pos
  452. #endif
  453. #ifndef PPI_CHG0_CH15_Msk
  454. #define PPI_CHG0_CH15_Msk PPI_CHG_CH15_Msk
  455. #endif
  456. #ifndef PPI_CHG0_CH15_Excluded
  457. #define PPI_CHG0_CH15_Excluded PPI_CHG_CH15_Excluded
  458. #endif
  459. #ifndef PPI_CHG0_CH15_Included
  460. #define PPI_CHG0_CH15_Included PPI_CHG_CH15_Included
  461. #endif
  462. #ifndef PPI_CHG0_CH14_Pos
  463. #define PPI_CHG0_CH14_Pos PPI_CHG_CH14_Pos
  464. #endif
  465. #ifndef PPI_CHG0_CH14_Msk
  466. #define PPI_CHG0_CH14_Msk PPI_CHG_CH14_Msk
  467. #endif
  468. #ifndef PPI_CHG0_CH14_Excluded
  469. #define PPI_CHG0_CH14_Excluded PPI_CHG_CH14_Excluded
  470. #endif
  471. #ifndef PPI_CHG0_CH14_Included
  472. #define PPI_CHG0_CH14_Included PPI_CHG_CH14_Included
  473. #endif
  474. #ifndef PPI_CHG0_CH13_Pos
  475. #define PPI_CHG0_CH13_Pos PPI_CHG_CH13_Pos
  476. #endif
  477. #ifndef PPI_CHG0_CH13_Msk
  478. #define PPI_CHG0_CH13_Msk PPI_CHG_CH13_Msk
  479. #endif
  480. #ifndef PPI_CHG0_CH13_Excluded
  481. #define PPI_CHG0_CH13_Excluded PPI_CHG_CH13_Excluded
  482. #endif
  483. #ifndef PPI_CHG0_CH13_Included
  484. #define PPI_CHG0_CH13_Included PPI_CHG_CH13_Included
  485. #endif
  486. #ifndef PPI_CHG0_CH12_Pos
  487. #define PPI_CHG0_CH12_Pos PPI_CHG_CH12_Pos
  488. #endif
  489. #ifndef PPI_CHG0_CH12_Msk
  490. #define PPI_CHG0_CH12_Msk PPI_CHG_CH12_Msk
  491. #endif
  492. #ifndef PPI_CHG0_CH12_Excluded
  493. #define PPI_CHG0_CH12_Excluded PPI_CHG_CH12_Excluded
  494. #endif
  495. #ifndef PPI_CHG0_CH12_Included
  496. #define PPI_CHG0_CH12_Included PPI_CHG_CH12_Included
  497. #endif
  498. #ifndef PPI_CHG0_CH11_Pos
  499. #define PPI_CHG0_CH11_Pos PPI_CHG_CH11_Pos
  500. #endif
  501. #ifndef PPI_CHG0_CH11_Msk
  502. #define PPI_CHG0_CH11_Msk PPI_CHG_CH11_Msk
  503. #endif
  504. #ifndef PPI_CHG0_CH11_Excluded
  505. #define PPI_CHG0_CH11_Excluded PPI_CHG_CH11_Excluded
  506. #endif
  507. #ifndef PPI_CHG0_CH11_Included
  508. #define PPI_CHG0_CH11_Included PPI_CHG_CH11_Included
  509. #endif
  510. #ifndef PPI_CHG0_CH10_Pos
  511. #define PPI_CHG0_CH10_Pos PPI_CHG_CH10_Pos
  512. #endif
  513. #ifndef PPI_CHG0_CH10_Msk
  514. #define PPI_CHG0_CH10_Msk PPI_CHG_CH10_Msk
  515. #endif
  516. #ifndef PPI_CHG0_CH10_Excluded
  517. #define PPI_CHG0_CH10_Excluded PPI_CHG_CH10_Excluded
  518. #endif
  519. #ifndef PPI_CHG0_CH10_Included
  520. #define PPI_CHG0_CH10_Included PPI_CHG_CH10_Included
  521. #endif
  522. #ifndef PPI_CHG0_CH9_Pos
  523. #define PPI_CHG0_CH9_Pos PPI_CHG_CH9_Pos
  524. #endif
  525. #ifndef PPI_CHG0_CH9_Msk
  526. #define PPI_CHG0_CH9_Msk PPI_CHG_CH9_Msk
  527. #endif
  528. #ifndef PPI_CHG0_CH9_Excluded
  529. #define PPI_CHG0_CH9_Excluded PPI_CHG_CH9_Excluded
  530. #endif
  531. #ifndef PPI_CHG0_CH9_Included
  532. #define PPI_CHG0_CH9_Included PPI_CHG_CH9_Included
  533. #endif
  534. #ifndef PPI_CHG0_CH8_Pos
  535. #define PPI_CHG0_CH8_Pos PPI_CHG_CH8_Pos
  536. #endif
  537. #ifndef PPI_CHG0_CH8_Msk
  538. #define PPI_CHG0_CH8_Msk PPI_CHG_CH8_Msk
  539. #endif
  540. #ifndef PPI_CHG0_CH8_Excluded
  541. #define PPI_CHG0_CH8_Excluded PPI_CHG_CH8_Excluded
  542. #endif
  543. #ifndef PPI_CHG0_CH8_Included
  544. #define PPI_CHG0_CH8_Included PPI_CHG_CH8_Included
  545. #endif
  546. #ifndef PPI_CHG0_CH7_Pos
  547. #define PPI_CHG0_CH7_Pos PPI_CHG_CH7_Pos
  548. #endif
  549. #ifndef PPI_CHG0_CH7_Msk
  550. #define PPI_CHG0_CH7_Msk PPI_CHG_CH7_Msk
  551. #endif
  552. #ifndef PPI_CHG0_CH7_Excluded
  553. #define PPI_CHG0_CH7_Excluded PPI_CHG_CH7_Excluded
  554. #endif
  555. #ifndef PPI_CHG0_CH7_Included
  556. #define PPI_CHG0_CH7_Included PPI_CHG_CH7_Included
  557. #endif
  558. #ifndef PPI_CHG0_CH6_Pos
  559. #define PPI_CHG0_CH6_Pos PPI_CHG_CH6_Pos
  560. #endif
  561. #ifndef PPI_CHG0_CH6_Msk
  562. #define PPI_CHG0_CH6_Msk PPI_CHG_CH6_Msk
  563. #endif
  564. #ifndef PPI_CHG0_CH6_Excluded
  565. #define PPI_CHG0_CH6_Excluded PPI_CHG_CH6_Excluded
  566. #endif
  567. #ifndef PPI_CHG0_CH6_Included
  568. #define PPI_CHG0_CH6_Included PPI_CHG_CH6_Included
  569. #endif
  570. #ifndef PPI_CHG0_CH5_Pos
  571. #define PPI_CHG0_CH5_Pos PPI_CHG_CH5_Pos
  572. #endif
  573. #ifndef PPI_CHG0_CH5_Msk
  574. #define PPI_CHG0_CH5_Msk PPI_CHG_CH5_Msk
  575. #endif
  576. #ifndef PPI_CHG0_CH5_Excluded
  577. #define PPI_CHG0_CH5_Excluded PPI_CHG_CH5_Excluded
  578. #endif
  579. #ifndef PPI_CHG0_CH5_Included
  580. #define PPI_CHG0_CH5_Included PPI_CHG_CH5_Included
  581. #endif
  582. #ifndef PPI_CHG0_CH4_Pos
  583. #define PPI_CHG0_CH4_Pos PPI_CHG_CH4_Pos
  584. #endif
  585. #ifndef PPI_CHG0_CH4_Msk
  586. #define PPI_CHG0_CH4_Msk PPI_CHG_CH4_Msk
  587. #endif
  588. #ifndef PPI_CHG0_CH4_Excluded
  589. #define PPI_CHG0_CH4_Excluded PPI_CHG_CH4_Excluded
  590. #endif
  591. #ifndef PPI_CHG0_CH4_Included
  592. #define PPI_CHG0_CH4_Included PPI_CHG_CH4_Included
  593. #endif
  594. #ifndef PPI_CHG0_CH3_Pos
  595. #define PPI_CHG0_CH3_Pos PPI_CHG_CH3_Pos
  596. #endif
  597. #ifndef PPI_CHG0_CH3_Msk
  598. #define PPI_CHG0_CH3_Msk PPI_CHG_CH3_Msk
  599. #endif
  600. #ifndef PPI_CHG0_CH3_Excluded
  601. #define PPI_CHG0_CH3_Excluded PPI_CHG_CH3_Excluded
  602. #endif
  603. #ifndef PPI_CHG0_CH3_Included
  604. #define PPI_CHG0_CH3_Included PPI_CHG_CH3_Included
  605. #endif
  606. #ifndef PPI_CHG0_CH2_Pos
  607. #define PPI_CHG0_CH2_Pos PPI_CHG_CH2_Pos
  608. #endif
  609. #ifndef PPI_CHG0_CH2_Msk
  610. #define PPI_CHG0_CH2_Msk PPI_CHG_CH2_Msk
  611. #endif
  612. #ifndef PPI_CHG0_CH2_Excluded
  613. #define PPI_CHG0_CH2_Excluded PPI_CHG_CH2_Excluded
  614. #endif
  615. #ifndef PPI_CHG0_CH2_Included
  616. #define PPI_CHG0_CH2_Included PPI_CHG_CH2_Included
  617. #endif
  618. #ifndef PPI_CHG0_CH1_Pos
  619. #define PPI_CHG0_CH1_Pos PPI_CHG_CH1_Pos
  620. #endif
  621. #ifndef PPI_CHG0_CH1_Msk
  622. #define PPI_CHG0_CH1_Msk PPI_CHG_CH1_Msk
  623. #endif
  624. #ifndef PPI_CHG0_CH1_Excluded
  625. #define PPI_CHG0_CH1_Excluded PPI_CHG_CH1_Excluded
  626. #endif
  627. #ifndef PPI_CHG0_CH1_Included
  628. #define PPI_CHG0_CH1_Included PPI_CHG_CH1_Included
  629. #endif
  630. #ifndef PPI_CHG0_CH0_Pos
  631. #define PPI_CHG0_CH0_Pos PPI_CHG_CH0_Pos
  632. #endif
  633. #ifndef PPI_CHG0_CH0_Msk
  634. #define PPI_CHG0_CH0_Msk PPI_CHG_CH0_Msk
  635. #endif
  636. #ifndef PPI_CHG0_CH0_Excluded
  637. #define PPI_CHG0_CH0_Excluded PPI_CHG_CH0_Excluded
  638. #endif
  639. #ifndef PPI_CHG0_CH0_Included
  640. #define PPI_CHG0_CH0_Included PPI_CHG_CH0_Included
  641. #endif
  642. #ifndef PPI_CHG1_CH15_Pos
  643. #define PPI_CHG1_CH15_Pos PPI_CHG_CH15_Pos
  644. #endif
  645. #ifndef PPI_CHG1_CH15_Msk
  646. #define PPI_CHG1_CH15_Msk PPI_CHG_CH15_Msk
  647. #endif
  648. #ifndef PPI_CHG1_CH15_Excluded
  649. #define PPI_CHG1_CH15_Excluded PPI_CHG_CH15_Excluded
  650. #endif
  651. #ifndef PPI_CHG1_CH15_Included
  652. #define PPI_CHG1_CH15_Included PPI_CHG_CH15_Included
  653. #endif
  654. #ifndef PPI_CHG1_CH14_Pos
  655. #define PPI_CHG1_CH14_Pos PPI_CHG_CH14_Pos
  656. #endif
  657. #ifndef PPI_CHG1_CH14_Msk
  658. #define PPI_CHG1_CH14_Msk PPI_CHG_CH14_Msk
  659. #endif
  660. #ifndef PPI_CHG1_CH14_Excluded
  661. #define PPI_CHG1_CH14_Excluded PPI_CHG_CH14_Excluded
  662. #endif
  663. #ifndef PPI_CHG1_CH14_Included
  664. #define PPI_CHG1_CH14_Included PPI_CHG_CH14_Included
  665. #endif
  666. #ifndef PPI_CHG1_CH13_Pos
  667. #define PPI_CHG1_CH13_Pos PPI_CHG_CH13_Pos
  668. #endif
  669. #ifndef PPI_CHG1_CH13_Msk
  670. #define PPI_CHG1_CH13_Msk PPI_CHG_CH13_Msk
  671. #endif
  672. #ifndef PPI_CHG1_CH13_Excluded
  673. #define PPI_CHG1_CH13_Excluded PPI_CHG_CH13_Excluded
  674. #endif
  675. #ifndef PPI_CHG1_CH13_Included
  676. #define PPI_CHG1_CH13_Included PPI_CHG_CH13_Included
  677. #endif
  678. #ifndef PPI_CHG1_CH12_Pos
  679. #define PPI_CHG1_CH12_Pos PPI_CHG_CH12_Pos
  680. #endif
  681. #ifndef PPI_CHG1_CH12_Msk
  682. #define PPI_CHG1_CH12_Msk PPI_CHG_CH12_Msk
  683. #endif
  684. #ifndef PPI_CHG1_CH12_Excluded
  685. #define PPI_CHG1_CH12_Excluded PPI_CHG_CH12_Excluded
  686. #endif
  687. #ifndef PPI_CHG1_CH12_Included
  688. #define PPI_CHG1_CH12_Included PPI_CHG_CH12_Included
  689. #endif
  690. #ifndef PPI_CHG1_CH11_Pos
  691. #define PPI_CHG1_CH11_Pos PPI_CHG_CH11_Pos
  692. #endif
  693. #ifndef PPI_CHG1_CH11_Msk
  694. #define PPI_CHG1_CH11_Msk PPI_CHG_CH11_Msk
  695. #endif
  696. #ifndef PPI_CHG1_CH11_Excluded
  697. #define PPI_CHG1_CH11_Excluded PPI_CHG_CH11_Excluded
  698. #endif
  699. #ifndef PPI_CHG1_CH11_Included
  700. #define PPI_CHG1_CH11_Included PPI_CHG_CH11_Included
  701. #endif
  702. #ifndef PPI_CHG1_CH10_Pos
  703. #define PPI_CHG1_CH10_Pos PPI_CHG_CH10_Pos
  704. #endif
  705. #ifndef PPI_CHG1_CH10_Msk
  706. #define PPI_CHG1_CH10_Msk PPI_CHG_CH10_Msk
  707. #endif
  708. #ifndef PPI_CHG1_CH10_Excluded
  709. #define PPI_CHG1_CH10_Excluded PPI_CHG_CH10_Excluded
  710. #endif
  711. #ifndef PPI_CHG1_CH10_Included
  712. #define PPI_CHG1_CH10_Included PPI_CHG_CH10_Included
  713. #endif
  714. #ifndef PPI_CHG1_CH9_Pos
  715. #define PPI_CHG1_CH9_Pos PPI_CHG_CH9_Pos
  716. #endif
  717. #ifndef PPI_CHG1_CH9_Msk
  718. #define PPI_CHG1_CH9_Msk PPI_CHG_CH9_Msk
  719. #endif
  720. #ifndef PPI_CHG1_CH9_Excluded
  721. #define PPI_CHG1_CH9_Excluded PPI_CHG_CH9_Excluded
  722. #endif
  723. #ifndef PPI_CHG1_CH9_Included
  724. #define PPI_CHG1_CH9_Included PPI_CHG_CH9_Included
  725. #endif
  726. #ifndef PPI_CHG1_CH8_Pos
  727. #define PPI_CHG1_CH8_Pos PPI_CHG_CH8_Pos
  728. #endif
  729. #ifndef PPI_CHG1_CH8_Msk
  730. #define PPI_CHG1_CH8_Msk PPI_CHG_CH8_Msk
  731. #endif
  732. #ifndef PPI_CHG1_CH8_Excluded
  733. #define PPI_CHG1_CH8_Excluded PPI_CHG_CH8_Excluded
  734. #endif
  735. #ifndef PPI_CHG1_CH8_Included
  736. #define PPI_CHG1_CH8_Included PPI_CHG_CH8_Included
  737. #endif
  738. #ifndef PPI_CHG1_CH7_Pos
  739. #define PPI_CHG1_CH7_Pos PPI_CHG_CH7_Pos
  740. #endif
  741. #ifndef PPI_CHG1_CH7_Msk
  742. #define PPI_CHG1_CH7_Msk PPI_CHG_CH7_Msk
  743. #endif
  744. #ifndef PPI_CHG1_CH7_Excluded
  745. #define PPI_CHG1_CH7_Excluded PPI_CHG_CH7_Excluded
  746. #endif
  747. #ifndef PPI_CHG1_CH7_Included
  748. #define PPI_CHG1_CH7_Included PPI_CHG_CH7_Included
  749. #endif
  750. #ifndef PPI_CHG1_CH6_Pos
  751. #define PPI_CHG1_CH6_Pos PPI_CHG_CH6_Pos
  752. #endif
  753. #ifndef PPI_CHG1_CH6_Msk
  754. #define PPI_CHG1_CH6_Msk PPI_CHG_CH6_Msk
  755. #endif
  756. #ifndef PPI_CHG1_CH6_Excluded
  757. #define PPI_CHG1_CH6_Excluded PPI_CHG_CH6_Excluded
  758. #endif
  759. #ifndef PPI_CHG1_CH6_Included
  760. #define PPI_CHG1_CH6_Included PPI_CHG_CH6_Included
  761. #endif
  762. #ifndef PPI_CHG1_CH5_Pos
  763. #define PPI_CHG1_CH5_Pos PPI_CHG_CH5_Pos
  764. #endif
  765. #ifndef PPI_CHG1_CH5_Msk
  766. #define PPI_CHG1_CH5_Msk PPI_CHG_CH5_Msk
  767. #endif
  768. #ifndef PPI_CHG1_CH5_Excluded
  769. #define PPI_CHG1_CH5_Excluded PPI_CHG_CH5_Excluded
  770. #endif
  771. #ifndef PPI_CHG1_CH5_Included
  772. #define PPI_CHG1_CH5_Included PPI_CHG_CH5_Included
  773. #endif
  774. #ifndef PPI_CHG1_CH4_Pos
  775. #define PPI_CHG1_CH4_Pos PPI_CHG_CH4_Pos
  776. #endif
  777. #ifndef PPI_CHG1_CH4_Msk
  778. #define PPI_CHG1_CH4_Msk PPI_CHG_CH4_Msk
  779. #endif
  780. #ifndef PPI_CHG1_CH4_Excluded
  781. #define PPI_CHG1_CH4_Excluded PPI_CHG_CH4_Excluded
  782. #endif
  783. #ifndef PPI_CHG1_CH4_Included
  784. #define PPI_CHG1_CH4_Included PPI_CHG_CH4_Included
  785. #endif
  786. #ifndef PPI_CHG1_CH3_Pos
  787. #define PPI_CHG1_CH3_Pos PPI_CHG_CH3_Pos
  788. #endif
  789. #ifndef PPI_CHG1_CH3_Msk
  790. #define PPI_CHG1_CH3_Msk PPI_CHG_CH3_Msk
  791. #endif
  792. #ifndef PPI_CHG1_CH3_Excluded
  793. #define PPI_CHG1_CH3_Excluded PPI_CHG_CH3_Excluded
  794. #endif
  795. #ifndef PPI_CHG1_CH3_Included
  796. #define PPI_CHG1_CH3_Included PPI_CHG_CH3_Included
  797. #endif
  798. #ifndef PPI_CHG1_CH2_Pos
  799. #define PPI_CHG1_CH2_Pos PPI_CHG_CH2_Pos
  800. #endif
  801. #ifndef PPI_CHG1_CH2_Msk
  802. #define PPI_CHG1_CH2_Msk PPI_CHG_CH2_Msk
  803. #endif
  804. #ifndef PPI_CHG1_CH2_Excluded
  805. #define PPI_CHG1_CH2_Excluded PPI_CHG_CH2_Excluded
  806. #endif
  807. #ifndef PPI_CHG1_CH2_Included
  808. #define PPI_CHG1_CH2_Included PPI_CHG_CH2_Included
  809. #endif
  810. #ifndef PPI_CHG1_CH1_Pos
  811. #define PPI_CHG1_CH1_Pos PPI_CHG_CH1_Pos
  812. #endif
  813. #ifndef PPI_CHG1_CH1_Msk
  814. #define PPI_CHG1_CH1_Msk PPI_CHG_CH1_Msk
  815. #endif
  816. #ifndef PPI_CHG1_CH1_Excluded
  817. #define PPI_CHG1_CH1_Excluded PPI_CHG_CH1_Excluded
  818. #endif
  819. #ifndef PPI_CHG1_CH1_Included
  820. #define PPI_CHG1_CH1_Included PPI_CHG_CH1_Included
  821. #endif
  822. #ifndef PPI_CHG1_CH0_Pos
  823. #define PPI_CHG1_CH0_Pos PPI_CHG_CH0_Pos
  824. #endif
  825. #ifndef PPI_CHG1_CH0_Msk
  826. #define PPI_CHG1_CH0_Msk PPI_CHG_CH0_Msk
  827. #endif
  828. #ifndef PPI_CHG1_CH0_Excluded
  829. #define PPI_CHG1_CH0_Excluded PPI_CHG_CH0_Excluded
  830. #endif
  831. #ifndef PPI_CHG1_CH0_Included
  832. #define PPI_CHG1_CH0_Included PPI_CHG_CH0_Included
  833. #endif
  834. #ifndef PPI_CHG2_CH15_Pos
  835. #define PPI_CHG2_CH15_Pos PPI_CHG_CH15_Pos
  836. #endif
  837. #ifndef PPI_CHG2_CH15_Msk
  838. #define PPI_CHG2_CH15_Msk PPI_CHG_CH15_Msk
  839. #endif
  840. #ifndef PPI_CHG2_CH15_Excluded
  841. #define PPI_CHG2_CH15_Excluded PPI_CHG_CH15_Excluded
  842. #endif
  843. #ifndef PPI_CHG2_CH15_Included
  844. #define PPI_CHG2_CH15_Included PPI_CHG_CH15_Included
  845. #endif
  846. #ifndef PPI_CHG2_CH14_Pos
  847. #define PPI_CHG2_CH14_Pos PPI_CHG_CH14_Pos
  848. #endif
  849. #ifndef PPI_CHG2_CH14_Msk
  850. #define PPI_CHG2_CH14_Msk PPI_CHG_CH14_Msk
  851. #endif
  852. #ifndef PPI_CHG2_CH14_Excluded
  853. #define PPI_CHG2_CH14_Excluded PPI_CHG_CH14_Excluded
  854. #endif
  855. #ifndef PPI_CHG2_CH14_Included
  856. #define PPI_CHG2_CH14_Included PPI_CHG_CH14_Included
  857. #endif
  858. #ifndef PPI_CHG2_CH13_Pos
  859. #define PPI_CHG2_CH13_Pos PPI_CHG_CH13_Pos
  860. #endif
  861. #ifndef PPI_CHG2_CH13_Msk
  862. #define PPI_CHG2_CH13_Msk PPI_CHG_CH13_Msk
  863. #endif
  864. #ifndef PPI_CHG2_CH13_Excluded
  865. #define PPI_CHG2_CH13_Excluded PPI_CHG_CH13_Excluded
  866. #endif
  867. #ifndef PPI_CHG2_CH13_Included
  868. #define PPI_CHG2_CH13_Included PPI_CHG_CH13_Included
  869. #endif
  870. #ifndef PPI_CHG2_CH12_Pos
  871. #define PPI_CHG2_CH12_Pos PPI_CHG_CH12_Pos
  872. #endif
  873. #ifndef PPI_CHG2_CH12_Msk
  874. #define PPI_CHG2_CH12_Msk PPI_CHG_CH12_Msk
  875. #endif
  876. #ifndef PPI_CHG2_CH12_Excluded
  877. #define PPI_CHG2_CH12_Excluded PPI_CHG_CH12_Excluded
  878. #endif
  879. #ifndef PPI_CHG2_CH12_Included
  880. #define PPI_CHG2_CH12_Included PPI_CHG_CH12_Included
  881. #endif
  882. #ifndef PPI_CHG2_CH11_Pos
  883. #define PPI_CHG2_CH11_Pos PPI_CHG_CH11_Pos
  884. #endif
  885. #ifndef PPI_CHG2_CH11_Msk
  886. #define PPI_CHG2_CH11_Msk PPI_CHG_CH11_Msk
  887. #endif
  888. #ifndef PPI_CHG2_CH11_Excluded
  889. #define PPI_CHG2_CH11_Excluded PPI_CHG_CH11_Excluded
  890. #endif
  891. #ifndef PPI_CHG2_CH11_Included
  892. #define PPI_CHG2_CH11_Included PPI_CHG_CH11_Included
  893. #endif
  894. #ifndef PPI_CHG2_CH10_Pos
  895. #define PPI_CHG2_CH10_Pos PPI_CHG_CH10_Pos
  896. #endif
  897. #ifndef PPI_CHG2_CH10_Msk
  898. #define PPI_CHG2_CH10_Msk PPI_CHG_CH10_Msk
  899. #endif
  900. #ifndef PPI_CHG2_CH10_Excluded
  901. #define PPI_CHG2_CH10_Excluded PPI_CHG_CH10_Excluded
  902. #endif
  903. #ifndef PPI_CHG2_CH10_Included
  904. #define PPI_CHG2_CH10_Included PPI_CHG_CH10_Included
  905. #endif
  906. #ifndef PPI_CHG2_CH9_Pos
  907. #define PPI_CHG2_CH9_Pos PPI_CHG_CH9_Pos
  908. #endif
  909. #ifndef PPI_CHG2_CH9_Msk
  910. #define PPI_CHG2_CH9_Msk PPI_CHG_CH9_Msk
  911. #endif
  912. #ifndef PPI_CHG2_CH9_Excluded
  913. #define PPI_CHG2_CH9_Excluded PPI_CHG_CH9_Excluded
  914. #endif
  915. #ifndef PPI_CHG2_CH9_Included
  916. #define PPI_CHG2_CH9_Included PPI_CHG_CH9_Included
  917. #endif
  918. #ifndef PPI_CHG2_CH8_Pos
  919. #define PPI_CHG2_CH8_Pos PPI_CHG_CH8_Pos
  920. #endif
  921. #ifndef PPI_CHG2_CH8_Msk
  922. #define PPI_CHG2_CH8_Msk PPI_CHG_CH8_Msk
  923. #endif
  924. #ifndef PPI_CHG2_CH8_Excluded
  925. #define PPI_CHG2_CH8_Excluded PPI_CHG_CH8_Excluded
  926. #endif
  927. #ifndef PPI_CHG2_CH8_Included
  928. #define PPI_CHG2_CH8_Included PPI_CHG_CH8_Included
  929. #endif
  930. #ifndef PPI_CHG2_CH7_Pos
  931. #define PPI_CHG2_CH7_Pos PPI_CHG_CH7_Pos
  932. #endif
  933. #ifndef PPI_CHG2_CH7_Msk
  934. #define PPI_CHG2_CH7_Msk PPI_CHG_CH7_Msk
  935. #endif
  936. #ifndef PPI_CHG2_CH7_Excluded
  937. #define PPI_CHG2_CH7_Excluded PPI_CHG_CH7_Excluded
  938. #endif
  939. #ifndef PPI_CHG2_CH7_Included
  940. #define PPI_CHG2_CH7_Included PPI_CHG_CH7_Included
  941. #endif
  942. #ifndef PPI_CHG2_CH6_Pos
  943. #define PPI_CHG2_CH6_Pos PPI_CHG_CH6_Pos
  944. #endif
  945. #ifndef PPI_CHG2_CH6_Msk
  946. #define PPI_CHG2_CH6_Msk PPI_CHG_CH6_Msk
  947. #endif
  948. #ifndef PPI_CHG2_CH6_Excluded
  949. #define PPI_CHG2_CH6_Excluded PPI_CHG_CH6_Excluded
  950. #endif
  951. #ifndef PPI_CHG2_CH6_Included
  952. #define PPI_CHG2_CH6_Included PPI_CHG_CH6_Included
  953. #endif
  954. #ifndef PPI_CHG2_CH5_Pos
  955. #define PPI_CHG2_CH5_Pos PPI_CHG_CH5_Pos
  956. #endif
  957. #ifndef PPI_CHG2_CH5_Msk
  958. #define PPI_CHG2_CH5_Msk PPI_CHG_CH5_Msk
  959. #endif
  960. #ifndef PPI_CHG2_CH5_Excluded
  961. #define PPI_CHG2_CH5_Excluded PPI_CHG_CH5_Excluded
  962. #endif
  963. #ifndef PPI_CHG2_CH5_Included
  964. #define PPI_CHG2_CH5_Included PPI_CHG_CH5_Included
  965. #endif
  966. #ifndef PPI_CHG2_CH4_Pos
  967. #define PPI_CHG2_CH4_Pos PPI_CHG_CH4_Pos
  968. #endif
  969. #ifndef PPI_CHG2_CH4_Msk
  970. #define PPI_CHG2_CH4_Msk PPI_CHG_CH4_Msk
  971. #endif
  972. #ifndef PPI_CHG2_CH4_Excluded
  973. #define PPI_CHG2_CH4_Excluded PPI_CHG_CH4_Excluded
  974. #endif
  975. #ifndef PPI_CHG2_CH4_Included
  976. #define PPI_CHG2_CH4_Included PPI_CHG_CH4_Included
  977. #endif
  978. #ifndef PPI_CHG2_CH3_Pos
  979. #define PPI_CHG2_CH3_Pos PPI_CHG_CH3_Pos
  980. #endif
  981. #ifndef PPI_CHG2_CH3_Msk
  982. #define PPI_CHG2_CH3_Msk PPI_CHG_CH3_Msk
  983. #endif
  984. #ifndef PPI_CHG2_CH3_Excluded
  985. #define PPI_CHG2_CH3_Excluded PPI_CHG_CH3_Excluded
  986. #endif
  987. #ifndef PPI_CHG2_CH3_Included
  988. #define PPI_CHG2_CH3_Included PPI_CHG_CH3_Included
  989. #endif
  990. #ifndef PPI_CHG2_CH2_Pos
  991. #define PPI_CHG2_CH2_Pos PPI_CHG_CH2_Pos
  992. #endif
  993. #ifndef PPI_CHG2_CH2_Msk
  994. #define PPI_CHG2_CH2_Msk PPI_CHG_CH2_Msk
  995. #endif
  996. #ifndef PPI_CHG2_CH2_Excluded
  997. #define PPI_CHG2_CH2_Excluded PPI_CHG_CH2_Excluded
  998. #endif
  999. #ifndef PPI_CHG2_CH2_Included
  1000. #define PPI_CHG2_CH2_Included PPI_CHG_CH2_Included
  1001. #endif
  1002. #ifndef PPI_CHG2_CH1_Pos
  1003. #define PPI_CHG2_CH1_Pos PPI_CHG_CH1_Pos
  1004. #endif
  1005. #ifndef PPI_CHG2_CH1_Msk
  1006. #define PPI_CHG2_CH1_Msk PPI_CHG_CH1_Msk
  1007. #endif
  1008. #ifndef PPI_CHG2_CH1_Excluded
  1009. #define PPI_CHG2_CH1_Excluded PPI_CHG_CH1_Excluded
  1010. #endif
  1011. #ifndef PPI_CHG2_CH1_Included
  1012. #define PPI_CHG2_CH1_Included PPI_CHG_CH1_Included
  1013. #endif
  1014. #ifndef PPI_CHG2_CH0_Pos
  1015. #define PPI_CHG2_CH0_Pos PPI_CHG_CH0_Pos
  1016. #endif
  1017. #ifndef PPI_CHG2_CH0_Msk
  1018. #define PPI_CHG2_CH0_Msk PPI_CHG_CH0_Msk
  1019. #endif
  1020. #ifndef PPI_CHG2_CH0_Excluded
  1021. #define PPI_CHG2_CH0_Excluded PPI_CHG_CH0_Excluded
  1022. #endif
  1023. #ifndef PPI_CHG2_CH0_Included
  1024. #define PPI_CHG2_CH0_Included PPI_CHG_CH0_Included
  1025. #endif
  1026. #ifndef PPI_CHG3_CH15_Pos
  1027. #define PPI_CHG3_CH15_Pos PPI_CHG_CH15_Pos
  1028. #endif
  1029. #ifndef PPI_CHG3_CH15_Msk
  1030. #define PPI_CHG3_CH15_Msk PPI_CHG_CH15_Msk
  1031. #endif
  1032. #ifndef PPI_CHG3_CH15_Excluded
  1033. #define PPI_CHG3_CH15_Excluded PPI_CHG_CH15_Excluded
  1034. #endif
  1035. #ifndef PPI_CHG3_CH15_Included
  1036. #define PPI_CHG3_CH15_Included PPI_CHG_CH15_Included
  1037. #endif
  1038. #ifndef PPI_CHG3_CH14_Pos
  1039. #define PPI_CHG3_CH14_Pos PPI_CHG_CH14_Pos
  1040. #endif
  1041. #ifndef PPI_CHG3_CH14_Msk
  1042. #define PPI_CHG3_CH14_Msk PPI_CHG_CH14_Msk
  1043. #endif
  1044. #ifndef PPI_CHG3_CH14_Excluded
  1045. #define PPI_CHG3_CH14_Excluded PPI_CHG_CH14_Excluded
  1046. #endif
  1047. #ifndef PPI_CHG3_CH14_Included
  1048. #define PPI_CHG3_CH14_Included PPI_CHG_CH14_Included
  1049. #endif
  1050. #ifndef PPI_CHG3_CH13_Pos
  1051. #define PPI_CHG3_CH13_Pos PPI_CHG_CH13_Pos
  1052. #endif
  1053. #ifndef PPI_CHG3_CH13_Msk
  1054. #define PPI_CHG3_CH13_Msk PPI_CHG_CH13_Msk
  1055. #endif
  1056. #ifndef PPI_CHG3_CH13_Excluded
  1057. #define PPI_CHG3_CH13_Excluded PPI_CHG_CH13_Excluded
  1058. #endif
  1059. #ifndef PPI_CHG3_CH13_Included
  1060. #define PPI_CHG3_CH13_Included PPI_CHG_CH13_Included
  1061. #endif
  1062. #ifndef PPI_CHG3_CH12_Pos
  1063. #define PPI_CHG3_CH12_Pos PPI_CHG_CH12_Pos
  1064. #endif
  1065. #ifndef PPI_CHG3_CH12_Msk
  1066. #define PPI_CHG3_CH12_Msk PPI_CHG_CH12_Msk
  1067. #endif
  1068. #ifndef PPI_CHG3_CH12_Excluded
  1069. #define PPI_CHG3_CH12_Excluded PPI_CHG_CH12_Excluded
  1070. #endif
  1071. #ifndef PPI_CHG3_CH12_Included
  1072. #define PPI_CHG3_CH12_Included PPI_CHG_CH12_Included
  1073. #endif
  1074. #ifndef PPI_CHG3_CH11_Pos
  1075. #define PPI_CHG3_CH11_Pos PPI_CHG_CH11_Pos
  1076. #endif
  1077. #ifndef PPI_CHG3_CH11_Msk
  1078. #define PPI_CHG3_CH11_Msk PPI_CHG_CH11_Msk
  1079. #endif
  1080. #ifndef PPI_CHG3_CH11_Excluded
  1081. #define PPI_CHG3_CH11_Excluded PPI_CHG_CH11_Excluded
  1082. #endif
  1083. #ifndef PPI_CHG3_CH11_Included
  1084. #define PPI_CHG3_CH11_Included PPI_CHG_CH11_Included
  1085. #endif
  1086. #ifndef PPI_CHG3_CH10_Pos
  1087. #define PPI_CHG3_CH10_Pos PPI_CHG_CH10_Pos
  1088. #endif
  1089. #ifndef PPI_CHG3_CH10_Msk
  1090. #define PPI_CHG3_CH10_Msk PPI_CHG_CH10_Msk
  1091. #endif
  1092. #ifndef PPI_CHG3_CH10_Excluded
  1093. #define PPI_CHG3_CH10_Excluded PPI_CHG_CH10_Excluded
  1094. #endif
  1095. #ifndef PPI_CHG3_CH10_Included
  1096. #define PPI_CHG3_CH10_Included PPI_CHG_CH10_Included
  1097. #endif
  1098. #ifndef PPI_CHG3_CH9_Pos
  1099. #define PPI_CHG3_CH9_Pos PPI_CHG_CH9_Pos
  1100. #endif
  1101. #ifndef PPI_CHG3_CH9_Msk
  1102. #define PPI_CHG3_CH9_Msk PPI_CHG_CH9_Msk
  1103. #endif
  1104. #ifndef PPI_CHG3_CH9_Excluded
  1105. #define PPI_CHG3_CH9_Excluded PPI_CHG_CH9_Excluded
  1106. #endif
  1107. #ifndef PPI_CHG3_CH9_Included
  1108. #define PPI_CHG3_CH9_Included PPI_CHG_CH9_Included
  1109. #endif
  1110. #ifndef PPI_CHG3_CH8_Pos
  1111. #define PPI_CHG3_CH8_Pos PPI_CHG_CH8_Pos
  1112. #endif
  1113. #ifndef PPI_CHG3_CH8_Msk
  1114. #define PPI_CHG3_CH8_Msk PPI_CHG_CH8_Msk
  1115. #endif
  1116. #ifndef PPI_CHG3_CH8_Excluded
  1117. #define PPI_CHG3_CH8_Excluded PPI_CHG_CH8_Excluded
  1118. #endif
  1119. #ifndef PPI_CHG3_CH8_Included
  1120. #define PPI_CHG3_CH8_Included PPI_CHG_CH8_Included
  1121. #endif
  1122. #ifndef PPI_CHG3_CH7_Pos
  1123. #define PPI_CHG3_CH7_Pos PPI_CHG_CH7_Pos
  1124. #endif
  1125. #ifndef PPI_CHG3_CH7_Msk
  1126. #define PPI_CHG3_CH7_Msk PPI_CHG_CH7_Msk
  1127. #endif
  1128. #ifndef PPI_CHG3_CH7_Excluded
  1129. #define PPI_CHG3_CH7_Excluded PPI_CHG_CH7_Excluded
  1130. #endif
  1131. #ifndef PPI_CHG3_CH7_Included
  1132. #define PPI_CHG3_CH7_Included PPI_CHG_CH7_Included
  1133. #endif
  1134. #ifndef PPI_CHG3_CH6_Pos
  1135. #define PPI_CHG3_CH6_Pos PPI_CHG_CH6_Pos
  1136. #endif
  1137. #ifndef PPI_CHG3_CH6_Msk
  1138. #define PPI_CHG3_CH6_Msk PPI_CHG_CH6_Msk
  1139. #endif
  1140. #ifndef PPI_CHG3_CH6_Excluded
  1141. #define PPI_CHG3_CH6_Excluded PPI_CHG_CH6_Excluded
  1142. #endif
  1143. #ifndef PPI_CHG3_CH6_Included
  1144. #define PPI_CHG3_CH6_Included PPI_CHG_CH6_Included
  1145. #endif
  1146. #ifndef PPI_CHG3_CH5_Pos
  1147. #define PPI_CHG3_CH5_Pos PPI_CHG_CH5_Pos
  1148. #endif
  1149. #ifndef PPI_CHG3_CH5_Msk
  1150. #define PPI_CHG3_CH5_Msk PPI_CHG_CH5_Msk
  1151. #endif
  1152. #ifndef PPI_CHG3_CH5_Excluded
  1153. #define PPI_CHG3_CH5_Excluded PPI_CHG_CH5_Excluded
  1154. #endif
  1155. #ifndef PPI_CHG3_CH5_Included
  1156. #define PPI_CHG3_CH5_Included PPI_CHG_CH5_Included
  1157. #endif
  1158. #ifndef PPI_CHG3_CH4_Pos
  1159. #define PPI_CHG3_CH4_Pos PPI_CHG_CH4_Pos
  1160. #endif
  1161. #ifndef PPI_CHG3_CH4_Msk
  1162. #define PPI_CHG3_CH4_Msk PPI_CHG_CH4_Msk
  1163. #endif
  1164. #ifndef PPI_CHG3_CH4_Excluded
  1165. #define PPI_CHG3_CH4_Excluded PPI_CHG_CH4_Excluded
  1166. #endif
  1167. #ifndef PPI_CHG3_CH4_Included
  1168. #define PPI_CHG3_CH4_Included PPI_CHG_CH4_Included
  1169. #endif
  1170. #ifndef PPI_CHG3_CH3_Pos
  1171. #define PPI_CHG3_CH3_Pos PPI_CHG_CH3_Pos
  1172. #endif
  1173. #ifndef PPI_CHG3_CH3_Msk
  1174. #define PPI_CHG3_CH3_Msk PPI_CHG_CH3_Msk
  1175. #endif
  1176. #ifndef PPI_CHG3_CH3_Excluded
  1177. #define PPI_CHG3_CH3_Excluded PPI_CHG_CH3_Excluded
  1178. #endif
  1179. #ifndef PPI_CHG3_CH3_Included
  1180. #define PPI_CHG3_CH3_Included PPI_CHG_CH3_Included
  1181. #endif
  1182. #ifndef PPI_CHG3_CH2_Pos
  1183. #define PPI_CHG3_CH2_Pos PPI_CHG_CH2_Pos
  1184. #endif
  1185. #ifndef PPI_CHG3_CH2_Msk
  1186. #define PPI_CHG3_CH2_Msk PPI_CHG_CH2_Msk
  1187. #endif
  1188. #ifndef PPI_CHG3_CH2_Excluded
  1189. #define PPI_CHG3_CH2_Excluded PPI_CHG_CH2_Excluded
  1190. #endif
  1191. #ifndef PPI_CHG3_CH2_Included
  1192. #define PPI_CHG3_CH2_Included PPI_CHG_CH2_Included
  1193. #endif
  1194. #ifndef PPI_CHG3_CH1_Pos
  1195. #define PPI_CHG3_CH1_Pos PPI_CHG_CH1_Pos
  1196. #endif
  1197. #ifndef PPI_CHG3_CH1_Msk
  1198. #define PPI_CHG3_CH1_Msk PPI_CHG_CH1_Msk
  1199. #endif
  1200. #ifndef PPI_CHG3_CH1_Excluded
  1201. #define PPI_CHG3_CH1_Excluded PPI_CHG_CH1_Excluded
  1202. #endif
  1203. #ifndef PPI_CHG3_CH1_Included
  1204. #define PPI_CHG3_CH1_Included PPI_CHG_CH1_Included
  1205. #endif
  1206. #ifndef PPI_CHG3_CH0_Pos
  1207. #define PPI_CHG3_CH0_Pos PPI_CHG_CH0_Pos
  1208. #endif
  1209. #ifndef PPI_CHG3_CH0_Msk
  1210. #define PPI_CHG3_CH0_Msk PPI_CHG_CH0_Msk
  1211. #endif
  1212. #ifndef PPI_CHG3_CH0_Excluded
  1213. #define PPI_CHG3_CH0_Excluded PPI_CHG_CH0_Excluded
  1214. #endif
  1215. #ifndef PPI_CHG3_CH0_Included
  1216. #define PPI_CHG3_CH0_Included PPI_CHG_CH0_Included
  1217. #endif
  1218. /*lint --flb "Leave library region" */
  1219. #endif /* NRF51_TO_NRF52840_H */