rtc.h 260 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294
  1. /**
  2. * \file
  3. *
  4. * \brief Component description for RTC
  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_RTC_COMPONENT_H_
  31. #define _SAML11_RTC_COMPONENT_H_
  32. #define _SAML11_RTC_COMPONENT_ /**< \deprecated Backward compatibility for ASF */
  33. /** \addtogroup SAML_SAML11 Real-Time Counter
  34. * @{
  35. */
  36. /* ========================================================================== */
  37. /** SOFTWARE API DEFINITION FOR RTC */
  38. /* ========================================================================== */
  39. #define RTC_U2250 /**< (RTC) Module ID */
  40. #define REV_RTC 0x300 /**< (RTC) Module revision */
  41. /* -------- RTC_MODE2_ALARM : (RTC Offset: 0x00) (R/W 32) MODE2_ALARM Alarm n Value -------- */
  42. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  43. typedef union {
  44. struct {
  45. uint32_t SECOND:6; /**< bit: 0..5 Second */
  46. uint32_t MINUTE:6; /**< bit: 6..11 Minute */
  47. uint32_t HOUR:5; /**< bit: 12..16 Hour */
  48. uint32_t DAY:5; /**< bit: 17..21 Day */
  49. uint32_t MONTH:4; /**< bit: 22..25 Month */
  50. uint32_t YEAR:6; /**< bit: 26..31 Year */
  51. } bit; /**< Structure used for bit access */
  52. uint32_t reg; /**< Type used for register access */
  53. } RTC_MODE2_ALARM_Type;
  54. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  55. #define RTC_MODE2_ALARM_OFFSET (0x00) /**< (RTC_MODE2_ALARM) MODE2_ALARM Alarm n Value Offset */
  56. #define RTC_MODE2_ALARM_RESETVALUE _U_(0x00) /**< (RTC_MODE2_ALARM) MODE2_ALARM Alarm n Value Reset Value */
  57. #define RTC_MODE2_ALARM_SECOND_Pos 0 /**< (RTC_MODE2_ALARM) Second Position */
  58. #define RTC_MODE2_ALARM_SECOND_Msk (_U_(0x3F) << RTC_MODE2_ALARM_SECOND_Pos) /**< (RTC_MODE2_ALARM) Second Mask */
  59. #define RTC_MODE2_ALARM_SECOND(value) (RTC_MODE2_ALARM_SECOND_Msk & ((value) << RTC_MODE2_ALARM_SECOND_Pos))
  60. #define RTC_MODE2_ALARM_MINUTE_Pos 6 /**< (RTC_MODE2_ALARM) Minute Position */
  61. #define RTC_MODE2_ALARM_MINUTE_Msk (_U_(0x3F) << RTC_MODE2_ALARM_MINUTE_Pos) /**< (RTC_MODE2_ALARM) Minute Mask */
  62. #define RTC_MODE2_ALARM_MINUTE(value) (RTC_MODE2_ALARM_MINUTE_Msk & ((value) << RTC_MODE2_ALARM_MINUTE_Pos))
  63. #define RTC_MODE2_ALARM_HOUR_Pos 12 /**< (RTC_MODE2_ALARM) Hour Position */
  64. #define RTC_MODE2_ALARM_HOUR_Msk (_U_(0x1F) << RTC_MODE2_ALARM_HOUR_Pos) /**< (RTC_MODE2_ALARM) Hour Mask */
  65. #define RTC_MODE2_ALARM_HOUR(value) (RTC_MODE2_ALARM_HOUR_Msk & ((value) << RTC_MODE2_ALARM_HOUR_Pos))
  66. #define RTC_MODE2_ALARM_HOUR_AM_Val _U_(0x0) /**< (RTC_MODE2_ALARM) Morning hour */
  67. #define RTC_MODE2_ALARM_HOUR_PM_Val _U_(0x10) /**< (RTC_MODE2_ALARM) Afternoon hour */
  68. #define RTC_MODE2_ALARM_HOUR_AM (RTC_MODE2_ALARM_HOUR_AM_Val << RTC_MODE2_ALARM_HOUR_Pos) /**< (RTC_MODE2_ALARM) Morning hour Position */
  69. #define RTC_MODE2_ALARM_HOUR_PM (RTC_MODE2_ALARM_HOUR_PM_Val << RTC_MODE2_ALARM_HOUR_Pos) /**< (RTC_MODE2_ALARM) Afternoon hour Position */
  70. #define RTC_MODE2_ALARM_DAY_Pos 17 /**< (RTC_MODE2_ALARM) Day Position */
  71. #define RTC_MODE2_ALARM_DAY_Msk (_U_(0x1F) << RTC_MODE2_ALARM_DAY_Pos) /**< (RTC_MODE2_ALARM) Day Mask */
  72. #define RTC_MODE2_ALARM_DAY(value) (RTC_MODE2_ALARM_DAY_Msk & ((value) << RTC_MODE2_ALARM_DAY_Pos))
  73. #define RTC_MODE2_ALARM_MONTH_Pos 22 /**< (RTC_MODE2_ALARM) Month Position */
  74. #define RTC_MODE2_ALARM_MONTH_Msk (_U_(0xF) << RTC_MODE2_ALARM_MONTH_Pos) /**< (RTC_MODE2_ALARM) Month Mask */
  75. #define RTC_MODE2_ALARM_MONTH(value) (RTC_MODE2_ALARM_MONTH_Msk & ((value) << RTC_MODE2_ALARM_MONTH_Pos))
  76. #define RTC_MODE2_ALARM_YEAR_Pos 26 /**< (RTC_MODE2_ALARM) Year Position */
  77. #define RTC_MODE2_ALARM_YEAR_Msk (_U_(0x3F) << RTC_MODE2_ALARM_YEAR_Pos) /**< (RTC_MODE2_ALARM) Year Mask */
  78. #define RTC_MODE2_ALARM_YEAR(value) (RTC_MODE2_ALARM_YEAR_Msk & ((value) << RTC_MODE2_ALARM_YEAR_Pos))
  79. #define RTC_MODE2_ALARM_MASK _U_(0xFFFFFFFF) /**< \deprecated (RTC_MODE2_ALARM) Register MASK (Use RTC_MODE2_ALARM_Msk instead) */
  80. #define RTC_MODE2_ALARM_Msk _U_(0xFFFFFFFF) /**< (RTC_MODE2_ALARM) Register Mask */
  81. /* -------- RTC_MODE2_MASK : (RTC Offset: 0x04) (R/W 8) MODE2_ALARM Alarm n Mask -------- */
  82. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  83. typedef union {
  84. struct {
  85. uint8_t SEL:3; /**< bit: 0..2 Alarm Mask Selection */
  86. uint8_t :5; /**< bit: 3..7 Reserved */
  87. } bit; /**< Structure used for bit access */
  88. uint8_t reg; /**< Type used for register access */
  89. } RTC_MODE2_MASK_Type;
  90. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  91. #define RTC_MODE2_MASK_OFFSET (0x04) /**< (RTC_MODE2_MASK) MODE2_ALARM Alarm n Mask Offset */
  92. #define RTC_MODE2_MASK_RESETVALUE _U_(0x00) /**< (RTC_MODE2_MASK) MODE2_ALARM Alarm n Mask Reset Value */
  93. #define RTC_MODE2_MASK_SEL_Pos 0 /**< (RTC_MODE2_MASK) Alarm Mask Selection Position */
  94. #define RTC_MODE2_MASK_SEL_Msk (_U_(0x7) << RTC_MODE2_MASK_SEL_Pos) /**< (RTC_MODE2_MASK) Alarm Mask Selection Mask */
  95. #define RTC_MODE2_MASK_SEL(value) (RTC_MODE2_MASK_SEL_Msk & ((value) << RTC_MODE2_MASK_SEL_Pos))
  96. #define RTC_MODE2_MASK_SEL_OFF_Val _U_(0x0) /**< (RTC_MODE2_MASK) Alarm Disabled */
  97. #define RTC_MODE2_MASK_SEL_SS_Val _U_(0x1) /**< (RTC_MODE2_MASK) Match seconds only */
  98. #define RTC_MODE2_MASK_SEL_MMSS_Val _U_(0x2) /**< (RTC_MODE2_MASK) Match seconds and minutes only */
  99. #define RTC_MODE2_MASK_SEL_HHMMSS_Val _U_(0x3) /**< (RTC_MODE2_MASK) Match seconds, minutes, and hours only */
  100. #define RTC_MODE2_MASK_SEL_DDHHMMSS_Val _U_(0x4) /**< (RTC_MODE2_MASK) Match seconds, minutes, hours, and days only */
  101. #define RTC_MODE2_MASK_SEL_MMDDHHMMSS_Val _U_(0x5) /**< (RTC_MODE2_MASK) Match seconds, minutes, hours, days, and months only */
  102. #define RTC_MODE2_MASK_SEL_YYMMDDHHMMSS_Val _U_(0x6) /**< (RTC_MODE2_MASK) Match seconds, minutes, hours, days, months, and years */
  103. #define RTC_MODE2_MASK_SEL_OFF (RTC_MODE2_MASK_SEL_OFF_Val << RTC_MODE2_MASK_SEL_Pos) /**< (RTC_MODE2_MASK) Alarm Disabled Position */
  104. #define RTC_MODE2_MASK_SEL_SS (RTC_MODE2_MASK_SEL_SS_Val << RTC_MODE2_MASK_SEL_Pos) /**< (RTC_MODE2_MASK) Match seconds only Position */
  105. #define RTC_MODE2_MASK_SEL_MMSS (RTC_MODE2_MASK_SEL_MMSS_Val << RTC_MODE2_MASK_SEL_Pos) /**< (RTC_MODE2_MASK) Match seconds and minutes only Position */
  106. #define RTC_MODE2_MASK_SEL_HHMMSS (RTC_MODE2_MASK_SEL_HHMMSS_Val << RTC_MODE2_MASK_SEL_Pos) /**< (RTC_MODE2_MASK) Match seconds, minutes, and hours only Position */
  107. #define RTC_MODE2_MASK_SEL_DDHHMMSS (RTC_MODE2_MASK_SEL_DDHHMMSS_Val << RTC_MODE2_MASK_SEL_Pos) /**< (RTC_MODE2_MASK) Match seconds, minutes, hours, and days only Position */
  108. #define RTC_MODE2_MASK_SEL_MMDDHHMMSS (RTC_MODE2_MASK_SEL_MMDDHHMMSS_Val << RTC_MODE2_MASK_SEL_Pos) /**< (RTC_MODE2_MASK) Match seconds, minutes, hours, days, and months only Position */
  109. #define RTC_MODE2_MASK_SEL_YYMMDDHHMMSS (RTC_MODE2_MASK_SEL_YYMMDDHHMMSS_Val << RTC_MODE2_MASK_SEL_Pos) /**< (RTC_MODE2_MASK) Match seconds, minutes, hours, days, months, and years Position */
  110. #define RTC_MODE2_MASK_MASK _U_(0x07) /**< \deprecated (RTC_MODE2_MASK) Register MASK (Use RTC_MODE2_MASK_Msk instead) */
  111. #define RTC_MODE2_MASK_Msk _U_(0x07) /**< (RTC_MODE2_MASK) Register Mask */
  112. /* -------- RTC_MODE0_CTRLA : (RTC Offset: 0x00) (R/W 16) MODE0 Control A -------- */
  113. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  114. typedef union {
  115. struct {
  116. uint16_t SWRST:1; /**< bit: 0 Software Reset */
  117. uint16_t ENABLE:1; /**< bit: 1 Enable */
  118. uint16_t MODE:2; /**< bit: 2..3 Operating Mode */
  119. uint16_t :3; /**< bit: 4..6 Reserved */
  120. uint16_t MATCHCLR:1; /**< bit: 7 Clear on Match */
  121. uint16_t PRESCALER:4; /**< bit: 8..11 Prescaler */
  122. uint16_t :2; /**< bit: 12..13 Reserved */
  123. uint16_t GPTRST:1; /**< bit: 14 GP Registers Reset On Tamper Enable */
  124. uint16_t COUNTSYNC:1; /**< bit: 15 Count Read Synchronization Enable */
  125. } bit; /**< Structure used for bit access */
  126. uint16_t reg; /**< Type used for register access */
  127. } RTC_MODE0_CTRLA_Type;
  128. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  129. #define RTC_MODE0_CTRLA_OFFSET (0x00) /**< (RTC_MODE0_CTRLA) MODE0 Control A Offset */
  130. #define RTC_MODE0_CTRLA_RESETVALUE _U_(0x00) /**< (RTC_MODE0_CTRLA) MODE0 Control A Reset Value */
  131. #define RTC_MODE0_CTRLA_SWRST_Pos 0 /**< (RTC_MODE0_CTRLA) Software Reset Position */
  132. #define RTC_MODE0_CTRLA_SWRST_Msk (_U_(0x1) << RTC_MODE0_CTRLA_SWRST_Pos) /**< (RTC_MODE0_CTRLA) Software Reset Mask */
  133. #define RTC_MODE0_CTRLA_SWRST RTC_MODE0_CTRLA_SWRST_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_CTRLA_SWRST_Msk instead */
  134. #define RTC_MODE0_CTRLA_ENABLE_Pos 1 /**< (RTC_MODE0_CTRLA) Enable Position */
  135. #define RTC_MODE0_CTRLA_ENABLE_Msk (_U_(0x1) << RTC_MODE0_CTRLA_ENABLE_Pos) /**< (RTC_MODE0_CTRLA) Enable Mask */
  136. #define RTC_MODE0_CTRLA_ENABLE RTC_MODE0_CTRLA_ENABLE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_CTRLA_ENABLE_Msk instead */
  137. #define RTC_MODE0_CTRLA_MODE_Pos 2 /**< (RTC_MODE0_CTRLA) Operating Mode Position */
  138. #define RTC_MODE0_CTRLA_MODE_Msk (_U_(0x3) << RTC_MODE0_CTRLA_MODE_Pos) /**< (RTC_MODE0_CTRLA) Operating Mode Mask */
  139. #define RTC_MODE0_CTRLA_MODE(value) (RTC_MODE0_CTRLA_MODE_Msk & ((value) << RTC_MODE0_CTRLA_MODE_Pos))
  140. #define RTC_MODE0_CTRLA_MODE_COUNT32_Val _U_(0x0) /**< (RTC_MODE0_CTRLA) Mode 0: 32-bit Counter */
  141. #define RTC_MODE0_CTRLA_MODE_COUNT16_Val _U_(0x1) /**< (RTC_MODE0_CTRLA) Mode 1: 16-bit Counter */
  142. #define RTC_MODE0_CTRLA_MODE_CLOCK_Val _U_(0x2) /**< (RTC_MODE0_CTRLA) Mode 2: Clock/Calendar */
  143. #define RTC_MODE0_CTRLA_MODE_COUNT32 (RTC_MODE0_CTRLA_MODE_COUNT32_Val << RTC_MODE0_CTRLA_MODE_Pos) /**< (RTC_MODE0_CTRLA) Mode 0: 32-bit Counter Position */
  144. #define RTC_MODE0_CTRLA_MODE_COUNT16 (RTC_MODE0_CTRLA_MODE_COUNT16_Val << RTC_MODE0_CTRLA_MODE_Pos) /**< (RTC_MODE0_CTRLA) Mode 1: 16-bit Counter Position */
  145. #define RTC_MODE0_CTRLA_MODE_CLOCK (RTC_MODE0_CTRLA_MODE_CLOCK_Val << RTC_MODE0_CTRLA_MODE_Pos) /**< (RTC_MODE0_CTRLA) Mode 2: Clock/Calendar Position */
  146. #define RTC_MODE0_CTRLA_MATCHCLR_Pos 7 /**< (RTC_MODE0_CTRLA) Clear on Match Position */
  147. #define RTC_MODE0_CTRLA_MATCHCLR_Msk (_U_(0x1) << RTC_MODE0_CTRLA_MATCHCLR_Pos) /**< (RTC_MODE0_CTRLA) Clear on Match Mask */
  148. #define RTC_MODE0_CTRLA_MATCHCLR RTC_MODE0_CTRLA_MATCHCLR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_CTRLA_MATCHCLR_Msk instead */
  149. #define RTC_MODE0_CTRLA_PRESCALER_Pos 8 /**< (RTC_MODE0_CTRLA) Prescaler Position */
  150. #define RTC_MODE0_CTRLA_PRESCALER_Msk (_U_(0xF) << RTC_MODE0_CTRLA_PRESCALER_Pos) /**< (RTC_MODE0_CTRLA) Prescaler Mask */
  151. #define RTC_MODE0_CTRLA_PRESCALER(value) (RTC_MODE0_CTRLA_PRESCALER_Msk & ((value) << RTC_MODE0_CTRLA_PRESCALER_Pos))
  152. #define RTC_MODE0_CTRLA_PRESCALER_OFF_Val _U_(0x0) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/1 */
  153. #define RTC_MODE0_CTRLA_PRESCALER_DIV1_Val _U_(0x1) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/1 */
  154. #define RTC_MODE0_CTRLA_PRESCALER_DIV2_Val _U_(0x2) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/2 */
  155. #define RTC_MODE0_CTRLA_PRESCALER_DIV4_Val _U_(0x3) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/4 */
  156. #define RTC_MODE0_CTRLA_PRESCALER_DIV8_Val _U_(0x4) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/8 */
  157. #define RTC_MODE0_CTRLA_PRESCALER_DIV16_Val _U_(0x5) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/16 */
  158. #define RTC_MODE0_CTRLA_PRESCALER_DIV32_Val _U_(0x6) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/32 */
  159. #define RTC_MODE0_CTRLA_PRESCALER_DIV64_Val _U_(0x7) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/64 */
  160. #define RTC_MODE0_CTRLA_PRESCALER_DIV128_Val _U_(0x8) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/128 */
  161. #define RTC_MODE0_CTRLA_PRESCALER_DIV256_Val _U_(0x9) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/256 */
  162. #define RTC_MODE0_CTRLA_PRESCALER_DIV512_Val _U_(0xA) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/512 */
  163. #define RTC_MODE0_CTRLA_PRESCALER_DIV1024_Val _U_(0xB) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/1024 */
  164. #define RTC_MODE0_CTRLA_PRESCALER_OFF (RTC_MODE0_CTRLA_PRESCALER_OFF_Val << RTC_MODE0_CTRLA_PRESCALER_Pos) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/1 Position */
  165. #define RTC_MODE0_CTRLA_PRESCALER_DIV1 (RTC_MODE0_CTRLA_PRESCALER_DIV1_Val << RTC_MODE0_CTRLA_PRESCALER_Pos) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/1 Position */
  166. #define RTC_MODE0_CTRLA_PRESCALER_DIV2 (RTC_MODE0_CTRLA_PRESCALER_DIV2_Val << RTC_MODE0_CTRLA_PRESCALER_Pos) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/2 Position */
  167. #define RTC_MODE0_CTRLA_PRESCALER_DIV4 (RTC_MODE0_CTRLA_PRESCALER_DIV4_Val << RTC_MODE0_CTRLA_PRESCALER_Pos) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/4 Position */
  168. #define RTC_MODE0_CTRLA_PRESCALER_DIV8 (RTC_MODE0_CTRLA_PRESCALER_DIV8_Val << RTC_MODE0_CTRLA_PRESCALER_Pos) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/8 Position */
  169. #define RTC_MODE0_CTRLA_PRESCALER_DIV16 (RTC_MODE0_CTRLA_PRESCALER_DIV16_Val << RTC_MODE0_CTRLA_PRESCALER_Pos) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/16 Position */
  170. #define RTC_MODE0_CTRLA_PRESCALER_DIV32 (RTC_MODE0_CTRLA_PRESCALER_DIV32_Val << RTC_MODE0_CTRLA_PRESCALER_Pos) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/32 Position */
  171. #define RTC_MODE0_CTRLA_PRESCALER_DIV64 (RTC_MODE0_CTRLA_PRESCALER_DIV64_Val << RTC_MODE0_CTRLA_PRESCALER_Pos) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/64 Position */
  172. #define RTC_MODE0_CTRLA_PRESCALER_DIV128 (RTC_MODE0_CTRLA_PRESCALER_DIV128_Val << RTC_MODE0_CTRLA_PRESCALER_Pos) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/128 Position */
  173. #define RTC_MODE0_CTRLA_PRESCALER_DIV256 (RTC_MODE0_CTRLA_PRESCALER_DIV256_Val << RTC_MODE0_CTRLA_PRESCALER_Pos) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/256 Position */
  174. #define RTC_MODE0_CTRLA_PRESCALER_DIV512 (RTC_MODE0_CTRLA_PRESCALER_DIV512_Val << RTC_MODE0_CTRLA_PRESCALER_Pos) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/512 Position */
  175. #define RTC_MODE0_CTRLA_PRESCALER_DIV1024 (RTC_MODE0_CTRLA_PRESCALER_DIV1024_Val << RTC_MODE0_CTRLA_PRESCALER_Pos) /**< (RTC_MODE0_CTRLA) CLK_RTC_CNT = GCLK_RTC/1024 Position */
  176. #define RTC_MODE0_CTRLA_GPTRST_Pos 14 /**< (RTC_MODE0_CTRLA) GP Registers Reset On Tamper Enable Position */
  177. #define RTC_MODE0_CTRLA_GPTRST_Msk (_U_(0x1) << RTC_MODE0_CTRLA_GPTRST_Pos) /**< (RTC_MODE0_CTRLA) GP Registers Reset On Tamper Enable Mask */
  178. #define RTC_MODE0_CTRLA_GPTRST RTC_MODE0_CTRLA_GPTRST_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_CTRLA_GPTRST_Msk instead */
  179. #define RTC_MODE0_CTRLA_COUNTSYNC_Pos 15 /**< (RTC_MODE0_CTRLA) Count Read Synchronization Enable Position */
  180. #define RTC_MODE0_CTRLA_COUNTSYNC_Msk (_U_(0x1) << RTC_MODE0_CTRLA_COUNTSYNC_Pos) /**< (RTC_MODE0_CTRLA) Count Read Synchronization Enable Mask */
  181. #define RTC_MODE0_CTRLA_COUNTSYNC RTC_MODE0_CTRLA_COUNTSYNC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_CTRLA_COUNTSYNC_Msk instead */
  182. #define RTC_MODE0_CTRLA_MASK _U_(0xCF8F) /**< \deprecated (RTC_MODE0_CTRLA) Register MASK (Use RTC_MODE0_CTRLA_Msk instead) */
  183. #define RTC_MODE0_CTRLA_Msk _U_(0xCF8F) /**< (RTC_MODE0_CTRLA) Register Mask */
  184. /* -------- RTC_MODE1_CTRLA : (RTC Offset: 0x00) (R/W 16) MODE1 Control A -------- */
  185. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  186. typedef union {
  187. struct {
  188. uint16_t SWRST:1; /**< bit: 0 Software Reset */
  189. uint16_t ENABLE:1; /**< bit: 1 Enable */
  190. uint16_t MODE:2; /**< bit: 2..3 Operating Mode */
  191. uint16_t :4; /**< bit: 4..7 Reserved */
  192. uint16_t PRESCALER:4; /**< bit: 8..11 Prescaler */
  193. uint16_t :2; /**< bit: 12..13 Reserved */
  194. uint16_t GPTRST:1; /**< bit: 14 GP Registers Reset On Tamper Enable */
  195. uint16_t COUNTSYNC:1; /**< bit: 15 Count Read Synchronization Enable */
  196. } bit; /**< Structure used for bit access */
  197. uint16_t reg; /**< Type used for register access */
  198. } RTC_MODE1_CTRLA_Type;
  199. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  200. #define RTC_MODE1_CTRLA_OFFSET (0x00) /**< (RTC_MODE1_CTRLA) MODE1 Control A Offset */
  201. #define RTC_MODE1_CTRLA_RESETVALUE _U_(0x00) /**< (RTC_MODE1_CTRLA) MODE1 Control A Reset Value */
  202. #define RTC_MODE1_CTRLA_SWRST_Pos 0 /**< (RTC_MODE1_CTRLA) Software Reset Position */
  203. #define RTC_MODE1_CTRLA_SWRST_Msk (_U_(0x1) << RTC_MODE1_CTRLA_SWRST_Pos) /**< (RTC_MODE1_CTRLA) Software Reset Mask */
  204. #define RTC_MODE1_CTRLA_SWRST RTC_MODE1_CTRLA_SWRST_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_CTRLA_SWRST_Msk instead */
  205. #define RTC_MODE1_CTRLA_ENABLE_Pos 1 /**< (RTC_MODE1_CTRLA) Enable Position */
  206. #define RTC_MODE1_CTRLA_ENABLE_Msk (_U_(0x1) << RTC_MODE1_CTRLA_ENABLE_Pos) /**< (RTC_MODE1_CTRLA) Enable Mask */
  207. #define RTC_MODE1_CTRLA_ENABLE RTC_MODE1_CTRLA_ENABLE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_CTRLA_ENABLE_Msk instead */
  208. #define RTC_MODE1_CTRLA_MODE_Pos 2 /**< (RTC_MODE1_CTRLA) Operating Mode Position */
  209. #define RTC_MODE1_CTRLA_MODE_Msk (_U_(0x3) << RTC_MODE1_CTRLA_MODE_Pos) /**< (RTC_MODE1_CTRLA) Operating Mode Mask */
  210. #define RTC_MODE1_CTRLA_MODE(value) (RTC_MODE1_CTRLA_MODE_Msk & ((value) << RTC_MODE1_CTRLA_MODE_Pos))
  211. #define RTC_MODE1_CTRLA_MODE_COUNT32_Val _U_(0x0) /**< (RTC_MODE1_CTRLA) Mode 0: 32-bit Counter */
  212. #define RTC_MODE1_CTRLA_MODE_COUNT16_Val _U_(0x1) /**< (RTC_MODE1_CTRLA) Mode 1: 16-bit Counter */
  213. #define RTC_MODE1_CTRLA_MODE_CLOCK_Val _U_(0x2) /**< (RTC_MODE1_CTRLA) Mode 2: Clock/Calendar */
  214. #define RTC_MODE1_CTRLA_MODE_COUNT32 (RTC_MODE1_CTRLA_MODE_COUNT32_Val << RTC_MODE1_CTRLA_MODE_Pos) /**< (RTC_MODE1_CTRLA) Mode 0: 32-bit Counter Position */
  215. #define RTC_MODE1_CTRLA_MODE_COUNT16 (RTC_MODE1_CTRLA_MODE_COUNT16_Val << RTC_MODE1_CTRLA_MODE_Pos) /**< (RTC_MODE1_CTRLA) Mode 1: 16-bit Counter Position */
  216. #define RTC_MODE1_CTRLA_MODE_CLOCK (RTC_MODE1_CTRLA_MODE_CLOCK_Val << RTC_MODE1_CTRLA_MODE_Pos) /**< (RTC_MODE1_CTRLA) Mode 2: Clock/Calendar Position */
  217. #define RTC_MODE1_CTRLA_PRESCALER_Pos 8 /**< (RTC_MODE1_CTRLA) Prescaler Position */
  218. #define RTC_MODE1_CTRLA_PRESCALER_Msk (_U_(0xF) << RTC_MODE1_CTRLA_PRESCALER_Pos) /**< (RTC_MODE1_CTRLA) Prescaler Mask */
  219. #define RTC_MODE1_CTRLA_PRESCALER(value) (RTC_MODE1_CTRLA_PRESCALER_Msk & ((value) << RTC_MODE1_CTRLA_PRESCALER_Pos))
  220. #define RTC_MODE1_CTRLA_PRESCALER_OFF_Val _U_(0x0) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/1 */
  221. #define RTC_MODE1_CTRLA_PRESCALER_DIV1_Val _U_(0x1) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/1 */
  222. #define RTC_MODE1_CTRLA_PRESCALER_DIV2_Val _U_(0x2) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/2 */
  223. #define RTC_MODE1_CTRLA_PRESCALER_DIV4_Val _U_(0x3) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/4 */
  224. #define RTC_MODE1_CTRLA_PRESCALER_DIV8_Val _U_(0x4) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/8 */
  225. #define RTC_MODE1_CTRLA_PRESCALER_DIV16_Val _U_(0x5) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/16 */
  226. #define RTC_MODE1_CTRLA_PRESCALER_DIV32_Val _U_(0x6) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/32 */
  227. #define RTC_MODE1_CTRLA_PRESCALER_DIV64_Val _U_(0x7) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/64 */
  228. #define RTC_MODE1_CTRLA_PRESCALER_DIV128_Val _U_(0x8) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/128 */
  229. #define RTC_MODE1_CTRLA_PRESCALER_DIV256_Val _U_(0x9) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/256 */
  230. #define RTC_MODE1_CTRLA_PRESCALER_DIV512_Val _U_(0xA) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/512 */
  231. #define RTC_MODE1_CTRLA_PRESCALER_DIV1024_Val _U_(0xB) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/1024 */
  232. #define RTC_MODE1_CTRLA_PRESCALER_OFF (RTC_MODE1_CTRLA_PRESCALER_OFF_Val << RTC_MODE1_CTRLA_PRESCALER_Pos) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/1 Position */
  233. #define RTC_MODE1_CTRLA_PRESCALER_DIV1 (RTC_MODE1_CTRLA_PRESCALER_DIV1_Val << RTC_MODE1_CTRLA_PRESCALER_Pos) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/1 Position */
  234. #define RTC_MODE1_CTRLA_PRESCALER_DIV2 (RTC_MODE1_CTRLA_PRESCALER_DIV2_Val << RTC_MODE1_CTRLA_PRESCALER_Pos) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/2 Position */
  235. #define RTC_MODE1_CTRLA_PRESCALER_DIV4 (RTC_MODE1_CTRLA_PRESCALER_DIV4_Val << RTC_MODE1_CTRLA_PRESCALER_Pos) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/4 Position */
  236. #define RTC_MODE1_CTRLA_PRESCALER_DIV8 (RTC_MODE1_CTRLA_PRESCALER_DIV8_Val << RTC_MODE1_CTRLA_PRESCALER_Pos) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/8 Position */
  237. #define RTC_MODE1_CTRLA_PRESCALER_DIV16 (RTC_MODE1_CTRLA_PRESCALER_DIV16_Val << RTC_MODE1_CTRLA_PRESCALER_Pos) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/16 Position */
  238. #define RTC_MODE1_CTRLA_PRESCALER_DIV32 (RTC_MODE1_CTRLA_PRESCALER_DIV32_Val << RTC_MODE1_CTRLA_PRESCALER_Pos) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/32 Position */
  239. #define RTC_MODE1_CTRLA_PRESCALER_DIV64 (RTC_MODE1_CTRLA_PRESCALER_DIV64_Val << RTC_MODE1_CTRLA_PRESCALER_Pos) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/64 Position */
  240. #define RTC_MODE1_CTRLA_PRESCALER_DIV128 (RTC_MODE1_CTRLA_PRESCALER_DIV128_Val << RTC_MODE1_CTRLA_PRESCALER_Pos) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/128 Position */
  241. #define RTC_MODE1_CTRLA_PRESCALER_DIV256 (RTC_MODE1_CTRLA_PRESCALER_DIV256_Val << RTC_MODE1_CTRLA_PRESCALER_Pos) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/256 Position */
  242. #define RTC_MODE1_CTRLA_PRESCALER_DIV512 (RTC_MODE1_CTRLA_PRESCALER_DIV512_Val << RTC_MODE1_CTRLA_PRESCALER_Pos) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/512 Position */
  243. #define RTC_MODE1_CTRLA_PRESCALER_DIV1024 (RTC_MODE1_CTRLA_PRESCALER_DIV1024_Val << RTC_MODE1_CTRLA_PRESCALER_Pos) /**< (RTC_MODE1_CTRLA) CLK_RTC_CNT = GCLK_RTC/1024 Position */
  244. #define RTC_MODE1_CTRLA_GPTRST_Pos 14 /**< (RTC_MODE1_CTRLA) GP Registers Reset On Tamper Enable Position */
  245. #define RTC_MODE1_CTRLA_GPTRST_Msk (_U_(0x1) << RTC_MODE1_CTRLA_GPTRST_Pos) /**< (RTC_MODE1_CTRLA) GP Registers Reset On Tamper Enable Mask */
  246. #define RTC_MODE1_CTRLA_GPTRST RTC_MODE1_CTRLA_GPTRST_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_CTRLA_GPTRST_Msk instead */
  247. #define RTC_MODE1_CTRLA_COUNTSYNC_Pos 15 /**< (RTC_MODE1_CTRLA) Count Read Synchronization Enable Position */
  248. #define RTC_MODE1_CTRLA_COUNTSYNC_Msk (_U_(0x1) << RTC_MODE1_CTRLA_COUNTSYNC_Pos) /**< (RTC_MODE1_CTRLA) Count Read Synchronization Enable Mask */
  249. #define RTC_MODE1_CTRLA_COUNTSYNC RTC_MODE1_CTRLA_COUNTSYNC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_CTRLA_COUNTSYNC_Msk instead */
  250. #define RTC_MODE1_CTRLA_MASK _U_(0xCF0F) /**< \deprecated (RTC_MODE1_CTRLA) Register MASK (Use RTC_MODE1_CTRLA_Msk instead) */
  251. #define RTC_MODE1_CTRLA_Msk _U_(0xCF0F) /**< (RTC_MODE1_CTRLA) Register Mask */
  252. /* -------- RTC_MODE2_CTRLA : (RTC Offset: 0x00) (R/W 16) MODE2 Control A -------- */
  253. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  254. typedef union {
  255. struct {
  256. uint16_t SWRST:1; /**< bit: 0 Software Reset */
  257. uint16_t ENABLE:1; /**< bit: 1 Enable */
  258. uint16_t MODE:2; /**< bit: 2..3 Operating Mode */
  259. uint16_t :2; /**< bit: 4..5 Reserved */
  260. uint16_t CLKREP:1; /**< bit: 6 Clock Representation */
  261. uint16_t MATCHCLR:1; /**< bit: 7 Clear on Match */
  262. uint16_t PRESCALER:4; /**< bit: 8..11 Prescaler */
  263. uint16_t :2; /**< bit: 12..13 Reserved */
  264. uint16_t GPTRST:1; /**< bit: 14 GP Registers Reset On Tamper Enable */
  265. uint16_t CLOCKSYNC:1; /**< bit: 15 Clock Read Synchronization Enable */
  266. } bit; /**< Structure used for bit access */
  267. uint16_t reg; /**< Type used for register access */
  268. } RTC_MODE2_CTRLA_Type;
  269. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  270. #define RTC_MODE2_CTRLA_OFFSET (0x00) /**< (RTC_MODE2_CTRLA) MODE2 Control A Offset */
  271. #define RTC_MODE2_CTRLA_RESETVALUE _U_(0x00) /**< (RTC_MODE2_CTRLA) MODE2 Control A Reset Value */
  272. #define RTC_MODE2_CTRLA_SWRST_Pos 0 /**< (RTC_MODE2_CTRLA) Software Reset Position */
  273. #define RTC_MODE2_CTRLA_SWRST_Msk (_U_(0x1) << RTC_MODE2_CTRLA_SWRST_Pos) /**< (RTC_MODE2_CTRLA) Software Reset Mask */
  274. #define RTC_MODE2_CTRLA_SWRST RTC_MODE2_CTRLA_SWRST_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_CTRLA_SWRST_Msk instead */
  275. #define RTC_MODE2_CTRLA_ENABLE_Pos 1 /**< (RTC_MODE2_CTRLA) Enable Position */
  276. #define RTC_MODE2_CTRLA_ENABLE_Msk (_U_(0x1) << RTC_MODE2_CTRLA_ENABLE_Pos) /**< (RTC_MODE2_CTRLA) Enable Mask */
  277. #define RTC_MODE2_CTRLA_ENABLE RTC_MODE2_CTRLA_ENABLE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_CTRLA_ENABLE_Msk instead */
  278. #define RTC_MODE2_CTRLA_MODE_Pos 2 /**< (RTC_MODE2_CTRLA) Operating Mode Position */
  279. #define RTC_MODE2_CTRLA_MODE_Msk (_U_(0x3) << RTC_MODE2_CTRLA_MODE_Pos) /**< (RTC_MODE2_CTRLA) Operating Mode Mask */
  280. #define RTC_MODE2_CTRLA_MODE(value) (RTC_MODE2_CTRLA_MODE_Msk & ((value) << RTC_MODE2_CTRLA_MODE_Pos))
  281. #define RTC_MODE2_CTRLA_MODE_COUNT32_Val _U_(0x0) /**< (RTC_MODE2_CTRLA) Mode 0: 32-bit Counter */
  282. #define RTC_MODE2_CTRLA_MODE_COUNT16_Val _U_(0x1) /**< (RTC_MODE2_CTRLA) Mode 1: 16-bit Counter */
  283. #define RTC_MODE2_CTRLA_MODE_CLOCK_Val _U_(0x2) /**< (RTC_MODE2_CTRLA) Mode 2: Clock/Calendar */
  284. #define RTC_MODE2_CTRLA_MODE_COUNT32 (RTC_MODE2_CTRLA_MODE_COUNT32_Val << RTC_MODE2_CTRLA_MODE_Pos) /**< (RTC_MODE2_CTRLA) Mode 0: 32-bit Counter Position */
  285. #define RTC_MODE2_CTRLA_MODE_COUNT16 (RTC_MODE2_CTRLA_MODE_COUNT16_Val << RTC_MODE2_CTRLA_MODE_Pos) /**< (RTC_MODE2_CTRLA) Mode 1: 16-bit Counter Position */
  286. #define RTC_MODE2_CTRLA_MODE_CLOCK (RTC_MODE2_CTRLA_MODE_CLOCK_Val << RTC_MODE2_CTRLA_MODE_Pos) /**< (RTC_MODE2_CTRLA) Mode 2: Clock/Calendar Position */
  287. #define RTC_MODE2_CTRLA_CLKREP_Pos 6 /**< (RTC_MODE2_CTRLA) Clock Representation Position */
  288. #define RTC_MODE2_CTRLA_CLKREP_Msk (_U_(0x1) << RTC_MODE2_CTRLA_CLKREP_Pos) /**< (RTC_MODE2_CTRLA) Clock Representation Mask */
  289. #define RTC_MODE2_CTRLA_CLKREP RTC_MODE2_CTRLA_CLKREP_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_CTRLA_CLKREP_Msk instead */
  290. #define RTC_MODE2_CTRLA_MATCHCLR_Pos 7 /**< (RTC_MODE2_CTRLA) Clear on Match Position */
  291. #define RTC_MODE2_CTRLA_MATCHCLR_Msk (_U_(0x1) << RTC_MODE2_CTRLA_MATCHCLR_Pos) /**< (RTC_MODE2_CTRLA) Clear on Match Mask */
  292. #define RTC_MODE2_CTRLA_MATCHCLR RTC_MODE2_CTRLA_MATCHCLR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_CTRLA_MATCHCLR_Msk instead */
  293. #define RTC_MODE2_CTRLA_PRESCALER_Pos 8 /**< (RTC_MODE2_CTRLA) Prescaler Position */
  294. #define RTC_MODE2_CTRLA_PRESCALER_Msk (_U_(0xF) << RTC_MODE2_CTRLA_PRESCALER_Pos) /**< (RTC_MODE2_CTRLA) Prescaler Mask */
  295. #define RTC_MODE2_CTRLA_PRESCALER(value) (RTC_MODE2_CTRLA_PRESCALER_Msk & ((value) << RTC_MODE2_CTRLA_PRESCALER_Pos))
  296. #define RTC_MODE2_CTRLA_PRESCALER_OFF_Val _U_(0x0) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/1 */
  297. #define RTC_MODE2_CTRLA_PRESCALER_DIV1_Val _U_(0x1) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/1 */
  298. #define RTC_MODE2_CTRLA_PRESCALER_DIV2_Val _U_(0x2) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/2 */
  299. #define RTC_MODE2_CTRLA_PRESCALER_DIV4_Val _U_(0x3) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/4 */
  300. #define RTC_MODE2_CTRLA_PRESCALER_DIV8_Val _U_(0x4) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/8 */
  301. #define RTC_MODE2_CTRLA_PRESCALER_DIV16_Val _U_(0x5) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/16 */
  302. #define RTC_MODE2_CTRLA_PRESCALER_DIV32_Val _U_(0x6) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/32 */
  303. #define RTC_MODE2_CTRLA_PRESCALER_DIV64_Val _U_(0x7) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/64 */
  304. #define RTC_MODE2_CTRLA_PRESCALER_DIV128_Val _U_(0x8) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/128 */
  305. #define RTC_MODE2_CTRLA_PRESCALER_DIV256_Val _U_(0x9) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/256 */
  306. #define RTC_MODE2_CTRLA_PRESCALER_DIV512_Val _U_(0xA) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/512 */
  307. #define RTC_MODE2_CTRLA_PRESCALER_DIV1024_Val _U_(0xB) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/1024 */
  308. #define RTC_MODE2_CTRLA_PRESCALER_OFF (RTC_MODE2_CTRLA_PRESCALER_OFF_Val << RTC_MODE2_CTRLA_PRESCALER_Pos) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/1 Position */
  309. #define RTC_MODE2_CTRLA_PRESCALER_DIV1 (RTC_MODE2_CTRLA_PRESCALER_DIV1_Val << RTC_MODE2_CTRLA_PRESCALER_Pos) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/1 Position */
  310. #define RTC_MODE2_CTRLA_PRESCALER_DIV2 (RTC_MODE2_CTRLA_PRESCALER_DIV2_Val << RTC_MODE2_CTRLA_PRESCALER_Pos) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/2 Position */
  311. #define RTC_MODE2_CTRLA_PRESCALER_DIV4 (RTC_MODE2_CTRLA_PRESCALER_DIV4_Val << RTC_MODE2_CTRLA_PRESCALER_Pos) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/4 Position */
  312. #define RTC_MODE2_CTRLA_PRESCALER_DIV8 (RTC_MODE2_CTRLA_PRESCALER_DIV8_Val << RTC_MODE2_CTRLA_PRESCALER_Pos) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/8 Position */
  313. #define RTC_MODE2_CTRLA_PRESCALER_DIV16 (RTC_MODE2_CTRLA_PRESCALER_DIV16_Val << RTC_MODE2_CTRLA_PRESCALER_Pos) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/16 Position */
  314. #define RTC_MODE2_CTRLA_PRESCALER_DIV32 (RTC_MODE2_CTRLA_PRESCALER_DIV32_Val << RTC_MODE2_CTRLA_PRESCALER_Pos) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/32 Position */
  315. #define RTC_MODE2_CTRLA_PRESCALER_DIV64 (RTC_MODE2_CTRLA_PRESCALER_DIV64_Val << RTC_MODE2_CTRLA_PRESCALER_Pos) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/64 Position */
  316. #define RTC_MODE2_CTRLA_PRESCALER_DIV128 (RTC_MODE2_CTRLA_PRESCALER_DIV128_Val << RTC_MODE2_CTRLA_PRESCALER_Pos) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/128 Position */
  317. #define RTC_MODE2_CTRLA_PRESCALER_DIV256 (RTC_MODE2_CTRLA_PRESCALER_DIV256_Val << RTC_MODE2_CTRLA_PRESCALER_Pos) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/256 Position */
  318. #define RTC_MODE2_CTRLA_PRESCALER_DIV512 (RTC_MODE2_CTRLA_PRESCALER_DIV512_Val << RTC_MODE2_CTRLA_PRESCALER_Pos) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/512 Position */
  319. #define RTC_MODE2_CTRLA_PRESCALER_DIV1024 (RTC_MODE2_CTRLA_PRESCALER_DIV1024_Val << RTC_MODE2_CTRLA_PRESCALER_Pos) /**< (RTC_MODE2_CTRLA) CLK_RTC_CNT = GCLK_RTC/1024 Position */
  320. #define RTC_MODE2_CTRLA_GPTRST_Pos 14 /**< (RTC_MODE2_CTRLA) GP Registers Reset On Tamper Enable Position */
  321. #define RTC_MODE2_CTRLA_GPTRST_Msk (_U_(0x1) << RTC_MODE2_CTRLA_GPTRST_Pos) /**< (RTC_MODE2_CTRLA) GP Registers Reset On Tamper Enable Mask */
  322. #define RTC_MODE2_CTRLA_GPTRST RTC_MODE2_CTRLA_GPTRST_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_CTRLA_GPTRST_Msk instead */
  323. #define RTC_MODE2_CTRLA_CLOCKSYNC_Pos 15 /**< (RTC_MODE2_CTRLA) Clock Read Synchronization Enable Position */
  324. #define RTC_MODE2_CTRLA_CLOCKSYNC_Msk (_U_(0x1) << RTC_MODE2_CTRLA_CLOCKSYNC_Pos) /**< (RTC_MODE2_CTRLA) Clock Read Synchronization Enable Mask */
  325. #define RTC_MODE2_CTRLA_CLOCKSYNC RTC_MODE2_CTRLA_CLOCKSYNC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_CTRLA_CLOCKSYNC_Msk instead */
  326. #define RTC_MODE2_CTRLA_MASK _U_(0xCFCF) /**< \deprecated (RTC_MODE2_CTRLA) Register MASK (Use RTC_MODE2_CTRLA_Msk instead) */
  327. #define RTC_MODE2_CTRLA_Msk _U_(0xCFCF) /**< (RTC_MODE2_CTRLA) Register Mask */
  328. /* -------- RTC_MODE0_CTRLB : (RTC Offset: 0x02) (R/W 16) MODE0 Control B -------- */
  329. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  330. typedef union {
  331. struct {
  332. uint16_t GP0EN:1; /**< bit: 0 General Purpose 0 Enable */
  333. uint16_t :3; /**< bit: 1..3 Reserved */
  334. uint16_t DEBMAJ:1; /**< bit: 4 Debouncer Majority Enable */
  335. uint16_t DEBASYNC:1; /**< bit: 5 Debouncer Asynchronous Enable */
  336. uint16_t RTCOUT:1; /**< bit: 6 RTC Output Enable */
  337. uint16_t DMAEN:1; /**< bit: 7 DMA Enable */
  338. uint16_t DEBF:3; /**< bit: 8..10 Debounce Frequency */
  339. uint16_t :1; /**< bit: 11 Reserved */
  340. uint16_t ACTF:3; /**< bit: 12..14 Active Layer Frequency */
  341. uint16_t SEPTO:1; /**< bit: 15 Separate Tamper Outputs */
  342. } bit; /**< Structure used for bit access */
  343. uint16_t reg; /**< Type used for register access */
  344. } RTC_MODE0_CTRLB_Type;
  345. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  346. #define RTC_MODE0_CTRLB_OFFSET (0x02) /**< (RTC_MODE0_CTRLB) MODE0 Control B Offset */
  347. #define RTC_MODE0_CTRLB_RESETVALUE _U_(0x00) /**< (RTC_MODE0_CTRLB) MODE0 Control B Reset Value */
  348. #define RTC_MODE0_CTRLB_GP0EN_Pos 0 /**< (RTC_MODE0_CTRLB) General Purpose 0 Enable Position */
  349. #define RTC_MODE0_CTRLB_GP0EN_Msk (_U_(0x1) << RTC_MODE0_CTRLB_GP0EN_Pos) /**< (RTC_MODE0_CTRLB) General Purpose 0 Enable Mask */
  350. #define RTC_MODE0_CTRLB_GP0EN RTC_MODE0_CTRLB_GP0EN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_CTRLB_GP0EN_Msk instead */
  351. #define RTC_MODE0_CTRLB_DEBMAJ_Pos 4 /**< (RTC_MODE0_CTRLB) Debouncer Majority Enable Position */
  352. #define RTC_MODE0_CTRLB_DEBMAJ_Msk (_U_(0x1) << RTC_MODE0_CTRLB_DEBMAJ_Pos) /**< (RTC_MODE0_CTRLB) Debouncer Majority Enable Mask */
  353. #define RTC_MODE0_CTRLB_DEBMAJ RTC_MODE0_CTRLB_DEBMAJ_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_CTRLB_DEBMAJ_Msk instead */
  354. #define RTC_MODE0_CTRLB_DEBASYNC_Pos 5 /**< (RTC_MODE0_CTRLB) Debouncer Asynchronous Enable Position */
  355. #define RTC_MODE0_CTRLB_DEBASYNC_Msk (_U_(0x1) << RTC_MODE0_CTRLB_DEBASYNC_Pos) /**< (RTC_MODE0_CTRLB) Debouncer Asynchronous Enable Mask */
  356. #define RTC_MODE0_CTRLB_DEBASYNC RTC_MODE0_CTRLB_DEBASYNC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_CTRLB_DEBASYNC_Msk instead */
  357. #define RTC_MODE0_CTRLB_RTCOUT_Pos 6 /**< (RTC_MODE0_CTRLB) RTC Output Enable Position */
  358. #define RTC_MODE0_CTRLB_RTCOUT_Msk (_U_(0x1) << RTC_MODE0_CTRLB_RTCOUT_Pos) /**< (RTC_MODE0_CTRLB) RTC Output Enable Mask */
  359. #define RTC_MODE0_CTRLB_RTCOUT RTC_MODE0_CTRLB_RTCOUT_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_CTRLB_RTCOUT_Msk instead */
  360. #define RTC_MODE0_CTRLB_DMAEN_Pos 7 /**< (RTC_MODE0_CTRLB) DMA Enable Position */
  361. #define RTC_MODE0_CTRLB_DMAEN_Msk (_U_(0x1) << RTC_MODE0_CTRLB_DMAEN_Pos) /**< (RTC_MODE0_CTRLB) DMA Enable Mask */
  362. #define RTC_MODE0_CTRLB_DMAEN RTC_MODE0_CTRLB_DMAEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_CTRLB_DMAEN_Msk instead */
  363. #define RTC_MODE0_CTRLB_DEBF_Pos 8 /**< (RTC_MODE0_CTRLB) Debounce Frequency Position */
  364. #define RTC_MODE0_CTRLB_DEBF_Msk (_U_(0x7) << RTC_MODE0_CTRLB_DEBF_Pos) /**< (RTC_MODE0_CTRLB) Debounce Frequency Mask */
  365. #define RTC_MODE0_CTRLB_DEBF(value) (RTC_MODE0_CTRLB_DEBF_Msk & ((value) << RTC_MODE0_CTRLB_DEBF_Pos))
  366. #define RTC_MODE0_CTRLB_DEBF_DIV2_Val _U_(0x0) /**< (RTC_MODE0_CTRLB) CLK_RTC_DEB = CLK_RTC/2 */
  367. #define RTC_MODE0_CTRLB_DEBF_DIV4_Val _U_(0x1) /**< (RTC_MODE0_CTRLB) CLK_RTC_DEB = CLK_RTC/4 */
  368. #define RTC_MODE0_CTRLB_DEBF_DIV8_Val _U_(0x2) /**< (RTC_MODE0_CTRLB) CLK_RTC_DEB = CLK_RTC/8 */
  369. #define RTC_MODE0_CTRLB_DEBF_DIV16_Val _U_(0x3) /**< (RTC_MODE0_CTRLB) CLK_RTC_DEB = CLK_RTC/16 */
  370. #define RTC_MODE0_CTRLB_DEBF_DIV32_Val _U_(0x4) /**< (RTC_MODE0_CTRLB) CLK_RTC_DEB = CLK_RTC/32 */
  371. #define RTC_MODE0_CTRLB_DEBF_DIV64_Val _U_(0x5) /**< (RTC_MODE0_CTRLB) CLK_RTC_DEB = CLK_RTC/64 */
  372. #define RTC_MODE0_CTRLB_DEBF_DIV128_Val _U_(0x6) /**< (RTC_MODE0_CTRLB) CLK_RTC_DEB = CLK_RTC/128 */
  373. #define RTC_MODE0_CTRLB_DEBF_DIV256_Val _U_(0x7) /**< (RTC_MODE0_CTRLB) CLK_RTC_DEB = CLK_RTC/256 */
  374. #define RTC_MODE0_CTRLB_DEBF_DIV2 (RTC_MODE0_CTRLB_DEBF_DIV2_Val << RTC_MODE0_CTRLB_DEBF_Pos) /**< (RTC_MODE0_CTRLB) CLK_RTC_DEB = CLK_RTC/2 Position */
  375. #define RTC_MODE0_CTRLB_DEBF_DIV4 (RTC_MODE0_CTRLB_DEBF_DIV4_Val << RTC_MODE0_CTRLB_DEBF_Pos) /**< (RTC_MODE0_CTRLB) CLK_RTC_DEB = CLK_RTC/4 Position */
  376. #define RTC_MODE0_CTRLB_DEBF_DIV8 (RTC_MODE0_CTRLB_DEBF_DIV8_Val << RTC_MODE0_CTRLB_DEBF_Pos) /**< (RTC_MODE0_CTRLB) CLK_RTC_DEB = CLK_RTC/8 Position */
  377. #define RTC_MODE0_CTRLB_DEBF_DIV16 (RTC_MODE0_CTRLB_DEBF_DIV16_Val << RTC_MODE0_CTRLB_DEBF_Pos) /**< (RTC_MODE0_CTRLB) CLK_RTC_DEB = CLK_RTC/16 Position */
  378. #define RTC_MODE0_CTRLB_DEBF_DIV32 (RTC_MODE0_CTRLB_DEBF_DIV32_Val << RTC_MODE0_CTRLB_DEBF_Pos) /**< (RTC_MODE0_CTRLB) CLK_RTC_DEB = CLK_RTC/32 Position */
  379. #define RTC_MODE0_CTRLB_DEBF_DIV64 (RTC_MODE0_CTRLB_DEBF_DIV64_Val << RTC_MODE0_CTRLB_DEBF_Pos) /**< (RTC_MODE0_CTRLB) CLK_RTC_DEB = CLK_RTC/64 Position */
  380. #define RTC_MODE0_CTRLB_DEBF_DIV128 (RTC_MODE0_CTRLB_DEBF_DIV128_Val << RTC_MODE0_CTRLB_DEBF_Pos) /**< (RTC_MODE0_CTRLB) CLK_RTC_DEB = CLK_RTC/128 Position */
  381. #define RTC_MODE0_CTRLB_DEBF_DIV256 (RTC_MODE0_CTRLB_DEBF_DIV256_Val << RTC_MODE0_CTRLB_DEBF_Pos) /**< (RTC_MODE0_CTRLB) CLK_RTC_DEB = CLK_RTC/256 Position */
  382. #define RTC_MODE0_CTRLB_ACTF_Pos 12 /**< (RTC_MODE0_CTRLB) Active Layer Frequency Position */
  383. #define RTC_MODE0_CTRLB_ACTF_Msk (_U_(0x7) << RTC_MODE0_CTRLB_ACTF_Pos) /**< (RTC_MODE0_CTRLB) Active Layer Frequency Mask */
  384. #define RTC_MODE0_CTRLB_ACTF(value) (RTC_MODE0_CTRLB_ACTF_Msk & ((value) << RTC_MODE0_CTRLB_ACTF_Pos))
  385. #define RTC_MODE0_CTRLB_ACTF_DIV2_Val _U_(0x0) /**< (RTC_MODE0_CTRLB) CLK_RTC_OUT = CLK_RTC/2 */
  386. #define RTC_MODE0_CTRLB_ACTF_DIV4_Val _U_(0x1) /**< (RTC_MODE0_CTRLB) CLK_RTC_OUT = CLK_RTC/4 */
  387. #define RTC_MODE0_CTRLB_ACTF_DIV8_Val _U_(0x2) /**< (RTC_MODE0_CTRLB) CLK_RTC_OUT = CLK_RTC/8 */
  388. #define RTC_MODE0_CTRLB_ACTF_DIV16_Val _U_(0x3) /**< (RTC_MODE0_CTRLB) CLK_RTC_OUT = CLK_RTC/16 */
  389. #define RTC_MODE0_CTRLB_ACTF_DIV32_Val _U_(0x4) /**< (RTC_MODE0_CTRLB) CLK_RTC_OUT = CLK_RTC/32 */
  390. #define RTC_MODE0_CTRLB_ACTF_DIV64_Val _U_(0x5) /**< (RTC_MODE0_CTRLB) CLK_RTC_OUT = CLK_RTC/64 */
  391. #define RTC_MODE0_CTRLB_ACTF_DIV128_Val _U_(0x6) /**< (RTC_MODE0_CTRLB) CLK_RTC_OUT = CLK_RTC/128 */
  392. #define RTC_MODE0_CTRLB_ACTF_DIV256_Val _U_(0x7) /**< (RTC_MODE0_CTRLB) CLK_RTC_OUT = CLK_RTC/256 */
  393. #define RTC_MODE0_CTRLB_ACTF_DIV2 (RTC_MODE0_CTRLB_ACTF_DIV2_Val << RTC_MODE0_CTRLB_ACTF_Pos) /**< (RTC_MODE0_CTRLB) CLK_RTC_OUT = CLK_RTC/2 Position */
  394. #define RTC_MODE0_CTRLB_ACTF_DIV4 (RTC_MODE0_CTRLB_ACTF_DIV4_Val << RTC_MODE0_CTRLB_ACTF_Pos) /**< (RTC_MODE0_CTRLB) CLK_RTC_OUT = CLK_RTC/4 Position */
  395. #define RTC_MODE0_CTRLB_ACTF_DIV8 (RTC_MODE0_CTRLB_ACTF_DIV8_Val << RTC_MODE0_CTRLB_ACTF_Pos) /**< (RTC_MODE0_CTRLB) CLK_RTC_OUT = CLK_RTC/8 Position */
  396. #define RTC_MODE0_CTRLB_ACTF_DIV16 (RTC_MODE0_CTRLB_ACTF_DIV16_Val << RTC_MODE0_CTRLB_ACTF_Pos) /**< (RTC_MODE0_CTRLB) CLK_RTC_OUT = CLK_RTC/16 Position */
  397. #define RTC_MODE0_CTRLB_ACTF_DIV32 (RTC_MODE0_CTRLB_ACTF_DIV32_Val << RTC_MODE0_CTRLB_ACTF_Pos) /**< (RTC_MODE0_CTRLB) CLK_RTC_OUT = CLK_RTC/32 Position */
  398. #define RTC_MODE0_CTRLB_ACTF_DIV64 (RTC_MODE0_CTRLB_ACTF_DIV64_Val << RTC_MODE0_CTRLB_ACTF_Pos) /**< (RTC_MODE0_CTRLB) CLK_RTC_OUT = CLK_RTC/64 Position */
  399. #define RTC_MODE0_CTRLB_ACTF_DIV128 (RTC_MODE0_CTRLB_ACTF_DIV128_Val << RTC_MODE0_CTRLB_ACTF_Pos) /**< (RTC_MODE0_CTRLB) CLK_RTC_OUT = CLK_RTC/128 Position */
  400. #define RTC_MODE0_CTRLB_ACTF_DIV256 (RTC_MODE0_CTRLB_ACTF_DIV256_Val << RTC_MODE0_CTRLB_ACTF_Pos) /**< (RTC_MODE0_CTRLB) CLK_RTC_OUT = CLK_RTC/256 Position */
  401. #define RTC_MODE0_CTRLB_SEPTO_Pos 15 /**< (RTC_MODE0_CTRLB) Separate Tamper Outputs Position */
  402. #define RTC_MODE0_CTRLB_SEPTO_Msk (_U_(0x1) << RTC_MODE0_CTRLB_SEPTO_Pos) /**< (RTC_MODE0_CTRLB) Separate Tamper Outputs Mask */
  403. #define RTC_MODE0_CTRLB_SEPTO RTC_MODE0_CTRLB_SEPTO_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_CTRLB_SEPTO_Msk instead */
  404. #define RTC_MODE0_CTRLB_MASK _U_(0xF7F1) /**< \deprecated (RTC_MODE0_CTRLB) Register MASK (Use RTC_MODE0_CTRLB_Msk instead) */
  405. #define RTC_MODE0_CTRLB_Msk _U_(0xF7F1) /**< (RTC_MODE0_CTRLB) Register Mask */
  406. /* -------- RTC_MODE1_CTRLB : (RTC Offset: 0x02) (R/W 16) MODE1 Control B -------- */
  407. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  408. typedef union {
  409. struct {
  410. uint16_t GP0EN:1; /**< bit: 0 General Purpose 0 Enable */
  411. uint16_t :3; /**< bit: 1..3 Reserved */
  412. uint16_t DEBMAJ:1; /**< bit: 4 Debouncer Majority Enable */
  413. uint16_t DEBASYNC:1; /**< bit: 5 Debouncer Asynchronous Enable */
  414. uint16_t RTCOUT:1; /**< bit: 6 RTC Output Enable */
  415. uint16_t DMAEN:1; /**< bit: 7 DMA Enable */
  416. uint16_t DEBF:3; /**< bit: 8..10 Debounce Frequency */
  417. uint16_t :1; /**< bit: 11 Reserved */
  418. uint16_t ACTF:3; /**< bit: 12..14 Active Layer Frequency */
  419. uint16_t SEPTO:1; /**< bit: 15 Separate Tamper Outputs */
  420. } bit; /**< Structure used for bit access */
  421. uint16_t reg; /**< Type used for register access */
  422. } RTC_MODE1_CTRLB_Type;
  423. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  424. #define RTC_MODE1_CTRLB_OFFSET (0x02) /**< (RTC_MODE1_CTRLB) MODE1 Control B Offset */
  425. #define RTC_MODE1_CTRLB_RESETVALUE _U_(0x00) /**< (RTC_MODE1_CTRLB) MODE1 Control B Reset Value */
  426. #define RTC_MODE1_CTRLB_GP0EN_Pos 0 /**< (RTC_MODE1_CTRLB) General Purpose 0 Enable Position */
  427. #define RTC_MODE1_CTRLB_GP0EN_Msk (_U_(0x1) << RTC_MODE1_CTRLB_GP0EN_Pos) /**< (RTC_MODE1_CTRLB) General Purpose 0 Enable Mask */
  428. #define RTC_MODE1_CTRLB_GP0EN RTC_MODE1_CTRLB_GP0EN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_CTRLB_GP0EN_Msk instead */
  429. #define RTC_MODE1_CTRLB_DEBMAJ_Pos 4 /**< (RTC_MODE1_CTRLB) Debouncer Majority Enable Position */
  430. #define RTC_MODE1_CTRLB_DEBMAJ_Msk (_U_(0x1) << RTC_MODE1_CTRLB_DEBMAJ_Pos) /**< (RTC_MODE1_CTRLB) Debouncer Majority Enable Mask */
  431. #define RTC_MODE1_CTRLB_DEBMAJ RTC_MODE1_CTRLB_DEBMAJ_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_CTRLB_DEBMAJ_Msk instead */
  432. #define RTC_MODE1_CTRLB_DEBASYNC_Pos 5 /**< (RTC_MODE1_CTRLB) Debouncer Asynchronous Enable Position */
  433. #define RTC_MODE1_CTRLB_DEBASYNC_Msk (_U_(0x1) << RTC_MODE1_CTRLB_DEBASYNC_Pos) /**< (RTC_MODE1_CTRLB) Debouncer Asynchronous Enable Mask */
  434. #define RTC_MODE1_CTRLB_DEBASYNC RTC_MODE1_CTRLB_DEBASYNC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_CTRLB_DEBASYNC_Msk instead */
  435. #define RTC_MODE1_CTRLB_RTCOUT_Pos 6 /**< (RTC_MODE1_CTRLB) RTC Output Enable Position */
  436. #define RTC_MODE1_CTRLB_RTCOUT_Msk (_U_(0x1) << RTC_MODE1_CTRLB_RTCOUT_Pos) /**< (RTC_MODE1_CTRLB) RTC Output Enable Mask */
  437. #define RTC_MODE1_CTRLB_RTCOUT RTC_MODE1_CTRLB_RTCOUT_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_CTRLB_RTCOUT_Msk instead */
  438. #define RTC_MODE1_CTRLB_DMAEN_Pos 7 /**< (RTC_MODE1_CTRLB) DMA Enable Position */
  439. #define RTC_MODE1_CTRLB_DMAEN_Msk (_U_(0x1) << RTC_MODE1_CTRLB_DMAEN_Pos) /**< (RTC_MODE1_CTRLB) DMA Enable Mask */
  440. #define RTC_MODE1_CTRLB_DMAEN RTC_MODE1_CTRLB_DMAEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_CTRLB_DMAEN_Msk instead */
  441. #define RTC_MODE1_CTRLB_DEBF_Pos 8 /**< (RTC_MODE1_CTRLB) Debounce Frequency Position */
  442. #define RTC_MODE1_CTRLB_DEBF_Msk (_U_(0x7) << RTC_MODE1_CTRLB_DEBF_Pos) /**< (RTC_MODE1_CTRLB) Debounce Frequency Mask */
  443. #define RTC_MODE1_CTRLB_DEBF(value) (RTC_MODE1_CTRLB_DEBF_Msk & ((value) << RTC_MODE1_CTRLB_DEBF_Pos))
  444. #define RTC_MODE1_CTRLB_DEBF_DIV2_Val _U_(0x0) /**< (RTC_MODE1_CTRLB) CLK_RTC_DEB = CLK_RTC/2 */
  445. #define RTC_MODE1_CTRLB_DEBF_DIV4_Val _U_(0x1) /**< (RTC_MODE1_CTRLB) CLK_RTC_DEB = CLK_RTC/4 */
  446. #define RTC_MODE1_CTRLB_DEBF_DIV8_Val _U_(0x2) /**< (RTC_MODE1_CTRLB) CLK_RTC_DEB = CLK_RTC/8 */
  447. #define RTC_MODE1_CTRLB_DEBF_DIV16_Val _U_(0x3) /**< (RTC_MODE1_CTRLB) CLK_RTC_DEB = CLK_RTC/16 */
  448. #define RTC_MODE1_CTRLB_DEBF_DIV32_Val _U_(0x4) /**< (RTC_MODE1_CTRLB) CLK_RTC_DEB = CLK_RTC/32 */
  449. #define RTC_MODE1_CTRLB_DEBF_DIV64_Val _U_(0x5) /**< (RTC_MODE1_CTRLB) CLK_RTC_DEB = CLK_RTC/64 */
  450. #define RTC_MODE1_CTRLB_DEBF_DIV128_Val _U_(0x6) /**< (RTC_MODE1_CTRLB) CLK_RTC_DEB = CLK_RTC/128 */
  451. #define RTC_MODE1_CTRLB_DEBF_DIV256_Val _U_(0x7) /**< (RTC_MODE1_CTRLB) CLK_RTC_DEB = CLK_RTC/256 */
  452. #define RTC_MODE1_CTRLB_DEBF_DIV2 (RTC_MODE1_CTRLB_DEBF_DIV2_Val << RTC_MODE1_CTRLB_DEBF_Pos) /**< (RTC_MODE1_CTRLB) CLK_RTC_DEB = CLK_RTC/2 Position */
  453. #define RTC_MODE1_CTRLB_DEBF_DIV4 (RTC_MODE1_CTRLB_DEBF_DIV4_Val << RTC_MODE1_CTRLB_DEBF_Pos) /**< (RTC_MODE1_CTRLB) CLK_RTC_DEB = CLK_RTC/4 Position */
  454. #define RTC_MODE1_CTRLB_DEBF_DIV8 (RTC_MODE1_CTRLB_DEBF_DIV8_Val << RTC_MODE1_CTRLB_DEBF_Pos) /**< (RTC_MODE1_CTRLB) CLK_RTC_DEB = CLK_RTC/8 Position */
  455. #define RTC_MODE1_CTRLB_DEBF_DIV16 (RTC_MODE1_CTRLB_DEBF_DIV16_Val << RTC_MODE1_CTRLB_DEBF_Pos) /**< (RTC_MODE1_CTRLB) CLK_RTC_DEB = CLK_RTC/16 Position */
  456. #define RTC_MODE1_CTRLB_DEBF_DIV32 (RTC_MODE1_CTRLB_DEBF_DIV32_Val << RTC_MODE1_CTRLB_DEBF_Pos) /**< (RTC_MODE1_CTRLB) CLK_RTC_DEB = CLK_RTC/32 Position */
  457. #define RTC_MODE1_CTRLB_DEBF_DIV64 (RTC_MODE1_CTRLB_DEBF_DIV64_Val << RTC_MODE1_CTRLB_DEBF_Pos) /**< (RTC_MODE1_CTRLB) CLK_RTC_DEB = CLK_RTC/64 Position */
  458. #define RTC_MODE1_CTRLB_DEBF_DIV128 (RTC_MODE1_CTRLB_DEBF_DIV128_Val << RTC_MODE1_CTRLB_DEBF_Pos) /**< (RTC_MODE1_CTRLB) CLK_RTC_DEB = CLK_RTC/128 Position */
  459. #define RTC_MODE1_CTRLB_DEBF_DIV256 (RTC_MODE1_CTRLB_DEBF_DIV256_Val << RTC_MODE1_CTRLB_DEBF_Pos) /**< (RTC_MODE1_CTRLB) CLK_RTC_DEB = CLK_RTC/256 Position */
  460. #define RTC_MODE1_CTRLB_ACTF_Pos 12 /**< (RTC_MODE1_CTRLB) Active Layer Frequency Position */
  461. #define RTC_MODE1_CTRLB_ACTF_Msk (_U_(0x7) << RTC_MODE1_CTRLB_ACTF_Pos) /**< (RTC_MODE1_CTRLB) Active Layer Frequency Mask */
  462. #define RTC_MODE1_CTRLB_ACTF(value) (RTC_MODE1_CTRLB_ACTF_Msk & ((value) << RTC_MODE1_CTRLB_ACTF_Pos))
  463. #define RTC_MODE1_CTRLB_ACTF_DIV2_Val _U_(0x0) /**< (RTC_MODE1_CTRLB) CLK_RTC_OUT = CLK_RTC/2 */
  464. #define RTC_MODE1_CTRLB_ACTF_DIV4_Val _U_(0x1) /**< (RTC_MODE1_CTRLB) CLK_RTC_OUT = CLK_RTC/4 */
  465. #define RTC_MODE1_CTRLB_ACTF_DIV8_Val _U_(0x2) /**< (RTC_MODE1_CTRLB) CLK_RTC_OUT = CLK_RTC/8 */
  466. #define RTC_MODE1_CTRLB_ACTF_DIV16_Val _U_(0x3) /**< (RTC_MODE1_CTRLB) CLK_RTC_OUT = CLK_RTC/16 */
  467. #define RTC_MODE1_CTRLB_ACTF_DIV32_Val _U_(0x4) /**< (RTC_MODE1_CTRLB) CLK_RTC_OUT = CLK_RTC/32 */
  468. #define RTC_MODE1_CTRLB_ACTF_DIV64_Val _U_(0x5) /**< (RTC_MODE1_CTRLB) CLK_RTC_OUT = CLK_RTC/64 */
  469. #define RTC_MODE1_CTRLB_ACTF_DIV128_Val _U_(0x6) /**< (RTC_MODE1_CTRLB) CLK_RTC_OUT = CLK_RTC/128 */
  470. #define RTC_MODE1_CTRLB_ACTF_DIV256_Val _U_(0x7) /**< (RTC_MODE1_CTRLB) CLK_RTC_OUT = CLK_RTC/256 */
  471. #define RTC_MODE1_CTRLB_ACTF_DIV2 (RTC_MODE1_CTRLB_ACTF_DIV2_Val << RTC_MODE1_CTRLB_ACTF_Pos) /**< (RTC_MODE1_CTRLB) CLK_RTC_OUT = CLK_RTC/2 Position */
  472. #define RTC_MODE1_CTRLB_ACTF_DIV4 (RTC_MODE1_CTRLB_ACTF_DIV4_Val << RTC_MODE1_CTRLB_ACTF_Pos) /**< (RTC_MODE1_CTRLB) CLK_RTC_OUT = CLK_RTC/4 Position */
  473. #define RTC_MODE1_CTRLB_ACTF_DIV8 (RTC_MODE1_CTRLB_ACTF_DIV8_Val << RTC_MODE1_CTRLB_ACTF_Pos) /**< (RTC_MODE1_CTRLB) CLK_RTC_OUT = CLK_RTC/8 Position */
  474. #define RTC_MODE1_CTRLB_ACTF_DIV16 (RTC_MODE1_CTRLB_ACTF_DIV16_Val << RTC_MODE1_CTRLB_ACTF_Pos) /**< (RTC_MODE1_CTRLB) CLK_RTC_OUT = CLK_RTC/16 Position */
  475. #define RTC_MODE1_CTRLB_ACTF_DIV32 (RTC_MODE1_CTRLB_ACTF_DIV32_Val << RTC_MODE1_CTRLB_ACTF_Pos) /**< (RTC_MODE1_CTRLB) CLK_RTC_OUT = CLK_RTC/32 Position */
  476. #define RTC_MODE1_CTRLB_ACTF_DIV64 (RTC_MODE1_CTRLB_ACTF_DIV64_Val << RTC_MODE1_CTRLB_ACTF_Pos) /**< (RTC_MODE1_CTRLB) CLK_RTC_OUT = CLK_RTC/64 Position */
  477. #define RTC_MODE1_CTRLB_ACTF_DIV128 (RTC_MODE1_CTRLB_ACTF_DIV128_Val << RTC_MODE1_CTRLB_ACTF_Pos) /**< (RTC_MODE1_CTRLB) CLK_RTC_OUT = CLK_RTC/128 Position */
  478. #define RTC_MODE1_CTRLB_ACTF_DIV256 (RTC_MODE1_CTRLB_ACTF_DIV256_Val << RTC_MODE1_CTRLB_ACTF_Pos) /**< (RTC_MODE1_CTRLB) CLK_RTC_OUT = CLK_RTC/256 Position */
  479. #define RTC_MODE1_CTRLB_SEPTO_Pos 15 /**< (RTC_MODE1_CTRLB) Separate Tamper Outputs Position */
  480. #define RTC_MODE1_CTRLB_SEPTO_Msk (_U_(0x1) << RTC_MODE1_CTRLB_SEPTO_Pos) /**< (RTC_MODE1_CTRLB) Separate Tamper Outputs Mask */
  481. #define RTC_MODE1_CTRLB_SEPTO RTC_MODE1_CTRLB_SEPTO_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_CTRLB_SEPTO_Msk instead */
  482. #define RTC_MODE1_CTRLB_MASK _U_(0xF7F1) /**< \deprecated (RTC_MODE1_CTRLB) Register MASK (Use RTC_MODE1_CTRLB_Msk instead) */
  483. #define RTC_MODE1_CTRLB_Msk _U_(0xF7F1) /**< (RTC_MODE1_CTRLB) Register Mask */
  484. /* -------- RTC_MODE2_CTRLB : (RTC Offset: 0x02) (R/W 16) MODE2 Control B -------- */
  485. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  486. typedef union {
  487. struct {
  488. uint16_t GP0EN:1; /**< bit: 0 General Purpose 0 Enable */
  489. uint16_t :3; /**< bit: 1..3 Reserved */
  490. uint16_t DEBMAJ:1; /**< bit: 4 Debouncer Majority Enable */
  491. uint16_t DEBASYNC:1; /**< bit: 5 Debouncer Asynchronous Enable */
  492. uint16_t RTCOUT:1; /**< bit: 6 RTC Output Enable */
  493. uint16_t DMAEN:1; /**< bit: 7 DMA Enable */
  494. uint16_t DEBF:3; /**< bit: 8..10 Debounce Frequency */
  495. uint16_t :1; /**< bit: 11 Reserved */
  496. uint16_t ACTF:3; /**< bit: 12..14 Active Layer Frequency */
  497. uint16_t SEPTO:1; /**< bit: 15 Separate Tamper Outputs */
  498. } bit; /**< Structure used for bit access */
  499. uint16_t reg; /**< Type used for register access */
  500. } RTC_MODE2_CTRLB_Type;
  501. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  502. #define RTC_MODE2_CTRLB_OFFSET (0x02) /**< (RTC_MODE2_CTRLB) MODE2 Control B Offset */
  503. #define RTC_MODE2_CTRLB_RESETVALUE _U_(0x00) /**< (RTC_MODE2_CTRLB) MODE2 Control B Reset Value */
  504. #define RTC_MODE2_CTRLB_GP0EN_Pos 0 /**< (RTC_MODE2_CTRLB) General Purpose 0 Enable Position */
  505. #define RTC_MODE2_CTRLB_GP0EN_Msk (_U_(0x1) << RTC_MODE2_CTRLB_GP0EN_Pos) /**< (RTC_MODE2_CTRLB) General Purpose 0 Enable Mask */
  506. #define RTC_MODE2_CTRLB_GP0EN RTC_MODE2_CTRLB_GP0EN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_CTRLB_GP0EN_Msk instead */
  507. #define RTC_MODE2_CTRLB_DEBMAJ_Pos 4 /**< (RTC_MODE2_CTRLB) Debouncer Majority Enable Position */
  508. #define RTC_MODE2_CTRLB_DEBMAJ_Msk (_U_(0x1) << RTC_MODE2_CTRLB_DEBMAJ_Pos) /**< (RTC_MODE2_CTRLB) Debouncer Majority Enable Mask */
  509. #define RTC_MODE2_CTRLB_DEBMAJ RTC_MODE2_CTRLB_DEBMAJ_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_CTRLB_DEBMAJ_Msk instead */
  510. #define RTC_MODE2_CTRLB_DEBASYNC_Pos 5 /**< (RTC_MODE2_CTRLB) Debouncer Asynchronous Enable Position */
  511. #define RTC_MODE2_CTRLB_DEBASYNC_Msk (_U_(0x1) << RTC_MODE2_CTRLB_DEBASYNC_Pos) /**< (RTC_MODE2_CTRLB) Debouncer Asynchronous Enable Mask */
  512. #define RTC_MODE2_CTRLB_DEBASYNC RTC_MODE2_CTRLB_DEBASYNC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_CTRLB_DEBASYNC_Msk instead */
  513. #define RTC_MODE2_CTRLB_RTCOUT_Pos 6 /**< (RTC_MODE2_CTRLB) RTC Output Enable Position */
  514. #define RTC_MODE2_CTRLB_RTCOUT_Msk (_U_(0x1) << RTC_MODE2_CTRLB_RTCOUT_Pos) /**< (RTC_MODE2_CTRLB) RTC Output Enable Mask */
  515. #define RTC_MODE2_CTRLB_RTCOUT RTC_MODE2_CTRLB_RTCOUT_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_CTRLB_RTCOUT_Msk instead */
  516. #define RTC_MODE2_CTRLB_DMAEN_Pos 7 /**< (RTC_MODE2_CTRLB) DMA Enable Position */
  517. #define RTC_MODE2_CTRLB_DMAEN_Msk (_U_(0x1) << RTC_MODE2_CTRLB_DMAEN_Pos) /**< (RTC_MODE2_CTRLB) DMA Enable Mask */
  518. #define RTC_MODE2_CTRLB_DMAEN RTC_MODE2_CTRLB_DMAEN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_CTRLB_DMAEN_Msk instead */
  519. #define RTC_MODE2_CTRLB_DEBF_Pos 8 /**< (RTC_MODE2_CTRLB) Debounce Frequency Position */
  520. #define RTC_MODE2_CTRLB_DEBF_Msk (_U_(0x7) << RTC_MODE2_CTRLB_DEBF_Pos) /**< (RTC_MODE2_CTRLB) Debounce Frequency Mask */
  521. #define RTC_MODE2_CTRLB_DEBF(value) (RTC_MODE2_CTRLB_DEBF_Msk & ((value) << RTC_MODE2_CTRLB_DEBF_Pos))
  522. #define RTC_MODE2_CTRLB_DEBF_DIV2_Val _U_(0x0) /**< (RTC_MODE2_CTRLB) CLK_RTC_DEB = CLK_RTC/2 */
  523. #define RTC_MODE2_CTRLB_DEBF_DIV4_Val _U_(0x1) /**< (RTC_MODE2_CTRLB) CLK_RTC_DEB = CLK_RTC/4 */
  524. #define RTC_MODE2_CTRLB_DEBF_DIV8_Val _U_(0x2) /**< (RTC_MODE2_CTRLB) CLK_RTC_DEB = CLK_RTC/8 */
  525. #define RTC_MODE2_CTRLB_DEBF_DIV16_Val _U_(0x3) /**< (RTC_MODE2_CTRLB) CLK_RTC_DEB = CLK_RTC/16 */
  526. #define RTC_MODE2_CTRLB_DEBF_DIV32_Val _U_(0x4) /**< (RTC_MODE2_CTRLB) CLK_RTC_DEB = CLK_RTC/32 */
  527. #define RTC_MODE2_CTRLB_DEBF_DIV64_Val _U_(0x5) /**< (RTC_MODE2_CTRLB) CLK_RTC_DEB = CLK_RTC/64 */
  528. #define RTC_MODE2_CTRLB_DEBF_DIV128_Val _U_(0x6) /**< (RTC_MODE2_CTRLB) CLK_RTC_DEB = CLK_RTC/128 */
  529. #define RTC_MODE2_CTRLB_DEBF_DIV256_Val _U_(0x7) /**< (RTC_MODE2_CTRLB) CLK_RTC_DEB = CLK_RTC/256 */
  530. #define RTC_MODE2_CTRLB_DEBF_DIV2 (RTC_MODE2_CTRLB_DEBF_DIV2_Val << RTC_MODE2_CTRLB_DEBF_Pos) /**< (RTC_MODE2_CTRLB) CLK_RTC_DEB = CLK_RTC/2 Position */
  531. #define RTC_MODE2_CTRLB_DEBF_DIV4 (RTC_MODE2_CTRLB_DEBF_DIV4_Val << RTC_MODE2_CTRLB_DEBF_Pos) /**< (RTC_MODE2_CTRLB) CLK_RTC_DEB = CLK_RTC/4 Position */
  532. #define RTC_MODE2_CTRLB_DEBF_DIV8 (RTC_MODE2_CTRLB_DEBF_DIV8_Val << RTC_MODE2_CTRLB_DEBF_Pos) /**< (RTC_MODE2_CTRLB) CLK_RTC_DEB = CLK_RTC/8 Position */
  533. #define RTC_MODE2_CTRLB_DEBF_DIV16 (RTC_MODE2_CTRLB_DEBF_DIV16_Val << RTC_MODE2_CTRLB_DEBF_Pos) /**< (RTC_MODE2_CTRLB) CLK_RTC_DEB = CLK_RTC/16 Position */
  534. #define RTC_MODE2_CTRLB_DEBF_DIV32 (RTC_MODE2_CTRLB_DEBF_DIV32_Val << RTC_MODE2_CTRLB_DEBF_Pos) /**< (RTC_MODE2_CTRLB) CLK_RTC_DEB = CLK_RTC/32 Position */
  535. #define RTC_MODE2_CTRLB_DEBF_DIV64 (RTC_MODE2_CTRLB_DEBF_DIV64_Val << RTC_MODE2_CTRLB_DEBF_Pos) /**< (RTC_MODE2_CTRLB) CLK_RTC_DEB = CLK_RTC/64 Position */
  536. #define RTC_MODE2_CTRLB_DEBF_DIV128 (RTC_MODE2_CTRLB_DEBF_DIV128_Val << RTC_MODE2_CTRLB_DEBF_Pos) /**< (RTC_MODE2_CTRLB) CLK_RTC_DEB = CLK_RTC/128 Position */
  537. #define RTC_MODE2_CTRLB_DEBF_DIV256 (RTC_MODE2_CTRLB_DEBF_DIV256_Val << RTC_MODE2_CTRLB_DEBF_Pos) /**< (RTC_MODE2_CTRLB) CLK_RTC_DEB = CLK_RTC/256 Position */
  538. #define RTC_MODE2_CTRLB_ACTF_Pos 12 /**< (RTC_MODE2_CTRLB) Active Layer Frequency Position */
  539. #define RTC_MODE2_CTRLB_ACTF_Msk (_U_(0x7) << RTC_MODE2_CTRLB_ACTF_Pos) /**< (RTC_MODE2_CTRLB) Active Layer Frequency Mask */
  540. #define RTC_MODE2_CTRLB_ACTF(value) (RTC_MODE2_CTRLB_ACTF_Msk & ((value) << RTC_MODE2_CTRLB_ACTF_Pos))
  541. #define RTC_MODE2_CTRLB_ACTF_DIV2_Val _U_(0x0) /**< (RTC_MODE2_CTRLB) CLK_RTC_OUT = CLK_RTC/2 */
  542. #define RTC_MODE2_CTRLB_ACTF_DIV4_Val _U_(0x1) /**< (RTC_MODE2_CTRLB) CLK_RTC_OUT = CLK_RTC/4 */
  543. #define RTC_MODE2_CTRLB_ACTF_DIV8_Val _U_(0x2) /**< (RTC_MODE2_CTRLB) CLK_RTC_OUT = CLK_RTC/8 */
  544. #define RTC_MODE2_CTRLB_ACTF_DIV16_Val _U_(0x3) /**< (RTC_MODE2_CTRLB) CLK_RTC_OUT = CLK_RTC/16 */
  545. #define RTC_MODE2_CTRLB_ACTF_DIV32_Val _U_(0x4) /**< (RTC_MODE2_CTRLB) CLK_RTC_OUT = CLK_RTC/32 */
  546. #define RTC_MODE2_CTRLB_ACTF_DIV64_Val _U_(0x5) /**< (RTC_MODE2_CTRLB) CLK_RTC_OUT = CLK_RTC/64 */
  547. #define RTC_MODE2_CTRLB_ACTF_DIV128_Val _U_(0x6) /**< (RTC_MODE2_CTRLB) CLK_RTC_OUT = CLK_RTC/128 */
  548. #define RTC_MODE2_CTRLB_ACTF_DIV256_Val _U_(0x7) /**< (RTC_MODE2_CTRLB) CLK_RTC_OUT = CLK_RTC/256 */
  549. #define RTC_MODE2_CTRLB_ACTF_DIV2 (RTC_MODE2_CTRLB_ACTF_DIV2_Val << RTC_MODE2_CTRLB_ACTF_Pos) /**< (RTC_MODE2_CTRLB) CLK_RTC_OUT = CLK_RTC/2 Position */
  550. #define RTC_MODE2_CTRLB_ACTF_DIV4 (RTC_MODE2_CTRLB_ACTF_DIV4_Val << RTC_MODE2_CTRLB_ACTF_Pos) /**< (RTC_MODE2_CTRLB) CLK_RTC_OUT = CLK_RTC/4 Position */
  551. #define RTC_MODE2_CTRLB_ACTF_DIV8 (RTC_MODE2_CTRLB_ACTF_DIV8_Val << RTC_MODE2_CTRLB_ACTF_Pos) /**< (RTC_MODE2_CTRLB) CLK_RTC_OUT = CLK_RTC/8 Position */
  552. #define RTC_MODE2_CTRLB_ACTF_DIV16 (RTC_MODE2_CTRLB_ACTF_DIV16_Val << RTC_MODE2_CTRLB_ACTF_Pos) /**< (RTC_MODE2_CTRLB) CLK_RTC_OUT = CLK_RTC/16 Position */
  553. #define RTC_MODE2_CTRLB_ACTF_DIV32 (RTC_MODE2_CTRLB_ACTF_DIV32_Val << RTC_MODE2_CTRLB_ACTF_Pos) /**< (RTC_MODE2_CTRLB) CLK_RTC_OUT = CLK_RTC/32 Position */
  554. #define RTC_MODE2_CTRLB_ACTF_DIV64 (RTC_MODE2_CTRLB_ACTF_DIV64_Val << RTC_MODE2_CTRLB_ACTF_Pos) /**< (RTC_MODE2_CTRLB) CLK_RTC_OUT = CLK_RTC/64 Position */
  555. #define RTC_MODE2_CTRLB_ACTF_DIV128 (RTC_MODE2_CTRLB_ACTF_DIV128_Val << RTC_MODE2_CTRLB_ACTF_Pos) /**< (RTC_MODE2_CTRLB) CLK_RTC_OUT = CLK_RTC/128 Position */
  556. #define RTC_MODE2_CTRLB_ACTF_DIV256 (RTC_MODE2_CTRLB_ACTF_DIV256_Val << RTC_MODE2_CTRLB_ACTF_Pos) /**< (RTC_MODE2_CTRLB) CLK_RTC_OUT = CLK_RTC/256 Position */
  557. #define RTC_MODE2_CTRLB_SEPTO_Pos 15 /**< (RTC_MODE2_CTRLB) Separate Tamper Outputs Position */
  558. #define RTC_MODE2_CTRLB_SEPTO_Msk (_U_(0x1) << RTC_MODE2_CTRLB_SEPTO_Pos) /**< (RTC_MODE2_CTRLB) Separate Tamper Outputs Mask */
  559. #define RTC_MODE2_CTRLB_SEPTO RTC_MODE2_CTRLB_SEPTO_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_CTRLB_SEPTO_Msk instead */
  560. #define RTC_MODE2_CTRLB_MASK _U_(0xF7F1) /**< \deprecated (RTC_MODE2_CTRLB) Register MASK (Use RTC_MODE2_CTRLB_Msk instead) */
  561. #define RTC_MODE2_CTRLB_Msk _U_(0xF7F1) /**< (RTC_MODE2_CTRLB) Register Mask */
  562. /* -------- RTC_MODE0_EVCTRL : (RTC Offset: 0x04) (R/W 32) MODE0 Event Control -------- */
  563. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  564. typedef union {
  565. struct {
  566. uint32_t PEREO0:1; /**< bit: 0 Periodic Interval 0 Event Output Enable */
  567. uint32_t PEREO1:1; /**< bit: 1 Periodic Interval 1 Event Output Enable */
  568. uint32_t PEREO2:1; /**< bit: 2 Periodic Interval 2 Event Output Enable */
  569. uint32_t PEREO3:1; /**< bit: 3 Periodic Interval 3 Event Output Enable */
  570. uint32_t PEREO4:1; /**< bit: 4 Periodic Interval 4 Event Output Enable */
  571. uint32_t PEREO5:1; /**< bit: 5 Periodic Interval 5 Event Output Enable */
  572. uint32_t PEREO6:1; /**< bit: 6 Periodic Interval 6 Event Output Enable */
  573. uint32_t PEREO7:1; /**< bit: 7 Periodic Interval 7 Event Output Enable */
  574. uint32_t CMPEO0:1; /**< bit: 8 Compare 0 Event Output Enable */
  575. uint32_t :5; /**< bit: 9..13 Reserved */
  576. uint32_t TAMPEREO:1; /**< bit: 14 Tamper Event Output Enable */
  577. uint32_t OVFEO:1; /**< bit: 15 Overflow Event Output Enable */
  578. uint32_t TAMPEVEI:1; /**< bit: 16 Tamper Event Input Enable */
  579. uint32_t :7; /**< bit: 17..23 Reserved */
  580. uint32_t PERDEO:1; /**< bit: 24 Periodic Interval Daily Event Output Enable */
  581. uint32_t :7; /**< bit: 25..31 Reserved */
  582. } bit; /**< Structure used for bit access */
  583. struct {
  584. uint32_t PEREO:8; /**< bit: 0..7 Periodic Interval x Event Output Enable */
  585. uint32_t CMPEO:1; /**< bit: 8 Compare x Event Output Enable */
  586. uint32_t :23; /**< bit: 9..31 Reserved */
  587. } vec; /**< Structure used for vec access */
  588. uint32_t reg; /**< Type used for register access */
  589. } RTC_MODE0_EVCTRL_Type;
  590. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  591. #define RTC_MODE0_EVCTRL_OFFSET (0x04) /**< (RTC_MODE0_EVCTRL) MODE0 Event Control Offset */
  592. #define RTC_MODE0_EVCTRL_RESETVALUE _U_(0x00) /**< (RTC_MODE0_EVCTRL) MODE0 Event Control Reset Value */
  593. #define RTC_MODE0_EVCTRL_PEREO0_Pos 0 /**< (RTC_MODE0_EVCTRL) Periodic Interval 0 Event Output Enable Position */
  594. #define RTC_MODE0_EVCTRL_PEREO0_Msk (_U_(0x1) << RTC_MODE0_EVCTRL_PEREO0_Pos) /**< (RTC_MODE0_EVCTRL) Periodic Interval 0 Event Output Enable Mask */
  595. #define RTC_MODE0_EVCTRL_PEREO0 RTC_MODE0_EVCTRL_PEREO0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_EVCTRL_PEREO0_Msk instead */
  596. #define RTC_MODE0_EVCTRL_PEREO1_Pos 1 /**< (RTC_MODE0_EVCTRL) Periodic Interval 1 Event Output Enable Position */
  597. #define RTC_MODE0_EVCTRL_PEREO1_Msk (_U_(0x1) << RTC_MODE0_EVCTRL_PEREO1_Pos) /**< (RTC_MODE0_EVCTRL) Periodic Interval 1 Event Output Enable Mask */
  598. #define RTC_MODE0_EVCTRL_PEREO1 RTC_MODE0_EVCTRL_PEREO1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_EVCTRL_PEREO1_Msk instead */
  599. #define RTC_MODE0_EVCTRL_PEREO2_Pos 2 /**< (RTC_MODE0_EVCTRL) Periodic Interval 2 Event Output Enable Position */
  600. #define RTC_MODE0_EVCTRL_PEREO2_Msk (_U_(0x1) << RTC_MODE0_EVCTRL_PEREO2_Pos) /**< (RTC_MODE0_EVCTRL) Periodic Interval 2 Event Output Enable Mask */
  601. #define RTC_MODE0_EVCTRL_PEREO2 RTC_MODE0_EVCTRL_PEREO2_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_EVCTRL_PEREO2_Msk instead */
  602. #define RTC_MODE0_EVCTRL_PEREO3_Pos 3 /**< (RTC_MODE0_EVCTRL) Periodic Interval 3 Event Output Enable Position */
  603. #define RTC_MODE0_EVCTRL_PEREO3_Msk (_U_(0x1) << RTC_MODE0_EVCTRL_PEREO3_Pos) /**< (RTC_MODE0_EVCTRL) Periodic Interval 3 Event Output Enable Mask */
  604. #define RTC_MODE0_EVCTRL_PEREO3 RTC_MODE0_EVCTRL_PEREO3_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_EVCTRL_PEREO3_Msk instead */
  605. #define RTC_MODE0_EVCTRL_PEREO4_Pos 4 /**< (RTC_MODE0_EVCTRL) Periodic Interval 4 Event Output Enable Position */
  606. #define RTC_MODE0_EVCTRL_PEREO4_Msk (_U_(0x1) << RTC_MODE0_EVCTRL_PEREO4_Pos) /**< (RTC_MODE0_EVCTRL) Periodic Interval 4 Event Output Enable Mask */
  607. #define RTC_MODE0_EVCTRL_PEREO4 RTC_MODE0_EVCTRL_PEREO4_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_EVCTRL_PEREO4_Msk instead */
  608. #define RTC_MODE0_EVCTRL_PEREO5_Pos 5 /**< (RTC_MODE0_EVCTRL) Periodic Interval 5 Event Output Enable Position */
  609. #define RTC_MODE0_EVCTRL_PEREO5_Msk (_U_(0x1) << RTC_MODE0_EVCTRL_PEREO5_Pos) /**< (RTC_MODE0_EVCTRL) Periodic Interval 5 Event Output Enable Mask */
  610. #define RTC_MODE0_EVCTRL_PEREO5 RTC_MODE0_EVCTRL_PEREO5_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_EVCTRL_PEREO5_Msk instead */
  611. #define RTC_MODE0_EVCTRL_PEREO6_Pos 6 /**< (RTC_MODE0_EVCTRL) Periodic Interval 6 Event Output Enable Position */
  612. #define RTC_MODE0_EVCTRL_PEREO6_Msk (_U_(0x1) << RTC_MODE0_EVCTRL_PEREO6_Pos) /**< (RTC_MODE0_EVCTRL) Periodic Interval 6 Event Output Enable Mask */
  613. #define RTC_MODE0_EVCTRL_PEREO6 RTC_MODE0_EVCTRL_PEREO6_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_EVCTRL_PEREO6_Msk instead */
  614. #define RTC_MODE0_EVCTRL_PEREO7_Pos 7 /**< (RTC_MODE0_EVCTRL) Periodic Interval 7 Event Output Enable Position */
  615. #define RTC_MODE0_EVCTRL_PEREO7_Msk (_U_(0x1) << RTC_MODE0_EVCTRL_PEREO7_Pos) /**< (RTC_MODE0_EVCTRL) Periodic Interval 7 Event Output Enable Mask */
  616. #define RTC_MODE0_EVCTRL_PEREO7 RTC_MODE0_EVCTRL_PEREO7_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_EVCTRL_PEREO7_Msk instead */
  617. #define RTC_MODE0_EVCTRL_CMPEO0_Pos 8 /**< (RTC_MODE0_EVCTRL) Compare 0 Event Output Enable Position */
  618. #define RTC_MODE0_EVCTRL_CMPEO0_Msk (_U_(0x1) << RTC_MODE0_EVCTRL_CMPEO0_Pos) /**< (RTC_MODE0_EVCTRL) Compare 0 Event Output Enable Mask */
  619. #define RTC_MODE0_EVCTRL_CMPEO0 RTC_MODE0_EVCTRL_CMPEO0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_EVCTRL_CMPEO0_Msk instead */
  620. #define RTC_MODE0_EVCTRL_TAMPEREO_Pos 14 /**< (RTC_MODE0_EVCTRL) Tamper Event Output Enable Position */
  621. #define RTC_MODE0_EVCTRL_TAMPEREO_Msk (_U_(0x1) << RTC_MODE0_EVCTRL_TAMPEREO_Pos) /**< (RTC_MODE0_EVCTRL) Tamper Event Output Enable Mask */
  622. #define RTC_MODE0_EVCTRL_TAMPEREO RTC_MODE0_EVCTRL_TAMPEREO_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_EVCTRL_TAMPEREO_Msk instead */
  623. #define RTC_MODE0_EVCTRL_OVFEO_Pos 15 /**< (RTC_MODE0_EVCTRL) Overflow Event Output Enable Position */
  624. #define RTC_MODE0_EVCTRL_OVFEO_Msk (_U_(0x1) << RTC_MODE0_EVCTRL_OVFEO_Pos) /**< (RTC_MODE0_EVCTRL) Overflow Event Output Enable Mask */
  625. #define RTC_MODE0_EVCTRL_OVFEO RTC_MODE0_EVCTRL_OVFEO_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_EVCTRL_OVFEO_Msk instead */
  626. #define RTC_MODE0_EVCTRL_TAMPEVEI_Pos 16 /**< (RTC_MODE0_EVCTRL) Tamper Event Input Enable Position */
  627. #define RTC_MODE0_EVCTRL_TAMPEVEI_Msk (_U_(0x1) << RTC_MODE0_EVCTRL_TAMPEVEI_Pos) /**< (RTC_MODE0_EVCTRL) Tamper Event Input Enable Mask */
  628. #define RTC_MODE0_EVCTRL_TAMPEVEI RTC_MODE0_EVCTRL_TAMPEVEI_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_EVCTRL_TAMPEVEI_Msk instead */
  629. #define RTC_MODE0_EVCTRL_PERDEO_Pos 24 /**< (RTC_MODE0_EVCTRL) Periodic Interval Daily Event Output Enable Position */
  630. #define RTC_MODE0_EVCTRL_PERDEO_Msk (_U_(0x1) << RTC_MODE0_EVCTRL_PERDEO_Pos) /**< (RTC_MODE0_EVCTRL) Periodic Interval Daily Event Output Enable Mask */
  631. #define RTC_MODE0_EVCTRL_PERDEO RTC_MODE0_EVCTRL_PERDEO_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_EVCTRL_PERDEO_Msk instead */
  632. #define RTC_MODE0_EVCTRL_MASK _U_(0x101C1FF) /**< \deprecated (RTC_MODE0_EVCTRL) Register MASK (Use RTC_MODE0_EVCTRL_Msk instead) */
  633. #define RTC_MODE0_EVCTRL_Msk _U_(0x101C1FF) /**< (RTC_MODE0_EVCTRL) Register Mask */
  634. #define RTC_MODE0_EVCTRL_PEREO_Pos 0 /**< (RTC_MODE0_EVCTRL Position) Periodic Interval x Event Output Enable */
  635. #define RTC_MODE0_EVCTRL_PEREO_Msk (_U_(0xFF) << RTC_MODE0_EVCTRL_PEREO_Pos) /**< (RTC_MODE0_EVCTRL Mask) PEREO */
  636. #define RTC_MODE0_EVCTRL_PEREO(value) (RTC_MODE0_EVCTRL_PEREO_Msk & ((value) << RTC_MODE0_EVCTRL_PEREO_Pos))
  637. #define RTC_MODE0_EVCTRL_CMPEO_Pos 8 /**< (RTC_MODE0_EVCTRL Position) Compare x Event Output Enable */
  638. #define RTC_MODE0_EVCTRL_CMPEO_Msk (_U_(0x1) << RTC_MODE0_EVCTRL_CMPEO_Pos) /**< (RTC_MODE0_EVCTRL Mask) CMPEO */
  639. #define RTC_MODE0_EVCTRL_CMPEO(value) (RTC_MODE0_EVCTRL_CMPEO_Msk & ((value) << RTC_MODE0_EVCTRL_CMPEO_Pos))
  640. /* -------- RTC_MODE1_EVCTRL : (RTC Offset: 0x04) (R/W 32) MODE1 Event Control -------- */
  641. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  642. typedef union {
  643. struct {
  644. uint32_t PEREO0:1; /**< bit: 0 Periodic Interval 0 Event Output Enable */
  645. uint32_t PEREO1:1; /**< bit: 1 Periodic Interval 1 Event Output Enable */
  646. uint32_t PEREO2:1; /**< bit: 2 Periodic Interval 2 Event Output Enable */
  647. uint32_t PEREO3:1; /**< bit: 3 Periodic Interval 3 Event Output Enable */
  648. uint32_t PEREO4:1; /**< bit: 4 Periodic Interval 4 Event Output Enable */
  649. uint32_t PEREO5:1; /**< bit: 5 Periodic Interval 5 Event Output Enable */
  650. uint32_t PEREO6:1; /**< bit: 6 Periodic Interval 6 Event Output Enable */
  651. uint32_t PEREO7:1; /**< bit: 7 Periodic Interval 7 Event Output Enable */
  652. uint32_t CMPEO0:1; /**< bit: 8 Compare 0 Event Output Enable */
  653. uint32_t CMPEO1:1; /**< bit: 9 Compare 1 Event Output Enable */
  654. uint32_t :4; /**< bit: 10..13 Reserved */
  655. uint32_t TAMPEREO:1; /**< bit: 14 Tamper Event Output Enable */
  656. uint32_t OVFEO:1; /**< bit: 15 Overflow Event Output Enable */
  657. uint32_t TAMPEVEI:1; /**< bit: 16 Tamper Event Input Enable */
  658. uint32_t :7; /**< bit: 17..23 Reserved */
  659. uint32_t PERDEO:1; /**< bit: 24 Periodic Interval Daily Event Output Enable */
  660. uint32_t :7; /**< bit: 25..31 Reserved */
  661. } bit; /**< Structure used for bit access */
  662. struct {
  663. uint32_t PEREO:8; /**< bit: 0..7 Periodic Interval x Event Output Enable */
  664. uint32_t CMPEO:2; /**< bit: 8..9 Compare x Event Output Enable */
  665. uint32_t :22; /**< bit: 10..31 Reserved */
  666. } vec; /**< Structure used for vec access */
  667. uint32_t reg; /**< Type used for register access */
  668. } RTC_MODE1_EVCTRL_Type;
  669. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  670. #define RTC_MODE1_EVCTRL_OFFSET (0x04) /**< (RTC_MODE1_EVCTRL) MODE1 Event Control Offset */
  671. #define RTC_MODE1_EVCTRL_RESETVALUE _U_(0x00) /**< (RTC_MODE1_EVCTRL) MODE1 Event Control Reset Value */
  672. #define RTC_MODE1_EVCTRL_PEREO0_Pos 0 /**< (RTC_MODE1_EVCTRL) Periodic Interval 0 Event Output Enable Position */
  673. #define RTC_MODE1_EVCTRL_PEREO0_Msk (_U_(0x1) << RTC_MODE1_EVCTRL_PEREO0_Pos) /**< (RTC_MODE1_EVCTRL) Periodic Interval 0 Event Output Enable Mask */
  674. #define RTC_MODE1_EVCTRL_PEREO0 RTC_MODE1_EVCTRL_PEREO0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_EVCTRL_PEREO0_Msk instead */
  675. #define RTC_MODE1_EVCTRL_PEREO1_Pos 1 /**< (RTC_MODE1_EVCTRL) Periodic Interval 1 Event Output Enable Position */
  676. #define RTC_MODE1_EVCTRL_PEREO1_Msk (_U_(0x1) << RTC_MODE1_EVCTRL_PEREO1_Pos) /**< (RTC_MODE1_EVCTRL) Periodic Interval 1 Event Output Enable Mask */
  677. #define RTC_MODE1_EVCTRL_PEREO1 RTC_MODE1_EVCTRL_PEREO1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_EVCTRL_PEREO1_Msk instead */
  678. #define RTC_MODE1_EVCTRL_PEREO2_Pos 2 /**< (RTC_MODE1_EVCTRL) Periodic Interval 2 Event Output Enable Position */
  679. #define RTC_MODE1_EVCTRL_PEREO2_Msk (_U_(0x1) << RTC_MODE1_EVCTRL_PEREO2_Pos) /**< (RTC_MODE1_EVCTRL) Periodic Interval 2 Event Output Enable Mask */
  680. #define RTC_MODE1_EVCTRL_PEREO2 RTC_MODE1_EVCTRL_PEREO2_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_EVCTRL_PEREO2_Msk instead */
  681. #define RTC_MODE1_EVCTRL_PEREO3_Pos 3 /**< (RTC_MODE1_EVCTRL) Periodic Interval 3 Event Output Enable Position */
  682. #define RTC_MODE1_EVCTRL_PEREO3_Msk (_U_(0x1) << RTC_MODE1_EVCTRL_PEREO3_Pos) /**< (RTC_MODE1_EVCTRL) Periodic Interval 3 Event Output Enable Mask */
  683. #define RTC_MODE1_EVCTRL_PEREO3 RTC_MODE1_EVCTRL_PEREO3_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_EVCTRL_PEREO3_Msk instead */
  684. #define RTC_MODE1_EVCTRL_PEREO4_Pos 4 /**< (RTC_MODE1_EVCTRL) Periodic Interval 4 Event Output Enable Position */
  685. #define RTC_MODE1_EVCTRL_PEREO4_Msk (_U_(0x1) << RTC_MODE1_EVCTRL_PEREO4_Pos) /**< (RTC_MODE1_EVCTRL) Periodic Interval 4 Event Output Enable Mask */
  686. #define RTC_MODE1_EVCTRL_PEREO4 RTC_MODE1_EVCTRL_PEREO4_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_EVCTRL_PEREO4_Msk instead */
  687. #define RTC_MODE1_EVCTRL_PEREO5_Pos 5 /**< (RTC_MODE1_EVCTRL) Periodic Interval 5 Event Output Enable Position */
  688. #define RTC_MODE1_EVCTRL_PEREO5_Msk (_U_(0x1) << RTC_MODE1_EVCTRL_PEREO5_Pos) /**< (RTC_MODE1_EVCTRL) Periodic Interval 5 Event Output Enable Mask */
  689. #define RTC_MODE1_EVCTRL_PEREO5 RTC_MODE1_EVCTRL_PEREO5_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_EVCTRL_PEREO5_Msk instead */
  690. #define RTC_MODE1_EVCTRL_PEREO6_Pos 6 /**< (RTC_MODE1_EVCTRL) Periodic Interval 6 Event Output Enable Position */
  691. #define RTC_MODE1_EVCTRL_PEREO6_Msk (_U_(0x1) << RTC_MODE1_EVCTRL_PEREO6_Pos) /**< (RTC_MODE1_EVCTRL) Periodic Interval 6 Event Output Enable Mask */
  692. #define RTC_MODE1_EVCTRL_PEREO6 RTC_MODE1_EVCTRL_PEREO6_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_EVCTRL_PEREO6_Msk instead */
  693. #define RTC_MODE1_EVCTRL_PEREO7_Pos 7 /**< (RTC_MODE1_EVCTRL) Periodic Interval 7 Event Output Enable Position */
  694. #define RTC_MODE1_EVCTRL_PEREO7_Msk (_U_(0x1) << RTC_MODE1_EVCTRL_PEREO7_Pos) /**< (RTC_MODE1_EVCTRL) Periodic Interval 7 Event Output Enable Mask */
  695. #define RTC_MODE1_EVCTRL_PEREO7 RTC_MODE1_EVCTRL_PEREO7_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_EVCTRL_PEREO7_Msk instead */
  696. #define RTC_MODE1_EVCTRL_CMPEO0_Pos 8 /**< (RTC_MODE1_EVCTRL) Compare 0 Event Output Enable Position */
  697. #define RTC_MODE1_EVCTRL_CMPEO0_Msk (_U_(0x1) << RTC_MODE1_EVCTRL_CMPEO0_Pos) /**< (RTC_MODE1_EVCTRL) Compare 0 Event Output Enable Mask */
  698. #define RTC_MODE1_EVCTRL_CMPEO0 RTC_MODE1_EVCTRL_CMPEO0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_EVCTRL_CMPEO0_Msk instead */
  699. #define RTC_MODE1_EVCTRL_CMPEO1_Pos 9 /**< (RTC_MODE1_EVCTRL) Compare 1 Event Output Enable Position */
  700. #define RTC_MODE1_EVCTRL_CMPEO1_Msk (_U_(0x1) << RTC_MODE1_EVCTRL_CMPEO1_Pos) /**< (RTC_MODE1_EVCTRL) Compare 1 Event Output Enable Mask */
  701. #define RTC_MODE1_EVCTRL_CMPEO1 RTC_MODE1_EVCTRL_CMPEO1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_EVCTRL_CMPEO1_Msk instead */
  702. #define RTC_MODE1_EVCTRL_TAMPEREO_Pos 14 /**< (RTC_MODE1_EVCTRL) Tamper Event Output Enable Position */
  703. #define RTC_MODE1_EVCTRL_TAMPEREO_Msk (_U_(0x1) << RTC_MODE1_EVCTRL_TAMPEREO_Pos) /**< (RTC_MODE1_EVCTRL) Tamper Event Output Enable Mask */
  704. #define RTC_MODE1_EVCTRL_TAMPEREO RTC_MODE1_EVCTRL_TAMPEREO_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_EVCTRL_TAMPEREO_Msk instead */
  705. #define RTC_MODE1_EVCTRL_OVFEO_Pos 15 /**< (RTC_MODE1_EVCTRL) Overflow Event Output Enable Position */
  706. #define RTC_MODE1_EVCTRL_OVFEO_Msk (_U_(0x1) << RTC_MODE1_EVCTRL_OVFEO_Pos) /**< (RTC_MODE1_EVCTRL) Overflow Event Output Enable Mask */
  707. #define RTC_MODE1_EVCTRL_OVFEO RTC_MODE1_EVCTRL_OVFEO_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_EVCTRL_OVFEO_Msk instead */
  708. #define RTC_MODE1_EVCTRL_TAMPEVEI_Pos 16 /**< (RTC_MODE1_EVCTRL) Tamper Event Input Enable Position */
  709. #define RTC_MODE1_EVCTRL_TAMPEVEI_Msk (_U_(0x1) << RTC_MODE1_EVCTRL_TAMPEVEI_Pos) /**< (RTC_MODE1_EVCTRL) Tamper Event Input Enable Mask */
  710. #define RTC_MODE1_EVCTRL_TAMPEVEI RTC_MODE1_EVCTRL_TAMPEVEI_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_EVCTRL_TAMPEVEI_Msk instead */
  711. #define RTC_MODE1_EVCTRL_PERDEO_Pos 24 /**< (RTC_MODE1_EVCTRL) Periodic Interval Daily Event Output Enable Position */
  712. #define RTC_MODE1_EVCTRL_PERDEO_Msk (_U_(0x1) << RTC_MODE1_EVCTRL_PERDEO_Pos) /**< (RTC_MODE1_EVCTRL) Periodic Interval Daily Event Output Enable Mask */
  713. #define RTC_MODE1_EVCTRL_PERDEO RTC_MODE1_EVCTRL_PERDEO_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_EVCTRL_PERDEO_Msk instead */
  714. #define RTC_MODE1_EVCTRL_MASK _U_(0x101C3FF) /**< \deprecated (RTC_MODE1_EVCTRL) Register MASK (Use RTC_MODE1_EVCTRL_Msk instead) */
  715. #define RTC_MODE1_EVCTRL_Msk _U_(0x101C3FF) /**< (RTC_MODE1_EVCTRL) Register Mask */
  716. #define RTC_MODE1_EVCTRL_PEREO_Pos 0 /**< (RTC_MODE1_EVCTRL Position) Periodic Interval x Event Output Enable */
  717. #define RTC_MODE1_EVCTRL_PEREO_Msk (_U_(0xFF) << RTC_MODE1_EVCTRL_PEREO_Pos) /**< (RTC_MODE1_EVCTRL Mask) PEREO */
  718. #define RTC_MODE1_EVCTRL_PEREO(value) (RTC_MODE1_EVCTRL_PEREO_Msk & ((value) << RTC_MODE1_EVCTRL_PEREO_Pos))
  719. #define RTC_MODE1_EVCTRL_CMPEO_Pos 8 /**< (RTC_MODE1_EVCTRL Position) Compare x Event Output Enable */
  720. #define RTC_MODE1_EVCTRL_CMPEO_Msk (_U_(0x3) << RTC_MODE1_EVCTRL_CMPEO_Pos) /**< (RTC_MODE1_EVCTRL Mask) CMPEO */
  721. #define RTC_MODE1_EVCTRL_CMPEO(value) (RTC_MODE1_EVCTRL_CMPEO_Msk & ((value) << RTC_MODE1_EVCTRL_CMPEO_Pos))
  722. /* -------- RTC_MODE2_EVCTRL : (RTC Offset: 0x04) (R/W 32) MODE2 Event Control -------- */
  723. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  724. typedef union {
  725. struct {
  726. uint32_t PEREO0:1; /**< bit: 0 Periodic Interval 0 Event Output Enable */
  727. uint32_t PEREO1:1; /**< bit: 1 Periodic Interval 1 Event Output Enable */
  728. uint32_t PEREO2:1; /**< bit: 2 Periodic Interval 2 Event Output Enable */
  729. uint32_t PEREO3:1; /**< bit: 3 Periodic Interval 3 Event Output Enable */
  730. uint32_t PEREO4:1; /**< bit: 4 Periodic Interval 4 Event Output Enable */
  731. uint32_t PEREO5:1; /**< bit: 5 Periodic Interval 5 Event Output Enable */
  732. uint32_t PEREO6:1; /**< bit: 6 Periodic Interval 6 Event Output Enable */
  733. uint32_t PEREO7:1; /**< bit: 7 Periodic Interval 7 Event Output Enable */
  734. uint32_t ALARMEO0:1; /**< bit: 8 Alarm 0 Event Output Enable */
  735. uint32_t :5; /**< bit: 9..13 Reserved */
  736. uint32_t TAMPEREO:1; /**< bit: 14 Tamper Event Output Enable */
  737. uint32_t OVFEO:1; /**< bit: 15 Overflow Event Output Enable */
  738. uint32_t TAMPEVEI:1; /**< bit: 16 Tamper Event Input Enable */
  739. uint32_t :7; /**< bit: 17..23 Reserved */
  740. uint32_t PERDEO:1; /**< bit: 24 Periodic Interval Daily Event Output Enable */
  741. uint32_t :7; /**< bit: 25..31 Reserved */
  742. } bit; /**< Structure used for bit access */
  743. struct {
  744. uint32_t PEREO:8; /**< bit: 0..7 Periodic Interval x Event Output Enable */
  745. uint32_t ALARMEO:1; /**< bit: 8 Alarm x Event Output Enable */
  746. uint32_t :23; /**< bit: 9..31 Reserved */
  747. } vec; /**< Structure used for vec access */
  748. uint32_t reg; /**< Type used for register access */
  749. } RTC_MODE2_EVCTRL_Type;
  750. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  751. #define RTC_MODE2_EVCTRL_OFFSET (0x04) /**< (RTC_MODE2_EVCTRL) MODE2 Event Control Offset */
  752. #define RTC_MODE2_EVCTRL_RESETVALUE _U_(0x00) /**< (RTC_MODE2_EVCTRL) MODE2 Event Control Reset Value */
  753. #define RTC_MODE2_EVCTRL_PEREO0_Pos 0 /**< (RTC_MODE2_EVCTRL) Periodic Interval 0 Event Output Enable Position */
  754. #define RTC_MODE2_EVCTRL_PEREO0_Msk (_U_(0x1) << RTC_MODE2_EVCTRL_PEREO0_Pos) /**< (RTC_MODE2_EVCTRL) Periodic Interval 0 Event Output Enable Mask */
  755. #define RTC_MODE2_EVCTRL_PEREO0 RTC_MODE2_EVCTRL_PEREO0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_EVCTRL_PEREO0_Msk instead */
  756. #define RTC_MODE2_EVCTRL_PEREO1_Pos 1 /**< (RTC_MODE2_EVCTRL) Periodic Interval 1 Event Output Enable Position */
  757. #define RTC_MODE2_EVCTRL_PEREO1_Msk (_U_(0x1) << RTC_MODE2_EVCTRL_PEREO1_Pos) /**< (RTC_MODE2_EVCTRL) Periodic Interval 1 Event Output Enable Mask */
  758. #define RTC_MODE2_EVCTRL_PEREO1 RTC_MODE2_EVCTRL_PEREO1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_EVCTRL_PEREO1_Msk instead */
  759. #define RTC_MODE2_EVCTRL_PEREO2_Pos 2 /**< (RTC_MODE2_EVCTRL) Periodic Interval 2 Event Output Enable Position */
  760. #define RTC_MODE2_EVCTRL_PEREO2_Msk (_U_(0x1) << RTC_MODE2_EVCTRL_PEREO2_Pos) /**< (RTC_MODE2_EVCTRL) Periodic Interval 2 Event Output Enable Mask */
  761. #define RTC_MODE2_EVCTRL_PEREO2 RTC_MODE2_EVCTRL_PEREO2_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_EVCTRL_PEREO2_Msk instead */
  762. #define RTC_MODE2_EVCTRL_PEREO3_Pos 3 /**< (RTC_MODE2_EVCTRL) Periodic Interval 3 Event Output Enable Position */
  763. #define RTC_MODE2_EVCTRL_PEREO3_Msk (_U_(0x1) << RTC_MODE2_EVCTRL_PEREO3_Pos) /**< (RTC_MODE2_EVCTRL) Periodic Interval 3 Event Output Enable Mask */
  764. #define RTC_MODE2_EVCTRL_PEREO3 RTC_MODE2_EVCTRL_PEREO3_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_EVCTRL_PEREO3_Msk instead */
  765. #define RTC_MODE2_EVCTRL_PEREO4_Pos 4 /**< (RTC_MODE2_EVCTRL) Periodic Interval 4 Event Output Enable Position */
  766. #define RTC_MODE2_EVCTRL_PEREO4_Msk (_U_(0x1) << RTC_MODE2_EVCTRL_PEREO4_Pos) /**< (RTC_MODE2_EVCTRL) Periodic Interval 4 Event Output Enable Mask */
  767. #define RTC_MODE2_EVCTRL_PEREO4 RTC_MODE2_EVCTRL_PEREO4_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_EVCTRL_PEREO4_Msk instead */
  768. #define RTC_MODE2_EVCTRL_PEREO5_Pos 5 /**< (RTC_MODE2_EVCTRL) Periodic Interval 5 Event Output Enable Position */
  769. #define RTC_MODE2_EVCTRL_PEREO5_Msk (_U_(0x1) << RTC_MODE2_EVCTRL_PEREO5_Pos) /**< (RTC_MODE2_EVCTRL) Periodic Interval 5 Event Output Enable Mask */
  770. #define RTC_MODE2_EVCTRL_PEREO5 RTC_MODE2_EVCTRL_PEREO5_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_EVCTRL_PEREO5_Msk instead */
  771. #define RTC_MODE2_EVCTRL_PEREO6_Pos 6 /**< (RTC_MODE2_EVCTRL) Periodic Interval 6 Event Output Enable Position */
  772. #define RTC_MODE2_EVCTRL_PEREO6_Msk (_U_(0x1) << RTC_MODE2_EVCTRL_PEREO6_Pos) /**< (RTC_MODE2_EVCTRL) Periodic Interval 6 Event Output Enable Mask */
  773. #define RTC_MODE2_EVCTRL_PEREO6 RTC_MODE2_EVCTRL_PEREO6_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_EVCTRL_PEREO6_Msk instead */
  774. #define RTC_MODE2_EVCTRL_PEREO7_Pos 7 /**< (RTC_MODE2_EVCTRL) Periodic Interval 7 Event Output Enable Position */
  775. #define RTC_MODE2_EVCTRL_PEREO7_Msk (_U_(0x1) << RTC_MODE2_EVCTRL_PEREO7_Pos) /**< (RTC_MODE2_EVCTRL) Periodic Interval 7 Event Output Enable Mask */
  776. #define RTC_MODE2_EVCTRL_PEREO7 RTC_MODE2_EVCTRL_PEREO7_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_EVCTRL_PEREO7_Msk instead */
  777. #define RTC_MODE2_EVCTRL_ALARMEO0_Pos 8 /**< (RTC_MODE2_EVCTRL) Alarm 0 Event Output Enable Position */
  778. #define RTC_MODE2_EVCTRL_ALARMEO0_Msk (_U_(0x1) << RTC_MODE2_EVCTRL_ALARMEO0_Pos) /**< (RTC_MODE2_EVCTRL) Alarm 0 Event Output Enable Mask */
  779. #define RTC_MODE2_EVCTRL_ALARMEO0 RTC_MODE2_EVCTRL_ALARMEO0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_EVCTRL_ALARMEO0_Msk instead */
  780. #define RTC_MODE2_EVCTRL_TAMPEREO_Pos 14 /**< (RTC_MODE2_EVCTRL) Tamper Event Output Enable Position */
  781. #define RTC_MODE2_EVCTRL_TAMPEREO_Msk (_U_(0x1) << RTC_MODE2_EVCTRL_TAMPEREO_Pos) /**< (RTC_MODE2_EVCTRL) Tamper Event Output Enable Mask */
  782. #define RTC_MODE2_EVCTRL_TAMPEREO RTC_MODE2_EVCTRL_TAMPEREO_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_EVCTRL_TAMPEREO_Msk instead */
  783. #define RTC_MODE2_EVCTRL_OVFEO_Pos 15 /**< (RTC_MODE2_EVCTRL) Overflow Event Output Enable Position */
  784. #define RTC_MODE2_EVCTRL_OVFEO_Msk (_U_(0x1) << RTC_MODE2_EVCTRL_OVFEO_Pos) /**< (RTC_MODE2_EVCTRL) Overflow Event Output Enable Mask */
  785. #define RTC_MODE2_EVCTRL_OVFEO RTC_MODE2_EVCTRL_OVFEO_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_EVCTRL_OVFEO_Msk instead */
  786. #define RTC_MODE2_EVCTRL_TAMPEVEI_Pos 16 /**< (RTC_MODE2_EVCTRL) Tamper Event Input Enable Position */
  787. #define RTC_MODE2_EVCTRL_TAMPEVEI_Msk (_U_(0x1) << RTC_MODE2_EVCTRL_TAMPEVEI_Pos) /**< (RTC_MODE2_EVCTRL) Tamper Event Input Enable Mask */
  788. #define RTC_MODE2_EVCTRL_TAMPEVEI RTC_MODE2_EVCTRL_TAMPEVEI_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_EVCTRL_TAMPEVEI_Msk instead */
  789. #define RTC_MODE2_EVCTRL_PERDEO_Pos 24 /**< (RTC_MODE2_EVCTRL) Periodic Interval Daily Event Output Enable Position */
  790. #define RTC_MODE2_EVCTRL_PERDEO_Msk (_U_(0x1) << RTC_MODE2_EVCTRL_PERDEO_Pos) /**< (RTC_MODE2_EVCTRL) Periodic Interval Daily Event Output Enable Mask */
  791. #define RTC_MODE2_EVCTRL_PERDEO RTC_MODE2_EVCTRL_PERDEO_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_EVCTRL_PERDEO_Msk instead */
  792. #define RTC_MODE2_EVCTRL_MASK _U_(0x101C1FF) /**< \deprecated (RTC_MODE2_EVCTRL) Register MASK (Use RTC_MODE2_EVCTRL_Msk instead) */
  793. #define RTC_MODE2_EVCTRL_Msk _U_(0x101C1FF) /**< (RTC_MODE2_EVCTRL) Register Mask */
  794. #define RTC_MODE2_EVCTRL_PEREO_Pos 0 /**< (RTC_MODE2_EVCTRL Position) Periodic Interval x Event Output Enable */
  795. #define RTC_MODE2_EVCTRL_PEREO_Msk (_U_(0xFF) << RTC_MODE2_EVCTRL_PEREO_Pos) /**< (RTC_MODE2_EVCTRL Mask) PEREO */
  796. #define RTC_MODE2_EVCTRL_PEREO(value) (RTC_MODE2_EVCTRL_PEREO_Msk & ((value) << RTC_MODE2_EVCTRL_PEREO_Pos))
  797. #define RTC_MODE2_EVCTRL_ALARMEO_Pos 8 /**< (RTC_MODE2_EVCTRL Position) Alarm x Event Output Enable */
  798. #define RTC_MODE2_EVCTRL_ALARMEO_Msk (_U_(0x1) << RTC_MODE2_EVCTRL_ALARMEO_Pos) /**< (RTC_MODE2_EVCTRL Mask) ALARMEO */
  799. #define RTC_MODE2_EVCTRL_ALARMEO(value) (RTC_MODE2_EVCTRL_ALARMEO_Msk & ((value) << RTC_MODE2_EVCTRL_ALARMEO_Pos))
  800. /* -------- RTC_MODE0_INTENCLR : (RTC Offset: 0x08) (R/W 16) MODE0 Interrupt Enable Clear -------- */
  801. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  802. typedef union {
  803. struct {
  804. uint16_t PER0:1; /**< bit: 0 Periodic Interval 0 Interrupt Enable */
  805. uint16_t PER1:1; /**< bit: 1 Periodic Interval 1 Interrupt Enable */
  806. uint16_t PER2:1; /**< bit: 2 Periodic Interval 2 Interrupt Enable */
  807. uint16_t PER3:1; /**< bit: 3 Periodic Interval 3 Interrupt Enable */
  808. uint16_t PER4:1; /**< bit: 4 Periodic Interval 4 Interrupt Enable */
  809. uint16_t PER5:1; /**< bit: 5 Periodic Interval 5 Interrupt Enable */
  810. uint16_t PER6:1; /**< bit: 6 Periodic Interval 6 Interrupt Enable */
  811. uint16_t PER7:1; /**< bit: 7 Periodic Interval 7 Interrupt Enable */
  812. uint16_t CMP0:1; /**< bit: 8 Compare 0 Interrupt Enable */
  813. uint16_t :5; /**< bit: 9..13 Reserved */
  814. uint16_t TAMPER:1; /**< bit: 14 Tamper Enable */
  815. uint16_t OVF:1; /**< bit: 15 Overflow Interrupt Enable */
  816. } bit; /**< Structure used for bit access */
  817. struct {
  818. uint16_t PER:8; /**< bit: 0..7 Periodic Interval x Interrupt Enable */
  819. uint16_t CMP:1; /**< bit: 8 Compare x Interrupt Enable */
  820. uint16_t :7; /**< bit: 9..15 Reserved */
  821. } vec; /**< Structure used for vec access */
  822. uint16_t reg; /**< Type used for register access */
  823. } RTC_MODE0_INTENCLR_Type;
  824. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  825. #define RTC_MODE0_INTENCLR_OFFSET (0x08) /**< (RTC_MODE0_INTENCLR) MODE0 Interrupt Enable Clear Offset */
  826. #define RTC_MODE0_INTENCLR_RESETVALUE _U_(0x00) /**< (RTC_MODE0_INTENCLR) MODE0 Interrupt Enable Clear Reset Value */
  827. #define RTC_MODE0_INTENCLR_PER0_Pos 0 /**< (RTC_MODE0_INTENCLR) Periodic Interval 0 Interrupt Enable Position */
  828. #define RTC_MODE0_INTENCLR_PER0_Msk (_U_(0x1) << RTC_MODE0_INTENCLR_PER0_Pos) /**< (RTC_MODE0_INTENCLR) Periodic Interval 0 Interrupt Enable Mask */
  829. #define RTC_MODE0_INTENCLR_PER0 RTC_MODE0_INTENCLR_PER0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENCLR_PER0_Msk instead */
  830. #define RTC_MODE0_INTENCLR_PER1_Pos 1 /**< (RTC_MODE0_INTENCLR) Periodic Interval 1 Interrupt Enable Position */
  831. #define RTC_MODE0_INTENCLR_PER1_Msk (_U_(0x1) << RTC_MODE0_INTENCLR_PER1_Pos) /**< (RTC_MODE0_INTENCLR) Periodic Interval 1 Interrupt Enable Mask */
  832. #define RTC_MODE0_INTENCLR_PER1 RTC_MODE0_INTENCLR_PER1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENCLR_PER1_Msk instead */
  833. #define RTC_MODE0_INTENCLR_PER2_Pos 2 /**< (RTC_MODE0_INTENCLR) Periodic Interval 2 Interrupt Enable Position */
  834. #define RTC_MODE0_INTENCLR_PER2_Msk (_U_(0x1) << RTC_MODE0_INTENCLR_PER2_Pos) /**< (RTC_MODE0_INTENCLR) Periodic Interval 2 Interrupt Enable Mask */
  835. #define RTC_MODE0_INTENCLR_PER2 RTC_MODE0_INTENCLR_PER2_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENCLR_PER2_Msk instead */
  836. #define RTC_MODE0_INTENCLR_PER3_Pos 3 /**< (RTC_MODE0_INTENCLR) Periodic Interval 3 Interrupt Enable Position */
  837. #define RTC_MODE0_INTENCLR_PER3_Msk (_U_(0x1) << RTC_MODE0_INTENCLR_PER3_Pos) /**< (RTC_MODE0_INTENCLR) Periodic Interval 3 Interrupt Enable Mask */
  838. #define RTC_MODE0_INTENCLR_PER3 RTC_MODE0_INTENCLR_PER3_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENCLR_PER3_Msk instead */
  839. #define RTC_MODE0_INTENCLR_PER4_Pos 4 /**< (RTC_MODE0_INTENCLR) Periodic Interval 4 Interrupt Enable Position */
  840. #define RTC_MODE0_INTENCLR_PER4_Msk (_U_(0x1) << RTC_MODE0_INTENCLR_PER4_Pos) /**< (RTC_MODE0_INTENCLR) Periodic Interval 4 Interrupt Enable Mask */
  841. #define RTC_MODE0_INTENCLR_PER4 RTC_MODE0_INTENCLR_PER4_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENCLR_PER4_Msk instead */
  842. #define RTC_MODE0_INTENCLR_PER5_Pos 5 /**< (RTC_MODE0_INTENCLR) Periodic Interval 5 Interrupt Enable Position */
  843. #define RTC_MODE0_INTENCLR_PER5_Msk (_U_(0x1) << RTC_MODE0_INTENCLR_PER5_Pos) /**< (RTC_MODE0_INTENCLR) Periodic Interval 5 Interrupt Enable Mask */
  844. #define RTC_MODE0_INTENCLR_PER5 RTC_MODE0_INTENCLR_PER5_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENCLR_PER5_Msk instead */
  845. #define RTC_MODE0_INTENCLR_PER6_Pos 6 /**< (RTC_MODE0_INTENCLR) Periodic Interval 6 Interrupt Enable Position */
  846. #define RTC_MODE0_INTENCLR_PER6_Msk (_U_(0x1) << RTC_MODE0_INTENCLR_PER6_Pos) /**< (RTC_MODE0_INTENCLR) Periodic Interval 6 Interrupt Enable Mask */
  847. #define RTC_MODE0_INTENCLR_PER6 RTC_MODE0_INTENCLR_PER6_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENCLR_PER6_Msk instead */
  848. #define RTC_MODE0_INTENCLR_PER7_Pos 7 /**< (RTC_MODE0_INTENCLR) Periodic Interval 7 Interrupt Enable Position */
  849. #define RTC_MODE0_INTENCLR_PER7_Msk (_U_(0x1) << RTC_MODE0_INTENCLR_PER7_Pos) /**< (RTC_MODE0_INTENCLR) Periodic Interval 7 Interrupt Enable Mask */
  850. #define RTC_MODE0_INTENCLR_PER7 RTC_MODE0_INTENCLR_PER7_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENCLR_PER7_Msk instead */
  851. #define RTC_MODE0_INTENCLR_CMP0_Pos 8 /**< (RTC_MODE0_INTENCLR) Compare 0 Interrupt Enable Position */
  852. #define RTC_MODE0_INTENCLR_CMP0_Msk (_U_(0x1) << RTC_MODE0_INTENCLR_CMP0_Pos) /**< (RTC_MODE0_INTENCLR) Compare 0 Interrupt Enable Mask */
  853. #define RTC_MODE0_INTENCLR_CMP0 RTC_MODE0_INTENCLR_CMP0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENCLR_CMP0_Msk instead */
  854. #define RTC_MODE0_INTENCLR_TAMPER_Pos 14 /**< (RTC_MODE0_INTENCLR) Tamper Enable Position */
  855. #define RTC_MODE0_INTENCLR_TAMPER_Msk (_U_(0x1) << RTC_MODE0_INTENCLR_TAMPER_Pos) /**< (RTC_MODE0_INTENCLR) Tamper Enable Mask */
  856. #define RTC_MODE0_INTENCLR_TAMPER RTC_MODE0_INTENCLR_TAMPER_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENCLR_TAMPER_Msk instead */
  857. #define RTC_MODE0_INTENCLR_OVF_Pos 15 /**< (RTC_MODE0_INTENCLR) Overflow Interrupt Enable Position */
  858. #define RTC_MODE0_INTENCLR_OVF_Msk (_U_(0x1) << RTC_MODE0_INTENCLR_OVF_Pos) /**< (RTC_MODE0_INTENCLR) Overflow Interrupt Enable Mask */
  859. #define RTC_MODE0_INTENCLR_OVF RTC_MODE0_INTENCLR_OVF_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENCLR_OVF_Msk instead */
  860. #define RTC_MODE0_INTENCLR_MASK _U_(0xC1FF) /**< \deprecated (RTC_MODE0_INTENCLR) Register MASK (Use RTC_MODE0_INTENCLR_Msk instead) */
  861. #define RTC_MODE0_INTENCLR_Msk _U_(0xC1FF) /**< (RTC_MODE0_INTENCLR) Register Mask */
  862. #define RTC_MODE0_INTENCLR_PER_Pos 0 /**< (RTC_MODE0_INTENCLR Position) Periodic Interval x Interrupt Enable */
  863. #define RTC_MODE0_INTENCLR_PER_Msk (_U_(0xFF) << RTC_MODE0_INTENCLR_PER_Pos) /**< (RTC_MODE0_INTENCLR Mask) PER */
  864. #define RTC_MODE0_INTENCLR_PER(value) (RTC_MODE0_INTENCLR_PER_Msk & ((value) << RTC_MODE0_INTENCLR_PER_Pos))
  865. #define RTC_MODE0_INTENCLR_CMP_Pos 8 /**< (RTC_MODE0_INTENCLR Position) Compare x Interrupt Enable */
  866. #define RTC_MODE0_INTENCLR_CMP_Msk (_U_(0x1) << RTC_MODE0_INTENCLR_CMP_Pos) /**< (RTC_MODE0_INTENCLR Mask) CMP */
  867. #define RTC_MODE0_INTENCLR_CMP(value) (RTC_MODE0_INTENCLR_CMP_Msk & ((value) << RTC_MODE0_INTENCLR_CMP_Pos))
  868. /* -------- RTC_MODE1_INTENCLR : (RTC Offset: 0x08) (R/W 16) MODE1 Interrupt Enable Clear -------- */
  869. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  870. typedef union {
  871. struct {
  872. uint16_t PER0:1; /**< bit: 0 Periodic Interval 0 Interrupt Enable */
  873. uint16_t PER1:1; /**< bit: 1 Periodic Interval 1 Interrupt Enable */
  874. uint16_t PER2:1; /**< bit: 2 Periodic Interval 2 Interrupt Enable */
  875. uint16_t PER3:1; /**< bit: 3 Periodic Interval 3 Interrupt Enable */
  876. uint16_t PER4:1; /**< bit: 4 Periodic Interval 4 Interrupt Enable */
  877. uint16_t PER5:1; /**< bit: 5 Periodic Interval 5 Interrupt Enable */
  878. uint16_t PER6:1; /**< bit: 6 Periodic Interval 6 Interrupt Enable */
  879. uint16_t PER7:1; /**< bit: 7 Periodic Interval 7 Interrupt Enable */
  880. uint16_t CMP0:1; /**< bit: 8 Compare 0 Interrupt Enable */
  881. uint16_t CMP1:1; /**< bit: 9 Compare 1 Interrupt Enable */
  882. uint16_t :4; /**< bit: 10..13 Reserved */
  883. uint16_t TAMPER:1; /**< bit: 14 Tamper Enable */
  884. uint16_t OVF:1; /**< bit: 15 Overflow Interrupt Enable */
  885. } bit; /**< Structure used for bit access */
  886. struct {
  887. uint16_t PER:8; /**< bit: 0..7 Periodic Interval x Interrupt Enable */
  888. uint16_t CMP:2; /**< bit: 8..9 Compare x Interrupt Enable */
  889. uint16_t :6; /**< bit: 10..15 Reserved */
  890. } vec; /**< Structure used for vec access */
  891. uint16_t reg; /**< Type used for register access */
  892. } RTC_MODE1_INTENCLR_Type;
  893. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  894. #define RTC_MODE1_INTENCLR_OFFSET (0x08) /**< (RTC_MODE1_INTENCLR) MODE1 Interrupt Enable Clear Offset */
  895. #define RTC_MODE1_INTENCLR_RESETVALUE _U_(0x00) /**< (RTC_MODE1_INTENCLR) MODE1 Interrupt Enable Clear Reset Value */
  896. #define RTC_MODE1_INTENCLR_PER0_Pos 0 /**< (RTC_MODE1_INTENCLR) Periodic Interval 0 Interrupt Enable Position */
  897. #define RTC_MODE1_INTENCLR_PER0_Msk (_U_(0x1) << RTC_MODE1_INTENCLR_PER0_Pos) /**< (RTC_MODE1_INTENCLR) Periodic Interval 0 Interrupt Enable Mask */
  898. #define RTC_MODE1_INTENCLR_PER0 RTC_MODE1_INTENCLR_PER0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENCLR_PER0_Msk instead */
  899. #define RTC_MODE1_INTENCLR_PER1_Pos 1 /**< (RTC_MODE1_INTENCLR) Periodic Interval 1 Interrupt Enable Position */
  900. #define RTC_MODE1_INTENCLR_PER1_Msk (_U_(0x1) << RTC_MODE1_INTENCLR_PER1_Pos) /**< (RTC_MODE1_INTENCLR) Periodic Interval 1 Interrupt Enable Mask */
  901. #define RTC_MODE1_INTENCLR_PER1 RTC_MODE1_INTENCLR_PER1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENCLR_PER1_Msk instead */
  902. #define RTC_MODE1_INTENCLR_PER2_Pos 2 /**< (RTC_MODE1_INTENCLR) Periodic Interval 2 Interrupt Enable Position */
  903. #define RTC_MODE1_INTENCLR_PER2_Msk (_U_(0x1) << RTC_MODE1_INTENCLR_PER2_Pos) /**< (RTC_MODE1_INTENCLR) Periodic Interval 2 Interrupt Enable Mask */
  904. #define RTC_MODE1_INTENCLR_PER2 RTC_MODE1_INTENCLR_PER2_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENCLR_PER2_Msk instead */
  905. #define RTC_MODE1_INTENCLR_PER3_Pos 3 /**< (RTC_MODE1_INTENCLR) Periodic Interval 3 Interrupt Enable Position */
  906. #define RTC_MODE1_INTENCLR_PER3_Msk (_U_(0x1) << RTC_MODE1_INTENCLR_PER3_Pos) /**< (RTC_MODE1_INTENCLR) Periodic Interval 3 Interrupt Enable Mask */
  907. #define RTC_MODE1_INTENCLR_PER3 RTC_MODE1_INTENCLR_PER3_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENCLR_PER3_Msk instead */
  908. #define RTC_MODE1_INTENCLR_PER4_Pos 4 /**< (RTC_MODE1_INTENCLR) Periodic Interval 4 Interrupt Enable Position */
  909. #define RTC_MODE1_INTENCLR_PER4_Msk (_U_(0x1) << RTC_MODE1_INTENCLR_PER4_Pos) /**< (RTC_MODE1_INTENCLR) Periodic Interval 4 Interrupt Enable Mask */
  910. #define RTC_MODE1_INTENCLR_PER4 RTC_MODE1_INTENCLR_PER4_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENCLR_PER4_Msk instead */
  911. #define RTC_MODE1_INTENCLR_PER5_Pos 5 /**< (RTC_MODE1_INTENCLR) Periodic Interval 5 Interrupt Enable Position */
  912. #define RTC_MODE1_INTENCLR_PER5_Msk (_U_(0x1) << RTC_MODE1_INTENCLR_PER5_Pos) /**< (RTC_MODE1_INTENCLR) Periodic Interval 5 Interrupt Enable Mask */
  913. #define RTC_MODE1_INTENCLR_PER5 RTC_MODE1_INTENCLR_PER5_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENCLR_PER5_Msk instead */
  914. #define RTC_MODE1_INTENCLR_PER6_Pos 6 /**< (RTC_MODE1_INTENCLR) Periodic Interval 6 Interrupt Enable Position */
  915. #define RTC_MODE1_INTENCLR_PER6_Msk (_U_(0x1) << RTC_MODE1_INTENCLR_PER6_Pos) /**< (RTC_MODE1_INTENCLR) Periodic Interval 6 Interrupt Enable Mask */
  916. #define RTC_MODE1_INTENCLR_PER6 RTC_MODE1_INTENCLR_PER6_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENCLR_PER6_Msk instead */
  917. #define RTC_MODE1_INTENCLR_PER7_Pos 7 /**< (RTC_MODE1_INTENCLR) Periodic Interval 7 Interrupt Enable Position */
  918. #define RTC_MODE1_INTENCLR_PER7_Msk (_U_(0x1) << RTC_MODE1_INTENCLR_PER7_Pos) /**< (RTC_MODE1_INTENCLR) Periodic Interval 7 Interrupt Enable Mask */
  919. #define RTC_MODE1_INTENCLR_PER7 RTC_MODE1_INTENCLR_PER7_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENCLR_PER7_Msk instead */
  920. #define RTC_MODE1_INTENCLR_CMP0_Pos 8 /**< (RTC_MODE1_INTENCLR) Compare 0 Interrupt Enable Position */
  921. #define RTC_MODE1_INTENCLR_CMP0_Msk (_U_(0x1) << RTC_MODE1_INTENCLR_CMP0_Pos) /**< (RTC_MODE1_INTENCLR) Compare 0 Interrupt Enable Mask */
  922. #define RTC_MODE1_INTENCLR_CMP0 RTC_MODE1_INTENCLR_CMP0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENCLR_CMP0_Msk instead */
  923. #define RTC_MODE1_INTENCLR_CMP1_Pos 9 /**< (RTC_MODE1_INTENCLR) Compare 1 Interrupt Enable Position */
  924. #define RTC_MODE1_INTENCLR_CMP1_Msk (_U_(0x1) << RTC_MODE1_INTENCLR_CMP1_Pos) /**< (RTC_MODE1_INTENCLR) Compare 1 Interrupt Enable Mask */
  925. #define RTC_MODE1_INTENCLR_CMP1 RTC_MODE1_INTENCLR_CMP1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENCLR_CMP1_Msk instead */
  926. #define RTC_MODE1_INTENCLR_TAMPER_Pos 14 /**< (RTC_MODE1_INTENCLR) Tamper Enable Position */
  927. #define RTC_MODE1_INTENCLR_TAMPER_Msk (_U_(0x1) << RTC_MODE1_INTENCLR_TAMPER_Pos) /**< (RTC_MODE1_INTENCLR) Tamper Enable Mask */
  928. #define RTC_MODE1_INTENCLR_TAMPER RTC_MODE1_INTENCLR_TAMPER_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENCLR_TAMPER_Msk instead */
  929. #define RTC_MODE1_INTENCLR_OVF_Pos 15 /**< (RTC_MODE1_INTENCLR) Overflow Interrupt Enable Position */
  930. #define RTC_MODE1_INTENCLR_OVF_Msk (_U_(0x1) << RTC_MODE1_INTENCLR_OVF_Pos) /**< (RTC_MODE1_INTENCLR) Overflow Interrupt Enable Mask */
  931. #define RTC_MODE1_INTENCLR_OVF RTC_MODE1_INTENCLR_OVF_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENCLR_OVF_Msk instead */
  932. #define RTC_MODE1_INTENCLR_MASK _U_(0xC3FF) /**< \deprecated (RTC_MODE1_INTENCLR) Register MASK (Use RTC_MODE1_INTENCLR_Msk instead) */
  933. #define RTC_MODE1_INTENCLR_Msk _U_(0xC3FF) /**< (RTC_MODE1_INTENCLR) Register Mask */
  934. #define RTC_MODE1_INTENCLR_PER_Pos 0 /**< (RTC_MODE1_INTENCLR Position) Periodic Interval x Interrupt Enable */
  935. #define RTC_MODE1_INTENCLR_PER_Msk (_U_(0xFF) << RTC_MODE1_INTENCLR_PER_Pos) /**< (RTC_MODE1_INTENCLR Mask) PER */
  936. #define RTC_MODE1_INTENCLR_PER(value) (RTC_MODE1_INTENCLR_PER_Msk & ((value) << RTC_MODE1_INTENCLR_PER_Pos))
  937. #define RTC_MODE1_INTENCLR_CMP_Pos 8 /**< (RTC_MODE1_INTENCLR Position) Compare x Interrupt Enable */
  938. #define RTC_MODE1_INTENCLR_CMP_Msk (_U_(0x3) << RTC_MODE1_INTENCLR_CMP_Pos) /**< (RTC_MODE1_INTENCLR Mask) CMP */
  939. #define RTC_MODE1_INTENCLR_CMP(value) (RTC_MODE1_INTENCLR_CMP_Msk & ((value) << RTC_MODE1_INTENCLR_CMP_Pos))
  940. /* -------- RTC_MODE2_INTENCLR : (RTC Offset: 0x08) (R/W 16) MODE2 Interrupt Enable Clear -------- */
  941. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  942. typedef union {
  943. struct {
  944. uint16_t PER0:1; /**< bit: 0 Periodic Interval 0 Interrupt Enable */
  945. uint16_t PER1:1; /**< bit: 1 Periodic Interval 1 Interrupt Enable */
  946. uint16_t PER2:1; /**< bit: 2 Periodic Interval 2 Interrupt Enable */
  947. uint16_t PER3:1; /**< bit: 3 Periodic Interval 3 Interrupt Enable */
  948. uint16_t PER4:1; /**< bit: 4 Periodic Interval 4 Interrupt Enable */
  949. uint16_t PER5:1; /**< bit: 5 Periodic Interval 5 Interrupt Enable */
  950. uint16_t PER6:1; /**< bit: 6 Periodic Interval 6 Interrupt Enable */
  951. uint16_t PER7:1; /**< bit: 7 Periodic Interval 7 Interrupt Enable */
  952. uint16_t ALARM0:1; /**< bit: 8 Alarm 0 Interrupt Enable */
  953. uint16_t :5; /**< bit: 9..13 Reserved */
  954. uint16_t TAMPER:1; /**< bit: 14 Tamper Enable */
  955. uint16_t OVF:1; /**< bit: 15 Overflow Interrupt Enable */
  956. } bit; /**< Structure used for bit access */
  957. struct {
  958. uint16_t PER:8; /**< bit: 0..7 Periodic Interval x Interrupt Enable */
  959. uint16_t ALARM:1; /**< bit: 8 Alarm x Interrupt Enable */
  960. uint16_t :7; /**< bit: 9..15 Reserved */
  961. } vec; /**< Structure used for vec access */
  962. uint16_t reg; /**< Type used for register access */
  963. } RTC_MODE2_INTENCLR_Type;
  964. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  965. #define RTC_MODE2_INTENCLR_OFFSET (0x08) /**< (RTC_MODE2_INTENCLR) MODE2 Interrupt Enable Clear Offset */
  966. #define RTC_MODE2_INTENCLR_RESETVALUE _U_(0x00) /**< (RTC_MODE2_INTENCLR) MODE2 Interrupt Enable Clear Reset Value */
  967. #define RTC_MODE2_INTENCLR_PER0_Pos 0 /**< (RTC_MODE2_INTENCLR) Periodic Interval 0 Interrupt Enable Position */
  968. #define RTC_MODE2_INTENCLR_PER0_Msk (_U_(0x1) << RTC_MODE2_INTENCLR_PER0_Pos) /**< (RTC_MODE2_INTENCLR) Periodic Interval 0 Interrupt Enable Mask */
  969. #define RTC_MODE2_INTENCLR_PER0 RTC_MODE2_INTENCLR_PER0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENCLR_PER0_Msk instead */
  970. #define RTC_MODE2_INTENCLR_PER1_Pos 1 /**< (RTC_MODE2_INTENCLR) Periodic Interval 1 Interrupt Enable Position */
  971. #define RTC_MODE2_INTENCLR_PER1_Msk (_U_(0x1) << RTC_MODE2_INTENCLR_PER1_Pos) /**< (RTC_MODE2_INTENCLR) Periodic Interval 1 Interrupt Enable Mask */
  972. #define RTC_MODE2_INTENCLR_PER1 RTC_MODE2_INTENCLR_PER1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENCLR_PER1_Msk instead */
  973. #define RTC_MODE2_INTENCLR_PER2_Pos 2 /**< (RTC_MODE2_INTENCLR) Periodic Interval 2 Interrupt Enable Position */
  974. #define RTC_MODE2_INTENCLR_PER2_Msk (_U_(0x1) << RTC_MODE2_INTENCLR_PER2_Pos) /**< (RTC_MODE2_INTENCLR) Periodic Interval 2 Interrupt Enable Mask */
  975. #define RTC_MODE2_INTENCLR_PER2 RTC_MODE2_INTENCLR_PER2_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENCLR_PER2_Msk instead */
  976. #define RTC_MODE2_INTENCLR_PER3_Pos 3 /**< (RTC_MODE2_INTENCLR) Periodic Interval 3 Interrupt Enable Position */
  977. #define RTC_MODE2_INTENCLR_PER3_Msk (_U_(0x1) << RTC_MODE2_INTENCLR_PER3_Pos) /**< (RTC_MODE2_INTENCLR) Periodic Interval 3 Interrupt Enable Mask */
  978. #define RTC_MODE2_INTENCLR_PER3 RTC_MODE2_INTENCLR_PER3_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENCLR_PER3_Msk instead */
  979. #define RTC_MODE2_INTENCLR_PER4_Pos 4 /**< (RTC_MODE2_INTENCLR) Periodic Interval 4 Interrupt Enable Position */
  980. #define RTC_MODE2_INTENCLR_PER4_Msk (_U_(0x1) << RTC_MODE2_INTENCLR_PER4_Pos) /**< (RTC_MODE2_INTENCLR) Periodic Interval 4 Interrupt Enable Mask */
  981. #define RTC_MODE2_INTENCLR_PER4 RTC_MODE2_INTENCLR_PER4_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENCLR_PER4_Msk instead */
  982. #define RTC_MODE2_INTENCLR_PER5_Pos 5 /**< (RTC_MODE2_INTENCLR) Periodic Interval 5 Interrupt Enable Position */
  983. #define RTC_MODE2_INTENCLR_PER5_Msk (_U_(0x1) << RTC_MODE2_INTENCLR_PER5_Pos) /**< (RTC_MODE2_INTENCLR) Periodic Interval 5 Interrupt Enable Mask */
  984. #define RTC_MODE2_INTENCLR_PER5 RTC_MODE2_INTENCLR_PER5_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENCLR_PER5_Msk instead */
  985. #define RTC_MODE2_INTENCLR_PER6_Pos 6 /**< (RTC_MODE2_INTENCLR) Periodic Interval 6 Interrupt Enable Position */
  986. #define RTC_MODE2_INTENCLR_PER6_Msk (_U_(0x1) << RTC_MODE2_INTENCLR_PER6_Pos) /**< (RTC_MODE2_INTENCLR) Periodic Interval 6 Interrupt Enable Mask */
  987. #define RTC_MODE2_INTENCLR_PER6 RTC_MODE2_INTENCLR_PER6_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENCLR_PER6_Msk instead */
  988. #define RTC_MODE2_INTENCLR_PER7_Pos 7 /**< (RTC_MODE2_INTENCLR) Periodic Interval 7 Interrupt Enable Position */
  989. #define RTC_MODE2_INTENCLR_PER7_Msk (_U_(0x1) << RTC_MODE2_INTENCLR_PER7_Pos) /**< (RTC_MODE2_INTENCLR) Periodic Interval 7 Interrupt Enable Mask */
  990. #define RTC_MODE2_INTENCLR_PER7 RTC_MODE2_INTENCLR_PER7_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENCLR_PER7_Msk instead */
  991. #define RTC_MODE2_INTENCLR_ALARM0_Pos 8 /**< (RTC_MODE2_INTENCLR) Alarm 0 Interrupt Enable Position */
  992. #define RTC_MODE2_INTENCLR_ALARM0_Msk (_U_(0x1) << RTC_MODE2_INTENCLR_ALARM0_Pos) /**< (RTC_MODE2_INTENCLR) Alarm 0 Interrupt Enable Mask */
  993. #define RTC_MODE2_INTENCLR_ALARM0 RTC_MODE2_INTENCLR_ALARM0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENCLR_ALARM0_Msk instead */
  994. #define RTC_MODE2_INTENCLR_TAMPER_Pos 14 /**< (RTC_MODE2_INTENCLR) Tamper Enable Position */
  995. #define RTC_MODE2_INTENCLR_TAMPER_Msk (_U_(0x1) << RTC_MODE2_INTENCLR_TAMPER_Pos) /**< (RTC_MODE2_INTENCLR) Tamper Enable Mask */
  996. #define RTC_MODE2_INTENCLR_TAMPER RTC_MODE2_INTENCLR_TAMPER_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENCLR_TAMPER_Msk instead */
  997. #define RTC_MODE2_INTENCLR_OVF_Pos 15 /**< (RTC_MODE2_INTENCLR) Overflow Interrupt Enable Position */
  998. #define RTC_MODE2_INTENCLR_OVF_Msk (_U_(0x1) << RTC_MODE2_INTENCLR_OVF_Pos) /**< (RTC_MODE2_INTENCLR) Overflow Interrupt Enable Mask */
  999. #define RTC_MODE2_INTENCLR_OVF RTC_MODE2_INTENCLR_OVF_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENCLR_OVF_Msk instead */
  1000. #define RTC_MODE2_INTENCLR_MASK _U_(0xC1FF) /**< \deprecated (RTC_MODE2_INTENCLR) Register MASK (Use RTC_MODE2_INTENCLR_Msk instead) */
  1001. #define RTC_MODE2_INTENCLR_Msk _U_(0xC1FF) /**< (RTC_MODE2_INTENCLR) Register Mask */
  1002. #define RTC_MODE2_INTENCLR_PER_Pos 0 /**< (RTC_MODE2_INTENCLR Position) Periodic Interval x Interrupt Enable */
  1003. #define RTC_MODE2_INTENCLR_PER_Msk (_U_(0xFF) << RTC_MODE2_INTENCLR_PER_Pos) /**< (RTC_MODE2_INTENCLR Mask) PER */
  1004. #define RTC_MODE2_INTENCLR_PER(value) (RTC_MODE2_INTENCLR_PER_Msk & ((value) << RTC_MODE2_INTENCLR_PER_Pos))
  1005. #define RTC_MODE2_INTENCLR_ALARM_Pos 8 /**< (RTC_MODE2_INTENCLR Position) Alarm x Interrupt Enable */
  1006. #define RTC_MODE2_INTENCLR_ALARM_Msk (_U_(0x1) << RTC_MODE2_INTENCLR_ALARM_Pos) /**< (RTC_MODE2_INTENCLR Mask) ALARM */
  1007. #define RTC_MODE2_INTENCLR_ALARM(value) (RTC_MODE2_INTENCLR_ALARM_Msk & ((value) << RTC_MODE2_INTENCLR_ALARM_Pos))
  1008. /* -------- RTC_MODE0_INTENSET : (RTC Offset: 0x0a) (R/W 16) MODE0 Interrupt Enable Set -------- */
  1009. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1010. typedef union {
  1011. struct {
  1012. uint16_t PER0:1; /**< bit: 0 Periodic Interval 0 Interrupt Enable */
  1013. uint16_t PER1:1; /**< bit: 1 Periodic Interval 1 Interrupt Enable */
  1014. uint16_t PER2:1; /**< bit: 2 Periodic Interval 2 Interrupt Enable */
  1015. uint16_t PER3:1; /**< bit: 3 Periodic Interval 3 Interrupt Enable */
  1016. uint16_t PER4:1; /**< bit: 4 Periodic Interval 4 Interrupt Enable */
  1017. uint16_t PER5:1; /**< bit: 5 Periodic Interval 5 Interrupt Enable */
  1018. uint16_t PER6:1; /**< bit: 6 Periodic Interval 6 Interrupt Enable */
  1019. uint16_t PER7:1; /**< bit: 7 Periodic Interval 7 Interrupt Enable */
  1020. uint16_t CMP0:1; /**< bit: 8 Compare 0 Interrupt Enable */
  1021. uint16_t :5; /**< bit: 9..13 Reserved */
  1022. uint16_t TAMPER:1; /**< bit: 14 Tamper Enable */
  1023. uint16_t OVF:1; /**< bit: 15 Overflow Interrupt Enable */
  1024. } bit; /**< Structure used for bit access */
  1025. struct {
  1026. uint16_t PER:8; /**< bit: 0..7 Periodic Interval x Interrupt Enable */
  1027. uint16_t CMP:1; /**< bit: 8 Compare x Interrupt Enable */
  1028. uint16_t :7; /**< bit: 9..15 Reserved */
  1029. } vec; /**< Structure used for vec access */
  1030. uint16_t reg; /**< Type used for register access */
  1031. } RTC_MODE0_INTENSET_Type;
  1032. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1033. #define RTC_MODE0_INTENSET_OFFSET (0x0A) /**< (RTC_MODE0_INTENSET) MODE0 Interrupt Enable Set Offset */
  1034. #define RTC_MODE0_INTENSET_RESETVALUE _U_(0x00) /**< (RTC_MODE0_INTENSET) MODE0 Interrupt Enable Set Reset Value */
  1035. #define RTC_MODE0_INTENSET_PER0_Pos 0 /**< (RTC_MODE0_INTENSET) Periodic Interval 0 Interrupt Enable Position */
  1036. #define RTC_MODE0_INTENSET_PER0_Msk (_U_(0x1) << RTC_MODE0_INTENSET_PER0_Pos) /**< (RTC_MODE0_INTENSET) Periodic Interval 0 Interrupt Enable Mask */
  1037. #define RTC_MODE0_INTENSET_PER0 RTC_MODE0_INTENSET_PER0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENSET_PER0_Msk instead */
  1038. #define RTC_MODE0_INTENSET_PER1_Pos 1 /**< (RTC_MODE0_INTENSET) Periodic Interval 1 Interrupt Enable Position */
  1039. #define RTC_MODE0_INTENSET_PER1_Msk (_U_(0x1) << RTC_MODE0_INTENSET_PER1_Pos) /**< (RTC_MODE0_INTENSET) Periodic Interval 1 Interrupt Enable Mask */
  1040. #define RTC_MODE0_INTENSET_PER1 RTC_MODE0_INTENSET_PER1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENSET_PER1_Msk instead */
  1041. #define RTC_MODE0_INTENSET_PER2_Pos 2 /**< (RTC_MODE0_INTENSET) Periodic Interval 2 Interrupt Enable Position */
  1042. #define RTC_MODE0_INTENSET_PER2_Msk (_U_(0x1) << RTC_MODE0_INTENSET_PER2_Pos) /**< (RTC_MODE0_INTENSET) Periodic Interval 2 Interrupt Enable Mask */
  1043. #define RTC_MODE0_INTENSET_PER2 RTC_MODE0_INTENSET_PER2_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENSET_PER2_Msk instead */
  1044. #define RTC_MODE0_INTENSET_PER3_Pos 3 /**< (RTC_MODE0_INTENSET) Periodic Interval 3 Interrupt Enable Position */
  1045. #define RTC_MODE0_INTENSET_PER3_Msk (_U_(0x1) << RTC_MODE0_INTENSET_PER3_Pos) /**< (RTC_MODE0_INTENSET) Periodic Interval 3 Interrupt Enable Mask */
  1046. #define RTC_MODE0_INTENSET_PER3 RTC_MODE0_INTENSET_PER3_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENSET_PER3_Msk instead */
  1047. #define RTC_MODE0_INTENSET_PER4_Pos 4 /**< (RTC_MODE0_INTENSET) Periodic Interval 4 Interrupt Enable Position */
  1048. #define RTC_MODE0_INTENSET_PER4_Msk (_U_(0x1) << RTC_MODE0_INTENSET_PER4_Pos) /**< (RTC_MODE0_INTENSET) Periodic Interval 4 Interrupt Enable Mask */
  1049. #define RTC_MODE0_INTENSET_PER4 RTC_MODE0_INTENSET_PER4_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENSET_PER4_Msk instead */
  1050. #define RTC_MODE0_INTENSET_PER5_Pos 5 /**< (RTC_MODE0_INTENSET) Periodic Interval 5 Interrupt Enable Position */
  1051. #define RTC_MODE0_INTENSET_PER5_Msk (_U_(0x1) << RTC_MODE0_INTENSET_PER5_Pos) /**< (RTC_MODE0_INTENSET) Periodic Interval 5 Interrupt Enable Mask */
  1052. #define RTC_MODE0_INTENSET_PER5 RTC_MODE0_INTENSET_PER5_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENSET_PER5_Msk instead */
  1053. #define RTC_MODE0_INTENSET_PER6_Pos 6 /**< (RTC_MODE0_INTENSET) Periodic Interval 6 Interrupt Enable Position */
  1054. #define RTC_MODE0_INTENSET_PER6_Msk (_U_(0x1) << RTC_MODE0_INTENSET_PER6_Pos) /**< (RTC_MODE0_INTENSET) Periodic Interval 6 Interrupt Enable Mask */
  1055. #define RTC_MODE0_INTENSET_PER6 RTC_MODE0_INTENSET_PER6_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENSET_PER6_Msk instead */
  1056. #define RTC_MODE0_INTENSET_PER7_Pos 7 /**< (RTC_MODE0_INTENSET) Periodic Interval 7 Interrupt Enable Position */
  1057. #define RTC_MODE0_INTENSET_PER7_Msk (_U_(0x1) << RTC_MODE0_INTENSET_PER7_Pos) /**< (RTC_MODE0_INTENSET) Periodic Interval 7 Interrupt Enable Mask */
  1058. #define RTC_MODE0_INTENSET_PER7 RTC_MODE0_INTENSET_PER7_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENSET_PER7_Msk instead */
  1059. #define RTC_MODE0_INTENSET_CMP0_Pos 8 /**< (RTC_MODE0_INTENSET) Compare 0 Interrupt Enable Position */
  1060. #define RTC_MODE0_INTENSET_CMP0_Msk (_U_(0x1) << RTC_MODE0_INTENSET_CMP0_Pos) /**< (RTC_MODE0_INTENSET) Compare 0 Interrupt Enable Mask */
  1061. #define RTC_MODE0_INTENSET_CMP0 RTC_MODE0_INTENSET_CMP0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENSET_CMP0_Msk instead */
  1062. #define RTC_MODE0_INTENSET_TAMPER_Pos 14 /**< (RTC_MODE0_INTENSET) Tamper Enable Position */
  1063. #define RTC_MODE0_INTENSET_TAMPER_Msk (_U_(0x1) << RTC_MODE0_INTENSET_TAMPER_Pos) /**< (RTC_MODE0_INTENSET) Tamper Enable Mask */
  1064. #define RTC_MODE0_INTENSET_TAMPER RTC_MODE0_INTENSET_TAMPER_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENSET_TAMPER_Msk instead */
  1065. #define RTC_MODE0_INTENSET_OVF_Pos 15 /**< (RTC_MODE0_INTENSET) Overflow Interrupt Enable Position */
  1066. #define RTC_MODE0_INTENSET_OVF_Msk (_U_(0x1) << RTC_MODE0_INTENSET_OVF_Pos) /**< (RTC_MODE0_INTENSET) Overflow Interrupt Enable Mask */
  1067. #define RTC_MODE0_INTENSET_OVF RTC_MODE0_INTENSET_OVF_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTENSET_OVF_Msk instead */
  1068. #define RTC_MODE0_INTENSET_MASK _U_(0xC1FF) /**< \deprecated (RTC_MODE0_INTENSET) Register MASK (Use RTC_MODE0_INTENSET_Msk instead) */
  1069. #define RTC_MODE0_INTENSET_Msk _U_(0xC1FF) /**< (RTC_MODE0_INTENSET) Register Mask */
  1070. #define RTC_MODE0_INTENSET_PER_Pos 0 /**< (RTC_MODE0_INTENSET Position) Periodic Interval x Interrupt Enable */
  1071. #define RTC_MODE0_INTENSET_PER_Msk (_U_(0xFF) << RTC_MODE0_INTENSET_PER_Pos) /**< (RTC_MODE0_INTENSET Mask) PER */
  1072. #define RTC_MODE0_INTENSET_PER(value) (RTC_MODE0_INTENSET_PER_Msk & ((value) << RTC_MODE0_INTENSET_PER_Pos))
  1073. #define RTC_MODE0_INTENSET_CMP_Pos 8 /**< (RTC_MODE0_INTENSET Position) Compare x Interrupt Enable */
  1074. #define RTC_MODE0_INTENSET_CMP_Msk (_U_(0x1) << RTC_MODE0_INTENSET_CMP_Pos) /**< (RTC_MODE0_INTENSET Mask) CMP */
  1075. #define RTC_MODE0_INTENSET_CMP(value) (RTC_MODE0_INTENSET_CMP_Msk & ((value) << RTC_MODE0_INTENSET_CMP_Pos))
  1076. /* -------- RTC_MODE1_INTENSET : (RTC Offset: 0x0a) (R/W 16) MODE1 Interrupt Enable Set -------- */
  1077. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1078. typedef union {
  1079. struct {
  1080. uint16_t PER0:1; /**< bit: 0 Periodic Interval 0 Interrupt Enable */
  1081. uint16_t PER1:1; /**< bit: 1 Periodic Interval 1 Interrupt Enable */
  1082. uint16_t PER2:1; /**< bit: 2 Periodic Interval 2 Interrupt Enable */
  1083. uint16_t PER3:1; /**< bit: 3 Periodic Interval 3 Interrupt Enable */
  1084. uint16_t PER4:1; /**< bit: 4 Periodic Interval 4 Interrupt Enable */
  1085. uint16_t PER5:1; /**< bit: 5 Periodic Interval 5 Interrupt Enable */
  1086. uint16_t PER6:1; /**< bit: 6 Periodic Interval 6 Interrupt Enable */
  1087. uint16_t PER7:1; /**< bit: 7 Periodic Interval 7 Interrupt Enable */
  1088. uint16_t CMP0:1; /**< bit: 8 Compare 0 Interrupt Enable */
  1089. uint16_t CMP1:1; /**< bit: 9 Compare 1 Interrupt Enable */
  1090. uint16_t :4; /**< bit: 10..13 Reserved */
  1091. uint16_t TAMPER:1; /**< bit: 14 Tamper Enable */
  1092. uint16_t OVF:1; /**< bit: 15 Overflow Interrupt Enable */
  1093. } bit; /**< Structure used for bit access */
  1094. struct {
  1095. uint16_t PER:8; /**< bit: 0..7 Periodic Interval x Interrupt Enable */
  1096. uint16_t CMP:2; /**< bit: 8..9 Compare x Interrupt Enable */
  1097. uint16_t :6; /**< bit: 10..15 Reserved */
  1098. } vec; /**< Structure used for vec access */
  1099. uint16_t reg; /**< Type used for register access */
  1100. } RTC_MODE1_INTENSET_Type;
  1101. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1102. #define RTC_MODE1_INTENSET_OFFSET (0x0A) /**< (RTC_MODE1_INTENSET) MODE1 Interrupt Enable Set Offset */
  1103. #define RTC_MODE1_INTENSET_RESETVALUE _U_(0x00) /**< (RTC_MODE1_INTENSET) MODE1 Interrupt Enable Set Reset Value */
  1104. #define RTC_MODE1_INTENSET_PER0_Pos 0 /**< (RTC_MODE1_INTENSET) Periodic Interval 0 Interrupt Enable Position */
  1105. #define RTC_MODE1_INTENSET_PER0_Msk (_U_(0x1) << RTC_MODE1_INTENSET_PER0_Pos) /**< (RTC_MODE1_INTENSET) Periodic Interval 0 Interrupt Enable Mask */
  1106. #define RTC_MODE1_INTENSET_PER0 RTC_MODE1_INTENSET_PER0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENSET_PER0_Msk instead */
  1107. #define RTC_MODE1_INTENSET_PER1_Pos 1 /**< (RTC_MODE1_INTENSET) Periodic Interval 1 Interrupt Enable Position */
  1108. #define RTC_MODE1_INTENSET_PER1_Msk (_U_(0x1) << RTC_MODE1_INTENSET_PER1_Pos) /**< (RTC_MODE1_INTENSET) Periodic Interval 1 Interrupt Enable Mask */
  1109. #define RTC_MODE1_INTENSET_PER1 RTC_MODE1_INTENSET_PER1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENSET_PER1_Msk instead */
  1110. #define RTC_MODE1_INTENSET_PER2_Pos 2 /**< (RTC_MODE1_INTENSET) Periodic Interval 2 Interrupt Enable Position */
  1111. #define RTC_MODE1_INTENSET_PER2_Msk (_U_(0x1) << RTC_MODE1_INTENSET_PER2_Pos) /**< (RTC_MODE1_INTENSET) Periodic Interval 2 Interrupt Enable Mask */
  1112. #define RTC_MODE1_INTENSET_PER2 RTC_MODE1_INTENSET_PER2_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENSET_PER2_Msk instead */
  1113. #define RTC_MODE1_INTENSET_PER3_Pos 3 /**< (RTC_MODE1_INTENSET) Periodic Interval 3 Interrupt Enable Position */
  1114. #define RTC_MODE1_INTENSET_PER3_Msk (_U_(0x1) << RTC_MODE1_INTENSET_PER3_Pos) /**< (RTC_MODE1_INTENSET) Periodic Interval 3 Interrupt Enable Mask */
  1115. #define RTC_MODE1_INTENSET_PER3 RTC_MODE1_INTENSET_PER3_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENSET_PER3_Msk instead */
  1116. #define RTC_MODE1_INTENSET_PER4_Pos 4 /**< (RTC_MODE1_INTENSET) Periodic Interval 4 Interrupt Enable Position */
  1117. #define RTC_MODE1_INTENSET_PER4_Msk (_U_(0x1) << RTC_MODE1_INTENSET_PER4_Pos) /**< (RTC_MODE1_INTENSET) Periodic Interval 4 Interrupt Enable Mask */
  1118. #define RTC_MODE1_INTENSET_PER4 RTC_MODE1_INTENSET_PER4_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENSET_PER4_Msk instead */
  1119. #define RTC_MODE1_INTENSET_PER5_Pos 5 /**< (RTC_MODE1_INTENSET) Periodic Interval 5 Interrupt Enable Position */
  1120. #define RTC_MODE1_INTENSET_PER5_Msk (_U_(0x1) << RTC_MODE1_INTENSET_PER5_Pos) /**< (RTC_MODE1_INTENSET) Periodic Interval 5 Interrupt Enable Mask */
  1121. #define RTC_MODE1_INTENSET_PER5 RTC_MODE1_INTENSET_PER5_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENSET_PER5_Msk instead */
  1122. #define RTC_MODE1_INTENSET_PER6_Pos 6 /**< (RTC_MODE1_INTENSET) Periodic Interval 6 Interrupt Enable Position */
  1123. #define RTC_MODE1_INTENSET_PER6_Msk (_U_(0x1) << RTC_MODE1_INTENSET_PER6_Pos) /**< (RTC_MODE1_INTENSET) Periodic Interval 6 Interrupt Enable Mask */
  1124. #define RTC_MODE1_INTENSET_PER6 RTC_MODE1_INTENSET_PER6_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENSET_PER6_Msk instead */
  1125. #define RTC_MODE1_INTENSET_PER7_Pos 7 /**< (RTC_MODE1_INTENSET) Periodic Interval 7 Interrupt Enable Position */
  1126. #define RTC_MODE1_INTENSET_PER7_Msk (_U_(0x1) << RTC_MODE1_INTENSET_PER7_Pos) /**< (RTC_MODE1_INTENSET) Periodic Interval 7 Interrupt Enable Mask */
  1127. #define RTC_MODE1_INTENSET_PER7 RTC_MODE1_INTENSET_PER7_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENSET_PER7_Msk instead */
  1128. #define RTC_MODE1_INTENSET_CMP0_Pos 8 /**< (RTC_MODE1_INTENSET) Compare 0 Interrupt Enable Position */
  1129. #define RTC_MODE1_INTENSET_CMP0_Msk (_U_(0x1) << RTC_MODE1_INTENSET_CMP0_Pos) /**< (RTC_MODE1_INTENSET) Compare 0 Interrupt Enable Mask */
  1130. #define RTC_MODE1_INTENSET_CMP0 RTC_MODE1_INTENSET_CMP0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENSET_CMP0_Msk instead */
  1131. #define RTC_MODE1_INTENSET_CMP1_Pos 9 /**< (RTC_MODE1_INTENSET) Compare 1 Interrupt Enable Position */
  1132. #define RTC_MODE1_INTENSET_CMP1_Msk (_U_(0x1) << RTC_MODE1_INTENSET_CMP1_Pos) /**< (RTC_MODE1_INTENSET) Compare 1 Interrupt Enable Mask */
  1133. #define RTC_MODE1_INTENSET_CMP1 RTC_MODE1_INTENSET_CMP1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENSET_CMP1_Msk instead */
  1134. #define RTC_MODE1_INTENSET_TAMPER_Pos 14 /**< (RTC_MODE1_INTENSET) Tamper Enable Position */
  1135. #define RTC_MODE1_INTENSET_TAMPER_Msk (_U_(0x1) << RTC_MODE1_INTENSET_TAMPER_Pos) /**< (RTC_MODE1_INTENSET) Tamper Enable Mask */
  1136. #define RTC_MODE1_INTENSET_TAMPER RTC_MODE1_INTENSET_TAMPER_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENSET_TAMPER_Msk instead */
  1137. #define RTC_MODE1_INTENSET_OVF_Pos 15 /**< (RTC_MODE1_INTENSET) Overflow Interrupt Enable Position */
  1138. #define RTC_MODE1_INTENSET_OVF_Msk (_U_(0x1) << RTC_MODE1_INTENSET_OVF_Pos) /**< (RTC_MODE1_INTENSET) Overflow Interrupt Enable Mask */
  1139. #define RTC_MODE1_INTENSET_OVF RTC_MODE1_INTENSET_OVF_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTENSET_OVF_Msk instead */
  1140. #define RTC_MODE1_INTENSET_MASK _U_(0xC3FF) /**< \deprecated (RTC_MODE1_INTENSET) Register MASK (Use RTC_MODE1_INTENSET_Msk instead) */
  1141. #define RTC_MODE1_INTENSET_Msk _U_(0xC3FF) /**< (RTC_MODE1_INTENSET) Register Mask */
  1142. #define RTC_MODE1_INTENSET_PER_Pos 0 /**< (RTC_MODE1_INTENSET Position) Periodic Interval x Interrupt Enable */
  1143. #define RTC_MODE1_INTENSET_PER_Msk (_U_(0xFF) << RTC_MODE1_INTENSET_PER_Pos) /**< (RTC_MODE1_INTENSET Mask) PER */
  1144. #define RTC_MODE1_INTENSET_PER(value) (RTC_MODE1_INTENSET_PER_Msk & ((value) << RTC_MODE1_INTENSET_PER_Pos))
  1145. #define RTC_MODE1_INTENSET_CMP_Pos 8 /**< (RTC_MODE1_INTENSET Position) Compare x Interrupt Enable */
  1146. #define RTC_MODE1_INTENSET_CMP_Msk (_U_(0x3) << RTC_MODE1_INTENSET_CMP_Pos) /**< (RTC_MODE1_INTENSET Mask) CMP */
  1147. #define RTC_MODE1_INTENSET_CMP(value) (RTC_MODE1_INTENSET_CMP_Msk & ((value) << RTC_MODE1_INTENSET_CMP_Pos))
  1148. /* -------- RTC_MODE2_INTENSET : (RTC Offset: 0x0a) (R/W 16) MODE2 Interrupt Enable Set -------- */
  1149. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1150. typedef union {
  1151. struct {
  1152. uint16_t PER0:1; /**< bit: 0 Periodic Interval 0 Enable */
  1153. uint16_t PER1:1; /**< bit: 1 Periodic Interval 1 Enable */
  1154. uint16_t PER2:1; /**< bit: 2 Periodic Interval 2 Enable */
  1155. uint16_t PER3:1; /**< bit: 3 Periodic Interval 3 Enable */
  1156. uint16_t PER4:1; /**< bit: 4 Periodic Interval 4 Enable */
  1157. uint16_t PER5:1; /**< bit: 5 Periodic Interval 5 Enable */
  1158. uint16_t PER6:1; /**< bit: 6 Periodic Interval 6 Enable */
  1159. uint16_t PER7:1; /**< bit: 7 Periodic Interval 7 Enable */
  1160. uint16_t ALARM0:1; /**< bit: 8 Alarm 0 Interrupt Enable */
  1161. uint16_t :5; /**< bit: 9..13 Reserved */
  1162. uint16_t TAMPER:1; /**< bit: 14 Tamper Enable */
  1163. uint16_t OVF:1; /**< bit: 15 Overflow Interrupt Enable */
  1164. } bit; /**< Structure used for bit access */
  1165. struct {
  1166. uint16_t PER:8; /**< bit: 0..7 Periodic Interval x Enable */
  1167. uint16_t ALARM:1; /**< bit: 8 Alarm x Interrupt Enable */
  1168. uint16_t :7; /**< bit: 9..15 Reserved */
  1169. } vec; /**< Structure used for vec access */
  1170. uint16_t reg; /**< Type used for register access */
  1171. } RTC_MODE2_INTENSET_Type;
  1172. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1173. #define RTC_MODE2_INTENSET_OFFSET (0x0A) /**< (RTC_MODE2_INTENSET) MODE2 Interrupt Enable Set Offset */
  1174. #define RTC_MODE2_INTENSET_RESETVALUE _U_(0x00) /**< (RTC_MODE2_INTENSET) MODE2 Interrupt Enable Set Reset Value */
  1175. #define RTC_MODE2_INTENSET_PER0_Pos 0 /**< (RTC_MODE2_INTENSET) Periodic Interval 0 Enable Position */
  1176. #define RTC_MODE2_INTENSET_PER0_Msk (_U_(0x1) << RTC_MODE2_INTENSET_PER0_Pos) /**< (RTC_MODE2_INTENSET) Periodic Interval 0 Enable Mask */
  1177. #define RTC_MODE2_INTENSET_PER0 RTC_MODE2_INTENSET_PER0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENSET_PER0_Msk instead */
  1178. #define RTC_MODE2_INTENSET_PER1_Pos 1 /**< (RTC_MODE2_INTENSET) Periodic Interval 1 Enable Position */
  1179. #define RTC_MODE2_INTENSET_PER1_Msk (_U_(0x1) << RTC_MODE2_INTENSET_PER1_Pos) /**< (RTC_MODE2_INTENSET) Periodic Interval 1 Enable Mask */
  1180. #define RTC_MODE2_INTENSET_PER1 RTC_MODE2_INTENSET_PER1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENSET_PER1_Msk instead */
  1181. #define RTC_MODE2_INTENSET_PER2_Pos 2 /**< (RTC_MODE2_INTENSET) Periodic Interval 2 Enable Position */
  1182. #define RTC_MODE2_INTENSET_PER2_Msk (_U_(0x1) << RTC_MODE2_INTENSET_PER2_Pos) /**< (RTC_MODE2_INTENSET) Periodic Interval 2 Enable Mask */
  1183. #define RTC_MODE2_INTENSET_PER2 RTC_MODE2_INTENSET_PER2_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENSET_PER2_Msk instead */
  1184. #define RTC_MODE2_INTENSET_PER3_Pos 3 /**< (RTC_MODE2_INTENSET) Periodic Interval 3 Enable Position */
  1185. #define RTC_MODE2_INTENSET_PER3_Msk (_U_(0x1) << RTC_MODE2_INTENSET_PER3_Pos) /**< (RTC_MODE2_INTENSET) Periodic Interval 3 Enable Mask */
  1186. #define RTC_MODE2_INTENSET_PER3 RTC_MODE2_INTENSET_PER3_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENSET_PER3_Msk instead */
  1187. #define RTC_MODE2_INTENSET_PER4_Pos 4 /**< (RTC_MODE2_INTENSET) Periodic Interval 4 Enable Position */
  1188. #define RTC_MODE2_INTENSET_PER4_Msk (_U_(0x1) << RTC_MODE2_INTENSET_PER4_Pos) /**< (RTC_MODE2_INTENSET) Periodic Interval 4 Enable Mask */
  1189. #define RTC_MODE2_INTENSET_PER4 RTC_MODE2_INTENSET_PER4_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENSET_PER4_Msk instead */
  1190. #define RTC_MODE2_INTENSET_PER5_Pos 5 /**< (RTC_MODE2_INTENSET) Periodic Interval 5 Enable Position */
  1191. #define RTC_MODE2_INTENSET_PER5_Msk (_U_(0x1) << RTC_MODE2_INTENSET_PER5_Pos) /**< (RTC_MODE2_INTENSET) Periodic Interval 5 Enable Mask */
  1192. #define RTC_MODE2_INTENSET_PER5 RTC_MODE2_INTENSET_PER5_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENSET_PER5_Msk instead */
  1193. #define RTC_MODE2_INTENSET_PER6_Pos 6 /**< (RTC_MODE2_INTENSET) Periodic Interval 6 Enable Position */
  1194. #define RTC_MODE2_INTENSET_PER6_Msk (_U_(0x1) << RTC_MODE2_INTENSET_PER6_Pos) /**< (RTC_MODE2_INTENSET) Periodic Interval 6 Enable Mask */
  1195. #define RTC_MODE2_INTENSET_PER6 RTC_MODE2_INTENSET_PER6_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENSET_PER6_Msk instead */
  1196. #define RTC_MODE2_INTENSET_PER7_Pos 7 /**< (RTC_MODE2_INTENSET) Periodic Interval 7 Enable Position */
  1197. #define RTC_MODE2_INTENSET_PER7_Msk (_U_(0x1) << RTC_MODE2_INTENSET_PER7_Pos) /**< (RTC_MODE2_INTENSET) Periodic Interval 7 Enable Mask */
  1198. #define RTC_MODE2_INTENSET_PER7 RTC_MODE2_INTENSET_PER7_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENSET_PER7_Msk instead */
  1199. #define RTC_MODE2_INTENSET_ALARM0_Pos 8 /**< (RTC_MODE2_INTENSET) Alarm 0 Interrupt Enable Position */
  1200. #define RTC_MODE2_INTENSET_ALARM0_Msk (_U_(0x1) << RTC_MODE2_INTENSET_ALARM0_Pos) /**< (RTC_MODE2_INTENSET) Alarm 0 Interrupt Enable Mask */
  1201. #define RTC_MODE2_INTENSET_ALARM0 RTC_MODE2_INTENSET_ALARM0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENSET_ALARM0_Msk instead */
  1202. #define RTC_MODE2_INTENSET_TAMPER_Pos 14 /**< (RTC_MODE2_INTENSET) Tamper Enable Position */
  1203. #define RTC_MODE2_INTENSET_TAMPER_Msk (_U_(0x1) << RTC_MODE2_INTENSET_TAMPER_Pos) /**< (RTC_MODE2_INTENSET) Tamper Enable Mask */
  1204. #define RTC_MODE2_INTENSET_TAMPER RTC_MODE2_INTENSET_TAMPER_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENSET_TAMPER_Msk instead */
  1205. #define RTC_MODE2_INTENSET_OVF_Pos 15 /**< (RTC_MODE2_INTENSET) Overflow Interrupt Enable Position */
  1206. #define RTC_MODE2_INTENSET_OVF_Msk (_U_(0x1) << RTC_MODE2_INTENSET_OVF_Pos) /**< (RTC_MODE2_INTENSET) Overflow Interrupt Enable Mask */
  1207. #define RTC_MODE2_INTENSET_OVF RTC_MODE2_INTENSET_OVF_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTENSET_OVF_Msk instead */
  1208. #define RTC_MODE2_INTENSET_MASK _U_(0xC1FF) /**< \deprecated (RTC_MODE2_INTENSET) Register MASK (Use RTC_MODE2_INTENSET_Msk instead) */
  1209. #define RTC_MODE2_INTENSET_Msk _U_(0xC1FF) /**< (RTC_MODE2_INTENSET) Register Mask */
  1210. #define RTC_MODE2_INTENSET_PER_Pos 0 /**< (RTC_MODE2_INTENSET Position) Periodic Interval x Enable */
  1211. #define RTC_MODE2_INTENSET_PER_Msk (_U_(0xFF) << RTC_MODE2_INTENSET_PER_Pos) /**< (RTC_MODE2_INTENSET Mask) PER */
  1212. #define RTC_MODE2_INTENSET_PER(value) (RTC_MODE2_INTENSET_PER_Msk & ((value) << RTC_MODE2_INTENSET_PER_Pos))
  1213. #define RTC_MODE2_INTENSET_ALARM_Pos 8 /**< (RTC_MODE2_INTENSET Position) Alarm x Interrupt Enable */
  1214. #define RTC_MODE2_INTENSET_ALARM_Msk (_U_(0x1) << RTC_MODE2_INTENSET_ALARM_Pos) /**< (RTC_MODE2_INTENSET Mask) ALARM */
  1215. #define RTC_MODE2_INTENSET_ALARM(value) (RTC_MODE2_INTENSET_ALARM_Msk & ((value) << RTC_MODE2_INTENSET_ALARM_Pos))
  1216. /* -------- RTC_MODE0_INTFLAG : (RTC Offset: 0x0c) (R/W 16) MODE0 Interrupt Flag Status and Clear -------- */
  1217. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1218. typedef union { // __I to avoid read-modify-write on write-to-clear register
  1219. struct {
  1220. __I uint16_t PER0:1; /**< bit: 0 Periodic Interval 0 */
  1221. __I uint16_t PER1:1; /**< bit: 1 Periodic Interval 1 */
  1222. __I uint16_t PER2:1; /**< bit: 2 Periodic Interval 2 */
  1223. __I uint16_t PER3:1; /**< bit: 3 Periodic Interval 3 */
  1224. __I uint16_t PER4:1; /**< bit: 4 Periodic Interval 4 */
  1225. __I uint16_t PER5:1; /**< bit: 5 Periodic Interval 5 */
  1226. __I uint16_t PER6:1; /**< bit: 6 Periodic Interval 6 */
  1227. __I uint16_t PER7:1; /**< bit: 7 Periodic Interval 7 */
  1228. __I uint16_t CMP0:1; /**< bit: 8 Compare 0 */
  1229. __I uint16_t :5; /**< bit: 9..13 Reserved */
  1230. __I uint16_t TAMPER:1; /**< bit: 14 Tamper */
  1231. __I uint16_t OVF:1; /**< bit: 15 Overflow */
  1232. } bit; /**< Structure used for bit access */
  1233. struct {
  1234. __I uint16_t PER:8; /**< bit: 0..7 Periodic Interval x */
  1235. __I uint16_t CMP:1; /**< bit: 8 Compare x */
  1236. __I uint16_t :7; /**< bit: 9..15 Reserved */
  1237. } vec; /**< Structure used for vec access */
  1238. uint16_t reg; /**< Type used for register access */
  1239. } RTC_MODE0_INTFLAG_Type;
  1240. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1241. #define RTC_MODE0_INTFLAG_OFFSET (0x0C) /**< (RTC_MODE0_INTFLAG) MODE0 Interrupt Flag Status and Clear Offset */
  1242. #define RTC_MODE0_INTFLAG_RESETVALUE _U_(0x00) /**< (RTC_MODE0_INTFLAG) MODE0 Interrupt Flag Status and Clear Reset Value */
  1243. #define RTC_MODE0_INTFLAG_PER0_Pos 0 /**< (RTC_MODE0_INTFLAG) Periodic Interval 0 Position */
  1244. #define RTC_MODE0_INTFLAG_PER0_Msk (_U_(0x1) << RTC_MODE0_INTFLAG_PER0_Pos) /**< (RTC_MODE0_INTFLAG) Periodic Interval 0 Mask */
  1245. #define RTC_MODE0_INTFLAG_PER0 RTC_MODE0_INTFLAG_PER0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTFLAG_PER0_Msk instead */
  1246. #define RTC_MODE0_INTFLAG_PER1_Pos 1 /**< (RTC_MODE0_INTFLAG) Periodic Interval 1 Position */
  1247. #define RTC_MODE0_INTFLAG_PER1_Msk (_U_(0x1) << RTC_MODE0_INTFLAG_PER1_Pos) /**< (RTC_MODE0_INTFLAG) Periodic Interval 1 Mask */
  1248. #define RTC_MODE0_INTFLAG_PER1 RTC_MODE0_INTFLAG_PER1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTFLAG_PER1_Msk instead */
  1249. #define RTC_MODE0_INTFLAG_PER2_Pos 2 /**< (RTC_MODE0_INTFLAG) Periodic Interval 2 Position */
  1250. #define RTC_MODE0_INTFLAG_PER2_Msk (_U_(0x1) << RTC_MODE0_INTFLAG_PER2_Pos) /**< (RTC_MODE0_INTFLAG) Periodic Interval 2 Mask */
  1251. #define RTC_MODE0_INTFLAG_PER2 RTC_MODE0_INTFLAG_PER2_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTFLAG_PER2_Msk instead */
  1252. #define RTC_MODE0_INTFLAG_PER3_Pos 3 /**< (RTC_MODE0_INTFLAG) Periodic Interval 3 Position */
  1253. #define RTC_MODE0_INTFLAG_PER3_Msk (_U_(0x1) << RTC_MODE0_INTFLAG_PER3_Pos) /**< (RTC_MODE0_INTFLAG) Periodic Interval 3 Mask */
  1254. #define RTC_MODE0_INTFLAG_PER3 RTC_MODE0_INTFLAG_PER3_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTFLAG_PER3_Msk instead */
  1255. #define RTC_MODE0_INTFLAG_PER4_Pos 4 /**< (RTC_MODE0_INTFLAG) Periodic Interval 4 Position */
  1256. #define RTC_MODE0_INTFLAG_PER4_Msk (_U_(0x1) << RTC_MODE0_INTFLAG_PER4_Pos) /**< (RTC_MODE0_INTFLAG) Periodic Interval 4 Mask */
  1257. #define RTC_MODE0_INTFLAG_PER4 RTC_MODE0_INTFLAG_PER4_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTFLAG_PER4_Msk instead */
  1258. #define RTC_MODE0_INTFLAG_PER5_Pos 5 /**< (RTC_MODE0_INTFLAG) Periodic Interval 5 Position */
  1259. #define RTC_MODE0_INTFLAG_PER5_Msk (_U_(0x1) << RTC_MODE0_INTFLAG_PER5_Pos) /**< (RTC_MODE0_INTFLAG) Periodic Interval 5 Mask */
  1260. #define RTC_MODE0_INTFLAG_PER5 RTC_MODE0_INTFLAG_PER5_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTFLAG_PER5_Msk instead */
  1261. #define RTC_MODE0_INTFLAG_PER6_Pos 6 /**< (RTC_MODE0_INTFLAG) Periodic Interval 6 Position */
  1262. #define RTC_MODE0_INTFLAG_PER6_Msk (_U_(0x1) << RTC_MODE0_INTFLAG_PER6_Pos) /**< (RTC_MODE0_INTFLAG) Periodic Interval 6 Mask */
  1263. #define RTC_MODE0_INTFLAG_PER6 RTC_MODE0_INTFLAG_PER6_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTFLAG_PER6_Msk instead */
  1264. #define RTC_MODE0_INTFLAG_PER7_Pos 7 /**< (RTC_MODE0_INTFLAG) Periodic Interval 7 Position */
  1265. #define RTC_MODE0_INTFLAG_PER7_Msk (_U_(0x1) << RTC_MODE0_INTFLAG_PER7_Pos) /**< (RTC_MODE0_INTFLAG) Periodic Interval 7 Mask */
  1266. #define RTC_MODE0_INTFLAG_PER7 RTC_MODE0_INTFLAG_PER7_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTFLAG_PER7_Msk instead */
  1267. #define RTC_MODE0_INTFLAG_CMP0_Pos 8 /**< (RTC_MODE0_INTFLAG) Compare 0 Position */
  1268. #define RTC_MODE0_INTFLAG_CMP0_Msk (_U_(0x1) << RTC_MODE0_INTFLAG_CMP0_Pos) /**< (RTC_MODE0_INTFLAG) Compare 0 Mask */
  1269. #define RTC_MODE0_INTFLAG_CMP0 RTC_MODE0_INTFLAG_CMP0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTFLAG_CMP0_Msk instead */
  1270. #define RTC_MODE0_INTFLAG_TAMPER_Pos 14 /**< (RTC_MODE0_INTFLAG) Tamper Position */
  1271. #define RTC_MODE0_INTFLAG_TAMPER_Msk (_U_(0x1) << RTC_MODE0_INTFLAG_TAMPER_Pos) /**< (RTC_MODE0_INTFLAG) Tamper Mask */
  1272. #define RTC_MODE0_INTFLAG_TAMPER RTC_MODE0_INTFLAG_TAMPER_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTFLAG_TAMPER_Msk instead */
  1273. #define RTC_MODE0_INTFLAG_OVF_Pos 15 /**< (RTC_MODE0_INTFLAG) Overflow Position */
  1274. #define RTC_MODE0_INTFLAG_OVF_Msk (_U_(0x1) << RTC_MODE0_INTFLAG_OVF_Pos) /**< (RTC_MODE0_INTFLAG) Overflow Mask */
  1275. #define RTC_MODE0_INTFLAG_OVF RTC_MODE0_INTFLAG_OVF_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_INTFLAG_OVF_Msk instead */
  1276. #define RTC_MODE0_INTFLAG_MASK _U_(0xC1FF) /**< \deprecated (RTC_MODE0_INTFLAG) Register MASK (Use RTC_MODE0_INTFLAG_Msk instead) */
  1277. #define RTC_MODE0_INTFLAG_Msk _U_(0xC1FF) /**< (RTC_MODE0_INTFLAG) Register Mask */
  1278. #define RTC_MODE0_INTFLAG_PER_Pos 0 /**< (RTC_MODE0_INTFLAG Position) Periodic Interval x */
  1279. #define RTC_MODE0_INTFLAG_PER_Msk (_U_(0xFF) << RTC_MODE0_INTFLAG_PER_Pos) /**< (RTC_MODE0_INTFLAG Mask) PER */
  1280. #define RTC_MODE0_INTFLAG_PER(value) (RTC_MODE0_INTFLAG_PER_Msk & ((value) << RTC_MODE0_INTFLAG_PER_Pos))
  1281. #define RTC_MODE0_INTFLAG_CMP_Pos 8 /**< (RTC_MODE0_INTFLAG Position) Compare x */
  1282. #define RTC_MODE0_INTFLAG_CMP_Msk (_U_(0x1) << RTC_MODE0_INTFLAG_CMP_Pos) /**< (RTC_MODE0_INTFLAG Mask) CMP */
  1283. #define RTC_MODE0_INTFLAG_CMP(value) (RTC_MODE0_INTFLAG_CMP_Msk & ((value) << RTC_MODE0_INTFLAG_CMP_Pos))
  1284. /* -------- RTC_MODE1_INTFLAG : (RTC Offset: 0x0c) (R/W 16) MODE1 Interrupt Flag Status and Clear -------- */
  1285. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1286. typedef union { // __I to avoid read-modify-write on write-to-clear register
  1287. struct {
  1288. __I uint16_t PER0:1; /**< bit: 0 Periodic Interval 0 */
  1289. __I uint16_t PER1:1; /**< bit: 1 Periodic Interval 1 */
  1290. __I uint16_t PER2:1; /**< bit: 2 Periodic Interval 2 */
  1291. __I uint16_t PER3:1; /**< bit: 3 Periodic Interval 3 */
  1292. __I uint16_t PER4:1; /**< bit: 4 Periodic Interval 4 */
  1293. __I uint16_t PER5:1; /**< bit: 5 Periodic Interval 5 */
  1294. __I uint16_t PER6:1; /**< bit: 6 Periodic Interval 6 */
  1295. __I uint16_t PER7:1; /**< bit: 7 Periodic Interval 7 */
  1296. __I uint16_t CMP0:1; /**< bit: 8 Compare 0 */
  1297. __I uint16_t CMP1:1; /**< bit: 9 Compare 1 */
  1298. __I uint16_t :4; /**< bit: 10..13 Reserved */
  1299. __I uint16_t TAMPER:1; /**< bit: 14 Tamper */
  1300. __I uint16_t OVF:1; /**< bit: 15 Overflow */
  1301. } bit; /**< Structure used for bit access */
  1302. struct {
  1303. __I uint16_t PER:8; /**< bit: 0..7 Periodic Interval x */
  1304. __I uint16_t CMP:2; /**< bit: 8..9 Compare x */
  1305. __I uint16_t :6; /**< bit: 10..15 Reserved */
  1306. } vec; /**< Structure used for vec access */
  1307. uint16_t reg; /**< Type used for register access */
  1308. } RTC_MODE1_INTFLAG_Type;
  1309. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1310. #define RTC_MODE1_INTFLAG_OFFSET (0x0C) /**< (RTC_MODE1_INTFLAG) MODE1 Interrupt Flag Status and Clear Offset */
  1311. #define RTC_MODE1_INTFLAG_RESETVALUE _U_(0x00) /**< (RTC_MODE1_INTFLAG) MODE1 Interrupt Flag Status and Clear Reset Value */
  1312. #define RTC_MODE1_INTFLAG_PER0_Pos 0 /**< (RTC_MODE1_INTFLAG) Periodic Interval 0 Position */
  1313. #define RTC_MODE1_INTFLAG_PER0_Msk (_U_(0x1) << RTC_MODE1_INTFLAG_PER0_Pos) /**< (RTC_MODE1_INTFLAG) Periodic Interval 0 Mask */
  1314. #define RTC_MODE1_INTFLAG_PER0 RTC_MODE1_INTFLAG_PER0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTFLAG_PER0_Msk instead */
  1315. #define RTC_MODE1_INTFLAG_PER1_Pos 1 /**< (RTC_MODE1_INTFLAG) Periodic Interval 1 Position */
  1316. #define RTC_MODE1_INTFLAG_PER1_Msk (_U_(0x1) << RTC_MODE1_INTFLAG_PER1_Pos) /**< (RTC_MODE1_INTFLAG) Periodic Interval 1 Mask */
  1317. #define RTC_MODE1_INTFLAG_PER1 RTC_MODE1_INTFLAG_PER1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTFLAG_PER1_Msk instead */
  1318. #define RTC_MODE1_INTFLAG_PER2_Pos 2 /**< (RTC_MODE1_INTFLAG) Periodic Interval 2 Position */
  1319. #define RTC_MODE1_INTFLAG_PER2_Msk (_U_(0x1) << RTC_MODE1_INTFLAG_PER2_Pos) /**< (RTC_MODE1_INTFLAG) Periodic Interval 2 Mask */
  1320. #define RTC_MODE1_INTFLAG_PER2 RTC_MODE1_INTFLAG_PER2_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTFLAG_PER2_Msk instead */
  1321. #define RTC_MODE1_INTFLAG_PER3_Pos 3 /**< (RTC_MODE1_INTFLAG) Periodic Interval 3 Position */
  1322. #define RTC_MODE1_INTFLAG_PER3_Msk (_U_(0x1) << RTC_MODE1_INTFLAG_PER3_Pos) /**< (RTC_MODE1_INTFLAG) Periodic Interval 3 Mask */
  1323. #define RTC_MODE1_INTFLAG_PER3 RTC_MODE1_INTFLAG_PER3_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTFLAG_PER3_Msk instead */
  1324. #define RTC_MODE1_INTFLAG_PER4_Pos 4 /**< (RTC_MODE1_INTFLAG) Periodic Interval 4 Position */
  1325. #define RTC_MODE1_INTFLAG_PER4_Msk (_U_(0x1) << RTC_MODE1_INTFLAG_PER4_Pos) /**< (RTC_MODE1_INTFLAG) Periodic Interval 4 Mask */
  1326. #define RTC_MODE1_INTFLAG_PER4 RTC_MODE1_INTFLAG_PER4_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTFLAG_PER4_Msk instead */
  1327. #define RTC_MODE1_INTFLAG_PER5_Pos 5 /**< (RTC_MODE1_INTFLAG) Periodic Interval 5 Position */
  1328. #define RTC_MODE1_INTFLAG_PER5_Msk (_U_(0x1) << RTC_MODE1_INTFLAG_PER5_Pos) /**< (RTC_MODE1_INTFLAG) Periodic Interval 5 Mask */
  1329. #define RTC_MODE1_INTFLAG_PER5 RTC_MODE1_INTFLAG_PER5_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTFLAG_PER5_Msk instead */
  1330. #define RTC_MODE1_INTFLAG_PER6_Pos 6 /**< (RTC_MODE1_INTFLAG) Periodic Interval 6 Position */
  1331. #define RTC_MODE1_INTFLAG_PER6_Msk (_U_(0x1) << RTC_MODE1_INTFLAG_PER6_Pos) /**< (RTC_MODE1_INTFLAG) Periodic Interval 6 Mask */
  1332. #define RTC_MODE1_INTFLAG_PER6 RTC_MODE1_INTFLAG_PER6_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTFLAG_PER6_Msk instead */
  1333. #define RTC_MODE1_INTFLAG_PER7_Pos 7 /**< (RTC_MODE1_INTFLAG) Periodic Interval 7 Position */
  1334. #define RTC_MODE1_INTFLAG_PER7_Msk (_U_(0x1) << RTC_MODE1_INTFLAG_PER7_Pos) /**< (RTC_MODE1_INTFLAG) Periodic Interval 7 Mask */
  1335. #define RTC_MODE1_INTFLAG_PER7 RTC_MODE1_INTFLAG_PER7_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTFLAG_PER7_Msk instead */
  1336. #define RTC_MODE1_INTFLAG_CMP0_Pos 8 /**< (RTC_MODE1_INTFLAG) Compare 0 Position */
  1337. #define RTC_MODE1_INTFLAG_CMP0_Msk (_U_(0x1) << RTC_MODE1_INTFLAG_CMP0_Pos) /**< (RTC_MODE1_INTFLAG) Compare 0 Mask */
  1338. #define RTC_MODE1_INTFLAG_CMP0 RTC_MODE1_INTFLAG_CMP0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTFLAG_CMP0_Msk instead */
  1339. #define RTC_MODE1_INTFLAG_CMP1_Pos 9 /**< (RTC_MODE1_INTFLAG) Compare 1 Position */
  1340. #define RTC_MODE1_INTFLAG_CMP1_Msk (_U_(0x1) << RTC_MODE1_INTFLAG_CMP1_Pos) /**< (RTC_MODE1_INTFLAG) Compare 1 Mask */
  1341. #define RTC_MODE1_INTFLAG_CMP1 RTC_MODE1_INTFLAG_CMP1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTFLAG_CMP1_Msk instead */
  1342. #define RTC_MODE1_INTFLAG_TAMPER_Pos 14 /**< (RTC_MODE1_INTFLAG) Tamper Position */
  1343. #define RTC_MODE1_INTFLAG_TAMPER_Msk (_U_(0x1) << RTC_MODE1_INTFLAG_TAMPER_Pos) /**< (RTC_MODE1_INTFLAG) Tamper Mask */
  1344. #define RTC_MODE1_INTFLAG_TAMPER RTC_MODE1_INTFLAG_TAMPER_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTFLAG_TAMPER_Msk instead */
  1345. #define RTC_MODE1_INTFLAG_OVF_Pos 15 /**< (RTC_MODE1_INTFLAG) Overflow Position */
  1346. #define RTC_MODE1_INTFLAG_OVF_Msk (_U_(0x1) << RTC_MODE1_INTFLAG_OVF_Pos) /**< (RTC_MODE1_INTFLAG) Overflow Mask */
  1347. #define RTC_MODE1_INTFLAG_OVF RTC_MODE1_INTFLAG_OVF_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_INTFLAG_OVF_Msk instead */
  1348. #define RTC_MODE1_INTFLAG_MASK _U_(0xC3FF) /**< \deprecated (RTC_MODE1_INTFLAG) Register MASK (Use RTC_MODE1_INTFLAG_Msk instead) */
  1349. #define RTC_MODE1_INTFLAG_Msk _U_(0xC3FF) /**< (RTC_MODE1_INTFLAG) Register Mask */
  1350. #define RTC_MODE1_INTFLAG_PER_Pos 0 /**< (RTC_MODE1_INTFLAG Position) Periodic Interval x */
  1351. #define RTC_MODE1_INTFLAG_PER_Msk (_U_(0xFF) << RTC_MODE1_INTFLAG_PER_Pos) /**< (RTC_MODE1_INTFLAG Mask) PER */
  1352. #define RTC_MODE1_INTFLAG_PER(value) (RTC_MODE1_INTFLAG_PER_Msk & ((value) << RTC_MODE1_INTFLAG_PER_Pos))
  1353. #define RTC_MODE1_INTFLAG_CMP_Pos 8 /**< (RTC_MODE1_INTFLAG Position) Compare x */
  1354. #define RTC_MODE1_INTFLAG_CMP_Msk (_U_(0x3) << RTC_MODE1_INTFLAG_CMP_Pos) /**< (RTC_MODE1_INTFLAG Mask) CMP */
  1355. #define RTC_MODE1_INTFLAG_CMP(value) (RTC_MODE1_INTFLAG_CMP_Msk & ((value) << RTC_MODE1_INTFLAG_CMP_Pos))
  1356. /* -------- RTC_MODE2_INTFLAG : (RTC Offset: 0x0c) (R/W 16) MODE2 Interrupt Flag Status and Clear -------- */
  1357. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1358. typedef union { // __I to avoid read-modify-write on write-to-clear register
  1359. struct {
  1360. __I uint16_t PER0:1; /**< bit: 0 Periodic Interval 0 */
  1361. __I uint16_t PER1:1; /**< bit: 1 Periodic Interval 1 */
  1362. __I uint16_t PER2:1; /**< bit: 2 Periodic Interval 2 */
  1363. __I uint16_t PER3:1; /**< bit: 3 Periodic Interval 3 */
  1364. __I uint16_t PER4:1; /**< bit: 4 Periodic Interval 4 */
  1365. __I uint16_t PER5:1; /**< bit: 5 Periodic Interval 5 */
  1366. __I uint16_t PER6:1; /**< bit: 6 Periodic Interval 6 */
  1367. __I uint16_t PER7:1; /**< bit: 7 Periodic Interval 7 */
  1368. __I uint16_t ALARM0:1; /**< bit: 8 Alarm 0 */
  1369. __I uint16_t :5; /**< bit: 9..13 Reserved */
  1370. __I uint16_t TAMPER:1; /**< bit: 14 Tamper */
  1371. __I uint16_t OVF:1; /**< bit: 15 Overflow */
  1372. } bit; /**< Structure used for bit access */
  1373. struct {
  1374. __I uint16_t PER:8; /**< bit: 0..7 Periodic Interval x */
  1375. __I uint16_t ALARM:1; /**< bit: 8 Alarm x */
  1376. __I uint16_t :7; /**< bit: 9..15 Reserved */
  1377. } vec; /**< Structure used for vec access */
  1378. uint16_t reg; /**< Type used for register access */
  1379. } RTC_MODE2_INTFLAG_Type;
  1380. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1381. #define RTC_MODE2_INTFLAG_OFFSET (0x0C) /**< (RTC_MODE2_INTFLAG) MODE2 Interrupt Flag Status and Clear Offset */
  1382. #define RTC_MODE2_INTFLAG_RESETVALUE _U_(0x00) /**< (RTC_MODE2_INTFLAG) MODE2 Interrupt Flag Status and Clear Reset Value */
  1383. #define RTC_MODE2_INTFLAG_PER0_Pos 0 /**< (RTC_MODE2_INTFLAG) Periodic Interval 0 Position */
  1384. #define RTC_MODE2_INTFLAG_PER0_Msk (_U_(0x1) << RTC_MODE2_INTFLAG_PER0_Pos) /**< (RTC_MODE2_INTFLAG) Periodic Interval 0 Mask */
  1385. #define RTC_MODE2_INTFLAG_PER0 RTC_MODE2_INTFLAG_PER0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTFLAG_PER0_Msk instead */
  1386. #define RTC_MODE2_INTFLAG_PER1_Pos 1 /**< (RTC_MODE2_INTFLAG) Periodic Interval 1 Position */
  1387. #define RTC_MODE2_INTFLAG_PER1_Msk (_U_(0x1) << RTC_MODE2_INTFLAG_PER1_Pos) /**< (RTC_MODE2_INTFLAG) Periodic Interval 1 Mask */
  1388. #define RTC_MODE2_INTFLAG_PER1 RTC_MODE2_INTFLAG_PER1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTFLAG_PER1_Msk instead */
  1389. #define RTC_MODE2_INTFLAG_PER2_Pos 2 /**< (RTC_MODE2_INTFLAG) Periodic Interval 2 Position */
  1390. #define RTC_MODE2_INTFLAG_PER2_Msk (_U_(0x1) << RTC_MODE2_INTFLAG_PER2_Pos) /**< (RTC_MODE2_INTFLAG) Periodic Interval 2 Mask */
  1391. #define RTC_MODE2_INTFLAG_PER2 RTC_MODE2_INTFLAG_PER2_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTFLAG_PER2_Msk instead */
  1392. #define RTC_MODE2_INTFLAG_PER3_Pos 3 /**< (RTC_MODE2_INTFLAG) Periodic Interval 3 Position */
  1393. #define RTC_MODE2_INTFLAG_PER3_Msk (_U_(0x1) << RTC_MODE2_INTFLAG_PER3_Pos) /**< (RTC_MODE2_INTFLAG) Periodic Interval 3 Mask */
  1394. #define RTC_MODE2_INTFLAG_PER3 RTC_MODE2_INTFLAG_PER3_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTFLAG_PER3_Msk instead */
  1395. #define RTC_MODE2_INTFLAG_PER4_Pos 4 /**< (RTC_MODE2_INTFLAG) Periodic Interval 4 Position */
  1396. #define RTC_MODE2_INTFLAG_PER4_Msk (_U_(0x1) << RTC_MODE2_INTFLAG_PER4_Pos) /**< (RTC_MODE2_INTFLAG) Periodic Interval 4 Mask */
  1397. #define RTC_MODE2_INTFLAG_PER4 RTC_MODE2_INTFLAG_PER4_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTFLAG_PER4_Msk instead */
  1398. #define RTC_MODE2_INTFLAG_PER5_Pos 5 /**< (RTC_MODE2_INTFLAG) Periodic Interval 5 Position */
  1399. #define RTC_MODE2_INTFLAG_PER5_Msk (_U_(0x1) << RTC_MODE2_INTFLAG_PER5_Pos) /**< (RTC_MODE2_INTFLAG) Periodic Interval 5 Mask */
  1400. #define RTC_MODE2_INTFLAG_PER5 RTC_MODE2_INTFLAG_PER5_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTFLAG_PER5_Msk instead */
  1401. #define RTC_MODE2_INTFLAG_PER6_Pos 6 /**< (RTC_MODE2_INTFLAG) Periodic Interval 6 Position */
  1402. #define RTC_MODE2_INTFLAG_PER6_Msk (_U_(0x1) << RTC_MODE2_INTFLAG_PER6_Pos) /**< (RTC_MODE2_INTFLAG) Periodic Interval 6 Mask */
  1403. #define RTC_MODE2_INTFLAG_PER6 RTC_MODE2_INTFLAG_PER6_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTFLAG_PER6_Msk instead */
  1404. #define RTC_MODE2_INTFLAG_PER7_Pos 7 /**< (RTC_MODE2_INTFLAG) Periodic Interval 7 Position */
  1405. #define RTC_MODE2_INTFLAG_PER7_Msk (_U_(0x1) << RTC_MODE2_INTFLAG_PER7_Pos) /**< (RTC_MODE2_INTFLAG) Periodic Interval 7 Mask */
  1406. #define RTC_MODE2_INTFLAG_PER7 RTC_MODE2_INTFLAG_PER7_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTFLAG_PER7_Msk instead */
  1407. #define RTC_MODE2_INTFLAG_ALARM0_Pos 8 /**< (RTC_MODE2_INTFLAG) Alarm 0 Position */
  1408. #define RTC_MODE2_INTFLAG_ALARM0_Msk (_U_(0x1) << RTC_MODE2_INTFLAG_ALARM0_Pos) /**< (RTC_MODE2_INTFLAG) Alarm 0 Mask */
  1409. #define RTC_MODE2_INTFLAG_ALARM0 RTC_MODE2_INTFLAG_ALARM0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTFLAG_ALARM0_Msk instead */
  1410. #define RTC_MODE2_INTFLAG_TAMPER_Pos 14 /**< (RTC_MODE2_INTFLAG) Tamper Position */
  1411. #define RTC_MODE2_INTFLAG_TAMPER_Msk (_U_(0x1) << RTC_MODE2_INTFLAG_TAMPER_Pos) /**< (RTC_MODE2_INTFLAG) Tamper Mask */
  1412. #define RTC_MODE2_INTFLAG_TAMPER RTC_MODE2_INTFLAG_TAMPER_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTFLAG_TAMPER_Msk instead */
  1413. #define RTC_MODE2_INTFLAG_OVF_Pos 15 /**< (RTC_MODE2_INTFLAG) Overflow Position */
  1414. #define RTC_MODE2_INTFLAG_OVF_Msk (_U_(0x1) << RTC_MODE2_INTFLAG_OVF_Pos) /**< (RTC_MODE2_INTFLAG) Overflow Mask */
  1415. #define RTC_MODE2_INTFLAG_OVF RTC_MODE2_INTFLAG_OVF_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_INTFLAG_OVF_Msk instead */
  1416. #define RTC_MODE2_INTFLAG_MASK _U_(0xC1FF) /**< \deprecated (RTC_MODE2_INTFLAG) Register MASK (Use RTC_MODE2_INTFLAG_Msk instead) */
  1417. #define RTC_MODE2_INTFLAG_Msk _U_(0xC1FF) /**< (RTC_MODE2_INTFLAG) Register Mask */
  1418. #define RTC_MODE2_INTFLAG_PER_Pos 0 /**< (RTC_MODE2_INTFLAG Position) Periodic Interval x */
  1419. #define RTC_MODE2_INTFLAG_PER_Msk (_U_(0xFF) << RTC_MODE2_INTFLAG_PER_Pos) /**< (RTC_MODE2_INTFLAG Mask) PER */
  1420. #define RTC_MODE2_INTFLAG_PER(value) (RTC_MODE2_INTFLAG_PER_Msk & ((value) << RTC_MODE2_INTFLAG_PER_Pos))
  1421. #define RTC_MODE2_INTFLAG_ALARM_Pos 8 /**< (RTC_MODE2_INTFLAG Position) Alarm x */
  1422. #define RTC_MODE2_INTFLAG_ALARM_Msk (_U_(0x1) << RTC_MODE2_INTFLAG_ALARM_Pos) /**< (RTC_MODE2_INTFLAG Mask) ALARM */
  1423. #define RTC_MODE2_INTFLAG_ALARM(value) (RTC_MODE2_INTFLAG_ALARM_Msk & ((value) << RTC_MODE2_INTFLAG_ALARM_Pos))
  1424. /* -------- RTC_DBGCTRL : (RTC Offset: 0x0e) (R/W 8) Debug Control -------- */
  1425. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1426. typedef union {
  1427. struct {
  1428. uint8_t DBGRUN:1; /**< bit: 0 Run During Debug */
  1429. uint8_t :7; /**< bit: 1..7 Reserved */
  1430. } bit; /**< Structure used for bit access */
  1431. uint8_t reg; /**< Type used for register access */
  1432. } RTC_DBGCTRL_Type;
  1433. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1434. #define RTC_DBGCTRL_OFFSET (0x0E) /**< (RTC_DBGCTRL) Debug Control Offset */
  1435. #define RTC_DBGCTRL_RESETVALUE _U_(0x00) /**< (RTC_DBGCTRL) Debug Control Reset Value */
  1436. #define RTC_DBGCTRL_DBGRUN_Pos 0 /**< (RTC_DBGCTRL) Run During Debug Position */
  1437. #define RTC_DBGCTRL_DBGRUN_Msk (_U_(0x1) << RTC_DBGCTRL_DBGRUN_Pos) /**< (RTC_DBGCTRL) Run During Debug Mask */
  1438. #define RTC_DBGCTRL_DBGRUN RTC_DBGCTRL_DBGRUN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_DBGCTRL_DBGRUN_Msk instead */
  1439. #define RTC_DBGCTRL_MASK _U_(0x01) /**< \deprecated (RTC_DBGCTRL) Register MASK (Use RTC_DBGCTRL_Msk instead) */
  1440. #define RTC_DBGCTRL_Msk _U_(0x01) /**< (RTC_DBGCTRL) Register Mask */
  1441. /* -------- RTC_MODE0_SYNCBUSY : (RTC Offset: 0x10) (R/ 32) MODE0 Synchronization Busy Status -------- */
  1442. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1443. typedef union {
  1444. struct {
  1445. uint32_t SWRST:1; /**< bit: 0 Software Reset Busy */
  1446. uint32_t ENABLE:1; /**< bit: 1 Enable Bit Busy */
  1447. uint32_t FREQCORR:1; /**< bit: 2 FREQCORR Register Busy */
  1448. uint32_t COUNT:1; /**< bit: 3 COUNT Register Busy */
  1449. uint32_t :1; /**< bit: 4 Reserved */
  1450. uint32_t COMP0:1; /**< bit: 5 COMP 0 Register Busy */
  1451. uint32_t :9; /**< bit: 6..14 Reserved */
  1452. uint32_t COUNTSYNC:1; /**< bit: 15 Count Synchronization Enable Bit Busy */
  1453. uint32_t GP0:1; /**< bit: 16 General Purpose 0 Register Busy */
  1454. uint32_t GP1:1; /**< bit: 17 General Purpose 1 Register Busy */
  1455. uint32_t :14; /**< bit: 18..31 Reserved */
  1456. } bit; /**< Structure used for bit access */
  1457. struct {
  1458. uint32_t :5; /**< bit: 0..4 Reserved */
  1459. uint32_t COMP:1; /**< bit: 5 COMP x Register Busy */
  1460. uint32_t :10; /**< bit: 6..15 Reserved */
  1461. uint32_t GP:2; /**< bit: 16..17 General Purpose x Register Busy */
  1462. uint32_t :14; /**< bit: 18..31 Reserved */
  1463. } vec; /**< Structure used for vec access */
  1464. uint32_t reg; /**< Type used for register access */
  1465. } RTC_MODE0_SYNCBUSY_Type;
  1466. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1467. #define RTC_MODE0_SYNCBUSY_OFFSET (0x10) /**< (RTC_MODE0_SYNCBUSY) MODE0 Synchronization Busy Status Offset */
  1468. #define RTC_MODE0_SYNCBUSY_RESETVALUE _U_(0x00) /**< (RTC_MODE0_SYNCBUSY) MODE0 Synchronization Busy Status Reset Value */
  1469. #define RTC_MODE0_SYNCBUSY_SWRST_Pos 0 /**< (RTC_MODE0_SYNCBUSY) Software Reset Busy Position */
  1470. #define RTC_MODE0_SYNCBUSY_SWRST_Msk (_U_(0x1) << RTC_MODE0_SYNCBUSY_SWRST_Pos) /**< (RTC_MODE0_SYNCBUSY) Software Reset Busy Mask */
  1471. #define RTC_MODE0_SYNCBUSY_SWRST RTC_MODE0_SYNCBUSY_SWRST_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_SYNCBUSY_SWRST_Msk instead */
  1472. #define RTC_MODE0_SYNCBUSY_ENABLE_Pos 1 /**< (RTC_MODE0_SYNCBUSY) Enable Bit Busy Position */
  1473. #define RTC_MODE0_SYNCBUSY_ENABLE_Msk (_U_(0x1) << RTC_MODE0_SYNCBUSY_ENABLE_Pos) /**< (RTC_MODE0_SYNCBUSY) Enable Bit Busy Mask */
  1474. #define RTC_MODE0_SYNCBUSY_ENABLE RTC_MODE0_SYNCBUSY_ENABLE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_SYNCBUSY_ENABLE_Msk instead */
  1475. #define RTC_MODE0_SYNCBUSY_FREQCORR_Pos 2 /**< (RTC_MODE0_SYNCBUSY) FREQCORR Register Busy Position */
  1476. #define RTC_MODE0_SYNCBUSY_FREQCORR_Msk (_U_(0x1) << RTC_MODE0_SYNCBUSY_FREQCORR_Pos) /**< (RTC_MODE0_SYNCBUSY) FREQCORR Register Busy Mask */
  1477. #define RTC_MODE0_SYNCBUSY_FREQCORR RTC_MODE0_SYNCBUSY_FREQCORR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_SYNCBUSY_FREQCORR_Msk instead */
  1478. #define RTC_MODE0_SYNCBUSY_COUNT_Pos 3 /**< (RTC_MODE0_SYNCBUSY) COUNT Register Busy Position */
  1479. #define RTC_MODE0_SYNCBUSY_COUNT_Msk (_U_(0x1) << RTC_MODE0_SYNCBUSY_COUNT_Pos) /**< (RTC_MODE0_SYNCBUSY) COUNT Register Busy Mask */
  1480. #define RTC_MODE0_SYNCBUSY_COUNT RTC_MODE0_SYNCBUSY_COUNT_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_SYNCBUSY_COUNT_Msk instead */
  1481. #define RTC_MODE0_SYNCBUSY_COMP0_Pos 5 /**< (RTC_MODE0_SYNCBUSY) COMP 0 Register Busy Position */
  1482. #define RTC_MODE0_SYNCBUSY_COMP0_Msk (_U_(0x1) << RTC_MODE0_SYNCBUSY_COMP0_Pos) /**< (RTC_MODE0_SYNCBUSY) COMP 0 Register Busy Mask */
  1483. #define RTC_MODE0_SYNCBUSY_COMP0 RTC_MODE0_SYNCBUSY_COMP0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_SYNCBUSY_COMP0_Msk instead */
  1484. #define RTC_MODE0_SYNCBUSY_COUNTSYNC_Pos 15 /**< (RTC_MODE0_SYNCBUSY) Count Synchronization Enable Bit Busy Position */
  1485. #define RTC_MODE0_SYNCBUSY_COUNTSYNC_Msk (_U_(0x1) << RTC_MODE0_SYNCBUSY_COUNTSYNC_Pos) /**< (RTC_MODE0_SYNCBUSY) Count Synchronization Enable Bit Busy Mask */
  1486. #define RTC_MODE0_SYNCBUSY_COUNTSYNC RTC_MODE0_SYNCBUSY_COUNTSYNC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_SYNCBUSY_COUNTSYNC_Msk instead */
  1487. #define RTC_MODE0_SYNCBUSY_GP0_Pos 16 /**< (RTC_MODE0_SYNCBUSY) General Purpose 0 Register Busy Position */
  1488. #define RTC_MODE0_SYNCBUSY_GP0_Msk (_U_(0x1) << RTC_MODE0_SYNCBUSY_GP0_Pos) /**< (RTC_MODE0_SYNCBUSY) General Purpose 0 Register Busy Mask */
  1489. #define RTC_MODE0_SYNCBUSY_GP0 RTC_MODE0_SYNCBUSY_GP0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_SYNCBUSY_GP0_Msk instead */
  1490. #define RTC_MODE0_SYNCBUSY_GP1_Pos 17 /**< (RTC_MODE0_SYNCBUSY) General Purpose 1 Register Busy Position */
  1491. #define RTC_MODE0_SYNCBUSY_GP1_Msk (_U_(0x1) << RTC_MODE0_SYNCBUSY_GP1_Pos) /**< (RTC_MODE0_SYNCBUSY) General Purpose 1 Register Busy Mask */
  1492. #define RTC_MODE0_SYNCBUSY_GP1 RTC_MODE0_SYNCBUSY_GP1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE0_SYNCBUSY_GP1_Msk instead */
  1493. #define RTC_MODE0_SYNCBUSY_MASK _U_(0x3802F) /**< \deprecated (RTC_MODE0_SYNCBUSY) Register MASK (Use RTC_MODE0_SYNCBUSY_Msk instead) */
  1494. #define RTC_MODE0_SYNCBUSY_Msk _U_(0x3802F) /**< (RTC_MODE0_SYNCBUSY) Register Mask */
  1495. #define RTC_MODE0_SYNCBUSY_COMP_Pos 5 /**< (RTC_MODE0_SYNCBUSY Position) COMP x Register Busy */
  1496. #define RTC_MODE0_SYNCBUSY_COMP_Msk (_U_(0x1) << RTC_MODE0_SYNCBUSY_COMP_Pos) /**< (RTC_MODE0_SYNCBUSY Mask) COMP */
  1497. #define RTC_MODE0_SYNCBUSY_COMP(value) (RTC_MODE0_SYNCBUSY_COMP_Msk & ((value) << RTC_MODE0_SYNCBUSY_COMP_Pos))
  1498. #define RTC_MODE0_SYNCBUSY_GP_Pos 16 /**< (RTC_MODE0_SYNCBUSY Position) General Purpose x Register Busy */
  1499. #define RTC_MODE0_SYNCBUSY_GP_Msk (_U_(0x3) << RTC_MODE0_SYNCBUSY_GP_Pos) /**< (RTC_MODE0_SYNCBUSY Mask) GP */
  1500. #define RTC_MODE0_SYNCBUSY_GP(value) (RTC_MODE0_SYNCBUSY_GP_Msk & ((value) << RTC_MODE0_SYNCBUSY_GP_Pos))
  1501. /* -------- RTC_MODE1_SYNCBUSY : (RTC Offset: 0x10) (R/ 32) MODE1 Synchronization Busy Status -------- */
  1502. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1503. typedef union {
  1504. struct {
  1505. uint32_t SWRST:1; /**< bit: 0 Software Reset Bit Busy */
  1506. uint32_t ENABLE:1; /**< bit: 1 Enable Bit Busy */
  1507. uint32_t FREQCORR:1; /**< bit: 2 FREQCORR Register Busy */
  1508. uint32_t COUNT:1; /**< bit: 3 COUNT Register Busy */
  1509. uint32_t PER:1; /**< bit: 4 PER Register Busy */
  1510. uint32_t COMP0:1; /**< bit: 5 COMP 0 Register Busy */
  1511. uint32_t COMP1:1; /**< bit: 6 COMP 1 Register Busy */
  1512. uint32_t :8; /**< bit: 7..14 Reserved */
  1513. uint32_t COUNTSYNC:1; /**< bit: 15 Count Synchronization Enable Bit Busy */
  1514. uint32_t GP0:1; /**< bit: 16 General Purpose 0 Register Busy */
  1515. uint32_t GP1:1; /**< bit: 17 General Purpose 1 Register Busy */
  1516. uint32_t :14; /**< bit: 18..31 Reserved */
  1517. } bit; /**< Structure used for bit access */
  1518. struct {
  1519. uint32_t :5; /**< bit: 0..4 Reserved */
  1520. uint32_t COMP:2; /**< bit: 5..6 COMP x Register Busy */
  1521. uint32_t :9; /**< bit: 7..15 Reserved */
  1522. uint32_t GP:2; /**< bit: 16..17 General Purpose x Register Busy */
  1523. uint32_t :14; /**< bit: 18..31 Reserved */
  1524. } vec; /**< Structure used for vec access */
  1525. uint32_t reg; /**< Type used for register access */
  1526. } RTC_MODE1_SYNCBUSY_Type;
  1527. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1528. #define RTC_MODE1_SYNCBUSY_OFFSET (0x10) /**< (RTC_MODE1_SYNCBUSY) MODE1 Synchronization Busy Status Offset */
  1529. #define RTC_MODE1_SYNCBUSY_RESETVALUE _U_(0x00) /**< (RTC_MODE1_SYNCBUSY) MODE1 Synchronization Busy Status Reset Value */
  1530. #define RTC_MODE1_SYNCBUSY_SWRST_Pos 0 /**< (RTC_MODE1_SYNCBUSY) Software Reset Bit Busy Position */
  1531. #define RTC_MODE1_SYNCBUSY_SWRST_Msk (_U_(0x1) << RTC_MODE1_SYNCBUSY_SWRST_Pos) /**< (RTC_MODE1_SYNCBUSY) Software Reset Bit Busy Mask */
  1532. #define RTC_MODE1_SYNCBUSY_SWRST RTC_MODE1_SYNCBUSY_SWRST_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_SYNCBUSY_SWRST_Msk instead */
  1533. #define RTC_MODE1_SYNCBUSY_ENABLE_Pos 1 /**< (RTC_MODE1_SYNCBUSY) Enable Bit Busy Position */
  1534. #define RTC_MODE1_SYNCBUSY_ENABLE_Msk (_U_(0x1) << RTC_MODE1_SYNCBUSY_ENABLE_Pos) /**< (RTC_MODE1_SYNCBUSY) Enable Bit Busy Mask */
  1535. #define RTC_MODE1_SYNCBUSY_ENABLE RTC_MODE1_SYNCBUSY_ENABLE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_SYNCBUSY_ENABLE_Msk instead */
  1536. #define RTC_MODE1_SYNCBUSY_FREQCORR_Pos 2 /**< (RTC_MODE1_SYNCBUSY) FREQCORR Register Busy Position */
  1537. #define RTC_MODE1_SYNCBUSY_FREQCORR_Msk (_U_(0x1) << RTC_MODE1_SYNCBUSY_FREQCORR_Pos) /**< (RTC_MODE1_SYNCBUSY) FREQCORR Register Busy Mask */
  1538. #define RTC_MODE1_SYNCBUSY_FREQCORR RTC_MODE1_SYNCBUSY_FREQCORR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_SYNCBUSY_FREQCORR_Msk instead */
  1539. #define RTC_MODE1_SYNCBUSY_COUNT_Pos 3 /**< (RTC_MODE1_SYNCBUSY) COUNT Register Busy Position */
  1540. #define RTC_MODE1_SYNCBUSY_COUNT_Msk (_U_(0x1) << RTC_MODE1_SYNCBUSY_COUNT_Pos) /**< (RTC_MODE1_SYNCBUSY) COUNT Register Busy Mask */
  1541. #define RTC_MODE1_SYNCBUSY_COUNT RTC_MODE1_SYNCBUSY_COUNT_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_SYNCBUSY_COUNT_Msk instead */
  1542. #define RTC_MODE1_SYNCBUSY_PER_Pos 4 /**< (RTC_MODE1_SYNCBUSY) PER Register Busy Position */
  1543. #define RTC_MODE1_SYNCBUSY_PER_Msk (_U_(0x1) << RTC_MODE1_SYNCBUSY_PER_Pos) /**< (RTC_MODE1_SYNCBUSY) PER Register Busy Mask */
  1544. #define RTC_MODE1_SYNCBUSY_PER RTC_MODE1_SYNCBUSY_PER_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_SYNCBUSY_PER_Msk instead */
  1545. #define RTC_MODE1_SYNCBUSY_COMP0_Pos 5 /**< (RTC_MODE1_SYNCBUSY) COMP 0 Register Busy Position */
  1546. #define RTC_MODE1_SYNCBUSY_COMP0_Msk (_U_(0x1) << RTC_MODE1_SYNCBUSY_COMP0_Pos) /**< (RTC_MODE1_SYNCBUSY) COMP 0 Register Busy Mask */
  1547. #define RTC_MODE1_SYNCBUSY_COMP0 RTC_MODE1_SYNCBUSY_COMP0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_SYNCBUSY_COMP0_Msk instead */
  1548. #define RTC_MODE1_SYNCBUSY_COMP1_Pos 6 /**< (RTC_MODE1_SYNCBUSY) COMP 1 Register Busy Position */
  1549. #define RTC_MODE1_SYNCBUSY_COMP1_Msk (_U_(0x1) << RTC_MODE1_SYNCBUSY_COMP1_Pos) /**< (RTC_MODE1_SYNCBUSY) COMP 1 Register Busy Mask */
  1550. #define RTC_MODE1_SYNCBUSY_COMP1 RTC_MODE1_SYNCBUSY_COMP1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_SYNCBUSY_COMP1_Msk instead */
  1551. #define RTC_MODE1_SYNCBUSY_COUNTSYNC_Pos 15 /**< (RTC_MODE1_SYNCBUSY) Count Synchronization Enable Bit Busy Position */
  1552. #define RTC_MODE1_SYNCBUSY_COUNTSYNC_Msk (_U_(0x1) << RTC_MODE1_SYNCBUSY_COUNTSYNC_Pos) /**< (RTC_MODE1_SYNCBUSY) Count Synchronization Enable Bit Busy Mask */
  1553. #define RTC_MODE1_SYNCBUSY_COUNTSYNC RTC_MODE1_SYNCBUSY_COUNTSYNC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_SYNCBUSY_COUNTSYNC_Msk instead */
  1554. #define RTC_MODE1_SYNCBUSY_GP0_Pos 16 /**< (RTC_MODE1_SYNCBUSY) General Purpose 0 Register Busy Position */
  1555. #define RTC_MODE1_SYNCBUSY_GP0_Msk (_U_(0x1) << RTC_MODE1_SYNCBUSY_GP0_Pos) /**< (RTC_MODE1_SYNCBUSY) General Purpose 0 Register Busy Mask */
  1556. #define RTC_MODE1_SYNCBUSY_GP0 RTC_MODE1_SYNCBUSY_GP0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_SYNCBUSY_GP0_Msk instead */
  1557. #define RTC_MODE1_SYNCBUSY_GP1_Pos 17 /**< (RTC_MODE1_SYNCBUSY) General Purpose 1 Register Busy Position */
  1558. #define RTC_MODE1_SYNCBUSY_GP1_Msk (_U_(0x1) << RTC_MODE1_SYNCBUSY_GP1_Pos) /**< (RTC_MODE1_SYNCBUSY) General Purpose 1 Register Busy Mask */
  1559. #define RTC_MODE1_SYNCBUSY_GP1 RTC_MODE1_SYNCBUSY_GP1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE1_SYNCBUSY_GP1_Msk instead */
  1560. #define RTC_MODE1_SYNCBUSY_MASK _U_(0x3807F) /**< \deprecated (RTC_MODE1_SYNCBUSY) Register MASK (Use RTC_MODE1_SYNCBUSY_Msk instead) */
  1561. #define RTC_MODE1_SYNCBUSY_Msk _U_(0x3807F) /**< (RTC_MODE1_SYNCBUSY) Register Mask */
  1562. #define RTC_MODE1_SYNCBUSY_COMP_Pos 5 /**< (RTC_MODE1_SYNCBUSY Position) COMP x Register Busy */
  1563. #define RTC_MODE1_SYNCBUSY_COMP_Msk (_U_(0x3) << RTC_MODE1_SYNCBUSY_COMP_Pos) /**< (RTC_MODE1_SYNCBUSY Mask) COMP */
  1564. #define RTC_MODE1_SYNCBUSY_COMP(value) (RTC_MODE1_SYNCBUSY_COMP_Msk & ((value) << RTC_MODE1_SYNCBUSY_COMP_Pos))
  1565. #define RTC_MODE1_SYNCBUSY_GP_Pos 16 /**< (RTC_MODE1_SYNCBUSY Position) General Purpose x Register Busy */
  1566. #define RTC_MODE1_SYNCBUSY_GP_Msk (_U_(0x3) << RTC_MODE1_SYNCBUSY_GP_Pos) /**< (RTC_MODE1_SYNCBUSY Mask) GP */
  1567. #define RTC_MODE1_SYNCBUSY_GP(value) (RTC_MODE1_SYNCBUSY_GP_Msk & ((value) << RTC_MODE1_SYNCBUSY_GP_Pos))
  1568. /* -------- RTC_MODE2_SYNCBUSY : (RTC Offset: 0x10) (R/ 32) MODE2 Synchronization Busy Status -------- */
  1569. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1570. typedef union {
  1571. struct {
  1572. uint32_t SWRST:1; /**< bit: 0 Software Reset Bit Busy */
  1573. uint32_t ENABLE:1; /**< bit: 1 Enable Bit Busy */
  1574. uint32_t FREQCORR:1; /**< bit: 2 FREQCORR Register Busy */
  1575. uint32_t CLOCK:1; /**< bit: 3 CLOCK Register Busy */
  1576. uint32_t :1; /**< bit: 4 Reserved */
  1577. uint32_t ALARM0:1; /**< bit: 5 ALARM 0 Register Busy */
  1578. uint32_t :5; /**< bit: 6..10 Reserved */
  1579. uint32_t MASK0:1; /**< bit: 11 MASK 0 Register Busy */
  1580. uint32_t :3; /**< bit: 12..14 Reserved */
  1581. uint32_t CLOCKSYNC:1; /**< bit: 15 Clock Synchronization Enable Bit Busy */
  1582. uint32_t GP0:1; /**< bit: 16 General Purpose 0 Register Busy */
  1583. uint32_t GP1:1; /**< bit: 17 General Purpose 1 Register Busy */
  1584. uint32_t :14; /**< bit: 18..31 Reserved */
  1585. } bit; /**< Structure used for bit access */
  1586. struct {
  1587. uint32_t :5; /**< bit: 0..4 Reserved */
  1588. uint32_t ALARM:1; /**< bit: 5 ALARM x Register Busy */
  1589. uint32_t :5; /**< bit: 6..10 Reserved */
  1590. uint32_t MASK:1; /**< bit: 11 MASK x Register Busy */
  1591. uint32_t :4; /**< bit: 12..15 Reserved */
  1592. uint32_t GP:2; /**< bit: 16..17 General Purpose x Register Busy */
  1593. uint32_t :14; /**< bit: 18..31 Reserved */
  1594. } vec; /**< Structure used for vec access */
  1595. uint32_t reg; /**< Type used for register access */
  1596. } RTC_MODE2_SYNCBUSY_Type;
  1597. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1598. #define RTC_MODE2_SYNCBUSY_OFFSET (0x10) /**< (RTC_MODE2_SYNCBUSY) MODE2 Synchronization Busy Status Offset */
  1599. #define RTC_MODE2_SYNCBUSY_RESETVALUE _U_(0x00) /**< (RTC_MODE2_SYNCBUSY) MODE2 Synchronization Busy Status Reset Value */
  1600. #define RTC_MODE2_SYNCBUSY_SWRST_Pos 0 /**< (RTC_MODE2_SYNCBUSY) Software Reset Bit Busy Position */
  1601. #define RTC_MODE2_SYNCBUSY_SWRST_Msk (_U_(0x1) << RTC_MODE2_SYNCBUSY_SWRST_Pos) /**< (RTC_MODE2_SYNCBUSY) Software Reset Bit Busy Mask */
  1602. #define RTC_MODE2_SYNCBUSY_SWRST RTC_MODE2_SYNCBUSY_SWRST_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_SYNCBUSY_SWRST_Msk instead */
  1603. #define RTC_MODE2_SYNCBUSY_ENABLE_Pos 1 /**< (RTC_MODE2_SYNCBUSY) Enable Bit Busy Position */
  1604. #define RTC_MODE2_SYNCBUSY_ENABLE_Msk (_U_(0x1) << RTC_MODE2_SYNCBUSY_ENABLE_Pos) /**< (RTC_MODE2_SYNCBUSY) Enable Bit Busy Mask */
  1605. #define RTC_MODE2_SYNCBUSY_ENABLE RTC_MODE2_SYNCBUSY_ENABLE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_SYNCBUSY_ENABLE_Msk instead */
  1606. #define RTC_MODE2_SYNCBUSY_FREQCORR_Pos 2 /**< (RTC_MODE2_SYNCBUSY) FREQCORR Register Busy Position */
  1607. #define RTC_MODE2_SYNCBUSY_FREQCORR_Msk (_U_(0x1) << RTC_MODE2_SYNCBUSY_FREQCORR_Pos) /**< (RTC_MODE2_SYNCBUSY) FREQCORR Register Busy Mask */
  1608. #define RTC_MODE2_SYNCBUSY_FREQCORR RTC_MODE2_SYNCBUSY_FREQCORR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_SYNCBUSY_FREQCORR_Msk instead */
  1609. #define RTC_MODE2_SYNCBUSY_CLOCK_Pos 3 /**< (RTC_MODE2_SYNCBUSY) CLOCK Register Busy Position */
  1610. #define RTC_MODE2_SYNCBUSY_CLOCK_Msk (_U_(0x1) << RTC_MODE2_SYNCBUSY_CLOCK_Pos) /**< (RTC_MODE2_SYNCBUSY) CLOCK Register Busy Mask */
  1611. #define RTC_MODE2_SYNCBUSY_CLOCK RTC_MODE2_SYNCBUSY_CLOCK_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_SYNCBUSY_CLOCK_Msk instead */
  1612. #define RTC_MODE2_SYNCBUSY_ALARM0_Pos 5 /**< (RTC_MODE2_SYNCBUSY) ALARM 0 Register Busy Position */
  1613. #define RTC_MODE2_SYNCBUSY_ALARM0_Msk (_U_(0x1) << RTC_MODE2_SYNCBUSY_ALARM0_Pos) /**< (RTC_MODE2_SYNCBUSY) ALARM 0 Register Busy Mask */
  1614. #define RTC_MODE2_SYNCBUSY_ALARM0 RTC_MODE2_SYNCBUSY_ALARM0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_SYNCBUSY_ALARM0_Msk instead */
  1615. #define RTC_MODE2_SYNCBUSY_MASK0_Pos 11 /**< (RTC_MODE2_SYNCBUSY) MASK 0 Register Busy Position */
  1616. #define RTC_MODE2_SYNCBUSY_MASK0_Msk (_U_(0x1) << RTC_MODE2_SYNCBUSY_MASK0_Pos) /**< (RTC_MODE2_SYNCBUSY) MASK 0 Register Busy Mask */
  1617. #define RTC_MODE2_SYNCBUSY_MASK0 RTC_MODE2_SYNCBUSY_MASK0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_SYNCBUSY_MASK0_Msk instead */
  1618. #define RTC_MODE2_SYNCBUSY_CLOCKSYNC_Pos 15 /**< (RTC_MODE2_SYNCBUSY) Clock Synchronization Enable Bit Busy Position */
  1619. #define RTC_MODE2_SYNCBUSY_CLOCKSYNC_Msk (_U_(0x1) << RTC_MODE2_SYNCBUSY_CLOCKSYNC_Pos) /**< (RTC_MODE2_SYNCBUSY) Clock Synchronization Enable Bit Busy Mask */
  1620. #define RTC_MODE2_SYNCBUSY_CLOCKSYNC RTC_MODE2_SYNCBUSY_CLOCKSYNC_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_SYNCBUSY_CLOCKSYNC_Msk instead */
  1621. #define RTC_MODE2_SYNCBUSY_GP0_Pos 16 /**< (RTC_MODE2_SYNCBUSY) General Purpose 0 Register Busy Position */
  1622. #define RTC_MODE2_SYNCBUSY_GP0_Msk (_U_(0x1) << RTC_MODE2_SYNCBUSY_GP0_Pos) /**< (RTC_MODE2_SYNCBUSY) General Purpose 0 Register Busy Mask */
  1623. #define RTC_MODE2_SYNCBUSY_GP0 RTC_MODE2_SYNCBUSY_GP0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_SYNCBUSY_GP0_Msk instead */
  1624. #define RTC_MODE2_SYNCBUSY_GP1_Pos 17 /**< (RTC_MODE2_SYNCBUSY) General Purpose 1 Register Busy Position */
  1625. #define RTC_MODE2_SYNCBUSY_GP1_Msk (_U_(0x1) << RTC_MODE2_SYNCBUSY_GP1_Pos) /**< (RTC_MODE2_SYNCBUSY) General Purpose 1 Register Busy Mask */
  1626. #define RTC_MODE2_SYNCBUSY_GP1 RTC_MODE2_SYNCBUSY_GP1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_MODE2_SYNCBUSY_GP1_Msk instead */
  1627. #define RTC_MODE2_SYNCBUSY_Msk _U_(0x3882F) /**< (RTC_MODE2_SYNCBUSY) Register Mask */
  1628. #define RTC_MODE2_SYNCBUSY_ALARM_Pos 5 /**< (RTC_MODE2_SYNCBUSY Position) ALARM x Register Busy */
  1629. #define RTC_MODE2_SYNCBUSY_ALARM_Msk (_U_(0x1) << RTC_MODE2_SYNCBUSY_ALARM_Pos) /**< (RTC_MODE2_SYNCBUSY Mask) ALARM */
  1630. #define RTC_MODE2_SYNCBUSY_ALARM(value) (RTC_MODE2_SYNCBUSY_ALARM_Msk & ((value) << RTC_MODE2_SYNCBUSY_ALARM_Pos))
  1631. #define RTC_MODE2_SYNCBUSY_MASK_Pos 11 /**< (RTC_MODE2_SYNCBUSY Position) MASK x Register Busy */
  1632. #define RTC_MODE2_SYNCBUSY_MASK_Msk (_U_(0x1) << RTC_MODE2_SYNCBUSY_MASK_Pos) /**< (RTC_MODE2_SYNCBUSY Mask) MASK */
  1633. #define RTC_MODE2_SYNCBUSY_MASK(value) (RTC_MODE2_SYNCBUSY_MASK_Msk & ((value) << RTC_MODE2_SYNCBUSY_MASK_Pos))
  1634. #define RTC_MODE2_SYNCBUSY_GP_Pos 16 /**< (RTC_MODE2_SYNCBUSY Position) General Purpose x Register Busy */
  1635. #define RTC_MODE2_SYNCBUSY_GP_Msk (_U_(0x3) << RTC_MODE2_SYNCBUSY_GP_Pos) /**< (RTC_MODE2_SYNCBUSY Mask) GP */
  1636. #define RTC_MODE2_SYNCBUSY_GP(value) (RTC_MODE2_SYNCBUSY_GP_Msk & ((value) << RTC_MODE2_SYNCBUSY_GP_Pos))
  1637. /* -------- RTC_FREQCORR : (RTC Offset: 0x14) (R/W 8) Frequency Correction -------- */
  1638. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1639. typedef union {
  1640. struct {
  1641. uint8_t VALUE:7; /**< bit: 0..6 Correction Value */
  1642. uint8_t SIGN:1; /**< bit: 7 Correction Sign */
  1643. } bit; /**< Structure used for bit access */
  1644. uint8_t reg; /**< Type used for register access */
  1645. } RTC_FREQCORR_Type;
  1646. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1647. #define RTC_FREQCORR_OFFSET (0x14) /**< (RTC_FREQCORR) Frequency Correction Offset */
  1648. #define RTC_FREQCORR_RESETVALUE _U_(0x00) /**< (RTC_FREQCORR) Frequency Correction Reset Value */
  1649. #define RTC_FREQCORR_VALUE_Pos 0 /**< (RTC_FREQCORR) Correction Value Position */
  1650. #define RTC_FREQCORR_VALUE_Msk (_U_(0x7F) << RTC_FREQCORR_VALUE_Pos) /**< (RTC_FREQCORR) Correction Value Mask */
  1651. #define RTC_FREQCORR_VALUE(value) (RTC_FREQCORR_VALUE_Msk & ((value) << RTC_FREQCORR_VALUE_Pos))
  1652. #define RTC_FREQCORR_SIGN_Pos 7 /**< (RTC_FREQCORR) Correction Sign Position */
  1653. #define RTC_FREQCORR_SIGN_Msk (_U_(0x1) << RTC_FREQCORR_SIGN_Pos) /**< (RTC_FREQCORR) Correction Sign Mask */
  1654. #define RTC_FREQCORR_SIGN RTC_FREQCORR_SIGN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_FREQCORR_SIGN_Msk instead */
  1655. #define RTC_FREQCORR_MASK _U_(0xFF) /**< \deprecated (RTC_FREQCORR) Register MASK (Use RTC_FREQCORR_Msk instead) */
  1656. #define RTC_FREQCORR_Msk _U_(0xFF) /**< (RTC_FREQCORR) Register Mask */
  1657. /* -------- RTC_MODE0_COUNT : (RTC Offset: 0x18) (R/W 32) MODE0 Counter Value -------- */
  1658. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1659. typedef union {
  1660. struct {
  1661. uint32_t COUNT:32; /**< bit: 0..31 Counter Value */
  1662. } bit; /**< Structure used for bit access */
  1663. uint32_t reg; /**< Type used for register access */
  1664. } RTC_MODE0_COUNT_Type;
  1665. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1666. #define RTC_MODE0_COUNT_OFFSET (0x18) /**< (RTC_MODE0_COUNT) MODE0 Counter Value Offset */
  1667. #define RTC_MODE0_COUNT_RESETVALUE _U_(0x00) /**< (RTC_MODE0_COUNT) MODE0 Counter Value Reset Value */
  1668. #define RTC_MODE0_COUNT_COUNT_Pos 0 /**< (RTC_MODE0_COUNT) Counter Value Position */
  1669. #define RTC_MODE0_COUNT_COUNT_Msk (_U_(0xFFFFFFFF) << RTC_MODE0_COUNT_COUNT_Pos) /**< (RTC_MODE0_COUNT) Counter Value Mask */
  1670. #define RTC_MODE0_COUNT_COUNT(value) (RTC_MODE0_COUNT_COUNT_Msk & ((value) << RTC_MODE0_COUNT_COUNT_Pos))
  1671. #define RTC_MODE0_COUNT_MASK _U_(0xFFFFFFFF) /**< \deprecated (RTC_MODE0_COUNT) Register MASK (Use RTC_MODE0_COUNT_Msk instead) */
  1672. #define RTC_MODE0_COUNT_Msk _U_(0xFFFFFFFF) /**< (RTC_MODE0_COUNT) Register Mask */
  1673. /* -------- RTC_MODE1_COUNT : (RTC Offset: 0x18) (R/W 16) MODE1 Counter Value -------- */
  1674. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1675. typedef union {
  1676. struct {
  1677. uint16_t COUNT:16; /**< bit: 0..15 Counter Value */
  1678. } bit; /**< Structure used for bit access */
  1679. uint16_t reg; /**< Type used for register access */
  1680. } RTC_MODE1_COUNT_Type;
  1681. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1682. #define RTC_MODE1_COUNT_OFFSET (0x18) /**< (RTC_MODE1_COUNT) MODE1 Counter Value Offset */
  1683. #define RTC_MODE1_COUNT_RESETVALUE _U_(0x00) /**< (RTC_MODE1_COUNT) MODE1 Counter Value Reset Value */
  1684. #define RTC_MODE1_COUNT_COUNT_Pos 0 /**< (RTC_MODE1_COUNT) Counter Value Position */
  1685. #define RTC_MODE1_COUNT_COUNT_Msk (_U_(0xFFFF) << RTC_MODE1_COUNT_COUNT_Pos) /**< (RTC_MODE1_COUNT) Counter Value Mask */
  1686. #define RTC_MODE1_COUNT_COUNT(value) (RTC_MODE1_COUNT_COUNT_Msk & ((value) << RTC_MODE1_COUNT_COUNT_Pos))
  1687. #define RTC_MODE1_COUNT_MASK _U_(0xFFFF) /**< \deprecated (RTC_MODE1_COUNT) Register MASK (Use RTC_MODE1_COUNT_Msk instead) */
  1688. #define RTC_MODE1_COUNT_Msk _U_(0xFFFF) /**< (RTC_MODE1_COUNT) Register Mask */
  1689. /* -------- RTC_MODE2_CLOCK : (RTC Offset: 0x18) (R/W 32) MODE2 Clock Value -------- */
  1690. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1691. typedef union {
  1692. struct {
  1693. uint32_t SECOND:6; /**< bit: 0..5 Second */
  1694. uint32_t MINUTE:6; /**< bit: 6..11 Minute */
  1695. uint32_t HOUR:5; /**< bit: 12..16 Hour */
  1696. uint32_t DAY:5; /**< bit: 17..21 Day */
  1697. uint32_t MONTH:4; /**< bit: 22..25 Month */
  1698. uint32_t YEAR:6; /**< bit: 26..31 Year */
  1699. } bit; /**< Structure used for bit access */
  1700. uint32_t reg; /**< Type used for register access */
  1701. } RTC_MODE2_CLOCK_Type;
  1702. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1703. #define RTC_MODE2_CLOCK_OFFSET (0x18) /**< (RTC_MODE2_CLOCK) MODE2 Clock Value Offset */
  1704. #define RTC_MODE2_CLOCK_RESETVALUE _U_(0x00) /**< (RTC_MODE2_CLOCK) MODE2 Clock Value Reset Value */
  1705. #define RTC_MODE2_CLOCK_SECOND_Pos 0 /**< (RTC_MODE2_CLOCK) Second Position */
  1706. #define RTC_MODE2_CLOCK_SECOND_Msk (_U_(0x3F) << RTC_MODE2_CLOCK_SECOND_Pos) /**< (RTC_MODE2_CLOCK) Second Mask */
  1707. #define RTC_MODE2_CLOCK_SECOND(value) (RTC_MODE2_CLOCK_SECOND_Msk & ((value) << RTC_MODE2_CLOCK_SECOND_Pos))
  1708. #define RTC_MODE2_CLOCK_MINUTE_Pos 6 /**< (RTC_MODE2_CLOCK) Minute Position */
  1709. #define RTC_MODE2_CLOCK_MINUTE_Msk (_U_(0x3F) << RTC_MODE2_CLOCK_MINUTE_Pos) /**< (RTC_MODE2_CLOCK) Minute Mask */
  1710. #define RTC_MODE2_CLOCK_MINUTE(value) (RTC_MODE2_CLOCK_MINUTE_Msk & ((value) << RTC_MODE2_CLOCK_MINUTE_Pos))
  1711. #define RTC_MODE2_CLOCK_HOUR_Pos 12 /**< (RTC_MODE2_CLOCK) Hour Position */
  1712. #define RTC_MODE2_CLOCK_HOUR_Msk (_U_(0x1F) << RTC_MODE2_CLOCK_HOUR_Pos) /**< (RTC_MODE2_CLOCK) Hour Mask */
  1713. #define RTC_MODE2_CLOCK_HOUR(value) (RTC_MODE2_CLOCK_HOUR_Msk & ((value) << RTC_MODE2_CLOCK_HOUR_Pos))
  1714. #define RTC_MODE2_CLOCK_DAY_Pos 17 /**< (RTC_MODE2_CLOCK) Day Position */
  1715. #define RTC_MODE2_CLOCK_DAY_Msk (_U_(0x1F) << RTC_MODE2_CLOCK_DAY_Pos) /**< (RTC_MODE2_CLOCK) Day Mask */
  1716. #define RTC_MODE2_CLOCK_DAY(value) (RTC_MODE2_CLOCK_DAY_Msk & ((value) << RTC_MODE2_CLOCK_DAY_Pos))
  1717. #define RTC_MODE2_CLOCK_MONTH_Pos 22 /**< (RTC_MODE2_CLOCK) Month Position */
  1718. #define RTC_MODE2_CLOCK_MONTH_Msk (_U_(0xF) << RTC_MODE2_CLOCK_MONTH_Pos) /**< (RTC_MODE2_CLOCK) Month Mask */
  1719. #define RTC_MODE2_CLOCK_MONTH(value) (RTC_MODE2_CLOCK_MONTH_Msk & ((value) << RTC_MODE2_CLOCK_MONTH_Pos))
  1720. #define RTC_MODE2_CLOCK_YEAR_Pos 26 /**< (RTC_MODE2_CLOCK) Year Position */
  1721. #define RTC_MODE2_CLOCK_YEAR_Msk (_U_(0x3F) << RTC_MODE2_CLOCK_YEAR_Pos) /**< (RTC_MODE2_CLOCK) Year Mask */
  1722. #define RTC_MODE2_CLOCK_YEAR(value) (RTC_MODE2_CLOCK_YEAR_Msk & ((value) << RTC_MODE2_CLOCK_YEAR_Pos))
  1723. #define RTC_MODE2_CLOCK_MASK _U_(0xFFFFFFFF) /**< \deprecated (RTC_MODE2_CLOCK) Register MASK (Use RTC_MODE2_CLOCK_Msk instead) */
  1724. #define RTC_MODE2_CLOCK_Msk _U_(0xFFFFFFFF) /**< (RTC_MODE2_CLOCK) Register Mask */
  1725. /* -------- RTC_MODE1_PER : (RTC Offset: 0x1c) (R/W 16) MODE1 Counter Period -------- */
  1726. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1727. typedef union {
  1728. struct {
  1729. uint16_t PER:16; /**< bit: 0..15 Counter Period */
  1730. } bit; /**< Structure used for bit access */
  1731. uint16_t reg; /**< Type used for register access */
  1732. } RTC_MODE1_PER_Type;
  1733. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1734. #define RTC_MODE1_PER_OFFSET (0x1C) /**< (RTC_MODE1_PER) MODE1 Counter Period Offset */
  1735. #define RTC_MODE1_PER_RESETVALUE _U_(0x00) /**< (RTC_MODE1_PER) MODE1 Counter Period Reset Value */
  1736. #define RTC_MODE1_PER_PER_Pos 0 /**< (RTC_MODE1_PER) Counter Period Position */
  1737. #define RTC_MODE1_PER_PER_Msk (_U_(0xFFFF) << RTC_MODE1_PER_PER_Pos) /**< (RTC_MODE1_PER) Counter Period Mask */
  1738. #define RTC_MODE1_PER_PER(value) (RTC_MODE1_PER_PER_Msk & ((value) << RTC_MODE1_PER_PER_Pos))
  1739. #define RTC_MODE1_PER_MASK _U_(0xFFFF) /**< \deprecated (RTC_MODE1_PER) Register MASK (Use RTC_MODE1_PER_Msk instead) */
  1740. #define RTC_MODE1_PER_Msk _U_(0xFFFF) /**< (RTC_MODE1_PER) Register Mask */
  1741. /* -------- RTC_MODE0_COMP : (RTC Offset: 0x20) (R/W 32) MODE0 Compare n Value -------- */
  1742. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1743. typedef union {
  1744. struct {
  1745. uint32_t COMP:32; /**< bit: 0..31 Compare Value */
  1746. } bit; /**< Structure used for bit access */
  1747. uint32_t reg; /**< Type used for register access */
  1748. } RTC_MODE0_COMP_Type;
  1749. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1750. #define RTC_MODE0_COMP_OFFSET (0x20) /**< (RTC_MODE0_COMP) MODE0 Compare n Value Offset */
  1751. #define RTC_MODE0_COMP_RESETVALUE _U_(0x00) /**< (RTC_MODE0_COMP) MODE0 Compare n Value Reset Value */
  1752. #define RTC_MODE0_COMP_COMP_Pos 0 /**< (RTC_MODE0_COMP) Compare Value Position */
  1753. #define RTC_MODE0_COMP_COMP_Msk (_U_(0xFFFFFFFF) << RTC_MODE0_COMP_COMP_Pos) /**< (RTC_MODE0_COMP) Compare Value Mask */
  1754. #define RTC_MODE0_COMP_COMP(value) (RTC_MODE0_COMP_COMP_Msk & ((value) << RTC_MODE0_COMP_COMP_Pos))
  1755. #define RTC_MODE0_COMP_MASK _U_(0xFFFFFFFF) /**< \deprecated (RTC_MODE0_COMP) Register MASK (Use RTC_MODE0_COMP_Msk instead) */
  1756. #define RTC_MODE0_COMP_Msk _U_(0xFFFFFFFF) /**< (RTC_MODE0_COMP) Register Mask */
  1757. /* -------- RTC_MODE1_COMP : (RTC Offset: 0x20) (R/W 16) MODE1 Compare n Value -------- */
  1758. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1759. typedef union {
  1760. struct {
  1761. uint16_t COMP:16; /**< bit: 0..15 Compare Value */
  1762. } bit; /**< Structure used for bit access */
  1763. uint16_t reg; /**< Type used for register access */
  1764. } RTC_MODE1_COMP_Type;
  1765. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1766. #define RTC_MODE1_COMP_OFFSET (0x20) /**< (RTC_MODE1_COMP) MODE1 Compare n Value Offset */
  1767. #define RTC_MODE1_COMP_RESETVALUE _U_(0x00) /**< (RTC_MODE1_COMP) MODE1 Compare n Value Reset Value */
  1768. #define RTC_MODE1_COMP_COMP_Pos 0 /**< (RTC_MODE1_COMP) Compare Value Position */
  1769. #define RTC_MODE1_COMP_COMP_Msk (_U_(0xFFFF) << RTC_MODE1_COMP_COMP_Pos) /**< (RTC_MODE1_COMP) Compare Value Mask */
  1770. #define RTC_MODE1_COMP_COMP(value) (RTC_MODE1_COMP_COMP_Msk & ((value) << RTC_MODE1_COMP_COMP_Pos))
  1771. #define RTC_MODE1_COMP_MASK _U_(0xFFFF) /**< \deprecated (RTC_MODE1_COMP) Register MASK (Use RTC_MODE1_COMP_Msk instead) */
  1772. #define RTC_MODE1_COMP_Msk _U_(0xFFFF) /**< (RTC_MODE1_COMP) Register Mask */
  1773. /* -------- RTC_GP : (RTC Offset: 0x40) (R/W 32) General Purpose -------- */
  1774. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1775. typedef union {
  1776. struct {
  1777. uint32_t GP:32; /**< bit: 0..31 General Purpose */
  1778. } bit; /**< Structure used for bit access */
  1779. uint32_t reg; /**< Type used for register access */
  1780. } RTC_GP_Type;
  1781. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1782. #define RTC_GP_OFFSET (0x40) /**< (RTC_GP) General Purpose Offset */
  1783. #define RTC_GP_RESETVALUE _U_(0x00) /**< (RTC_GP) General Purpose Reset Value */
  1784. #define RTC_GP_GP_Pos 0 /**< (RTC_GP) General Purpose Position */
  1785. #define RTC_GP_GP_Msk (_U_(0xFFFFFFFF) << RTC_GP_GP_Pos) /**< (RTC_GP) General Purpose Mask */
  1786. #define RTC_GP_GP(value) (RTC_GP_GP_Msk & ((value) << RTC_GP_GP_Pos))
  1787. #define RTC_GP_MASK _U_(0xFFFFFFFF) /**< \deprecated (RTC_GP) Register MASK (Use RTC_GP_Msk instead) */
  1788. #define RTC_GP_Msk _U_(0xFFFFFFFF) /**< (RTC_GP) Register Mask */
  1789. /* -------- RTC_TAMPCTRL : (RTC Offset: 0x60) (R/W 32) Tamper Control -------- */
  1790. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1791. typedef union {
  1792. struct {
  1793. uint32_t IN0ACT:2; /**< bit: 0..1 Tamper Input 0 Action */
  1794. uint32_t IN1ACT:2; /**< bit: 2..3 Tamper Input 1 Action */
  1795. uint32_t IN2ACT:2; /**< bit: 4..5 Tamper Input 2 Action */
  1796. uint32_t IN3ACT:2; /**< bit: 6..7 Tamper Input 3 Action */
  1797. uint32_t :8; /**< bit: 8..15 Reserved */
  1798. uint32_t TAMLVL0:1; /**< bit: 16 Tamper Level Select 0 */
  1799. uint32_t TAMLVL1:1; /**< bit: 17 Tamper Level Select 1 */
  1800. uint32_t TAMLVL2:1; /**< bit: 18 Tamper Level Select 2 */
  1801. uint32_t TAMLVL3:1; /**< bit: 19 Tamper Level Select 3 */
  1802. uint32_t :4; /**< bit: 20..23 Reserved */
  1803. uint32_t DEBNC0:1; /**< bit: 24 Debouncer Enable 0 */
  1804. uint32_t DEBNC1:1; /**< bit: 25 Debouncer Enable 1 */
  1805. uint32_t DEBNC2:1; /**< bit: 26 Debouncer Enable 2 */
  1806. uint32_t DEBNC3:1; /**< bit: 27 Debouncer Enable 3 */
  1807. uint32_t :4; /**< bit: 28..31 Reserved */
  1808. } bit; /**< Structure used for bit access */
  1809. struct {
  1810. uint32_t :16; /**< bit: 0..15 Reserved */
  1811. uint32_t TAMLVL:4; /**< bit: 16..19 Tamper Level Select x */
  1812. uint32_t :4; /**< bit: 20..23 Reserved */
  1813. uint32_t DEBNC:4; /**< bit: 24..27 Debouncer Enable 3 */
  1814. uint32_t :4; /**< bit: 28..31 Reserved */
  1815. } vec; /**< Structure used for vec access */
  1816. uint32_t reg; /**< Type used for register access */
  1817. } RTC_TAMPCTRL_Type;
  1818. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1819. #define RTC_TAMPCTRL_OFFSET (0x60) /**< (RTC_TAMPCTRL) Tamper Control Offset */
  1820. #define RTC_TAMPCTRL_RESETVALUE _U_(0x00) /**< (RTC_TAMPCTRL) Tamper Control Reset Value */
  1821. #define RTC_TAMPCTRL_IN0ACT_Pos 0 /**< (RTC_TAMPCTRL) Tamper Input 0 Action Position */
  1822. #define RTC_TAMPCTRL_IN0ACT_Msk (_U_(0x3) << RTC_TAMPCTRL_IN0ACT_Pos) /**< (RTC_TAMPCTRL) Tamper Input 0 Action Mask */
  1823. #define RTC_TAMPCTRL_IN0ACT(value) (RTC_TAMPCTRL_IN0ACT_Msk & ((value) << RTC_TAMPCTRL_IN0ACT_Pos))
  1824. #define RTC_TAMPCTRL_IN0ACT_OFF_Val _U_(0x0) /**< (RTC_TAMPCTRL) Off (Disabled) */
  1825. #define RTC_TAMPCTRL_IN0ACT_WAKE_Val _U_(0x1) /**< (RTC_TAMPCTRL) Wake and set Tamper flag */
  1826. #define RTC_TAMPCTRL_IN0ACT_CAPTURE_Val _U_(0x2) /**< (RTC_TAMPCTRL) Capture timestamp and set Tamper flag */
  1827. #define RTC_TAMPCTRL_IN0ACT_ACTL_Val _U_(0x3) /**< (RTC_TAMPCTRL) Compare IN0 to OUT. When a mismatch occurs, capture timestamp and set Tamper flag */
  1828. #define RTC_TAMPCTRL_IN0ACT_OFF (RTC_TAMPCTRL_IN0ACT_OFF_Val << RTC_TAMPCTRL_IN0ACT_Pos) /**< (RTC_TAMPCTRL) Off (Disabled) Position */
  1829. #define RTC_TAMPCTRL_IN0ACT_WAKE (RTC_TAMPCTRL_IN0ACT_WAKE_Val << RTC_TAMPCTRL_IN0ACT_Pos) /**< (RTC_TAMPCTRL) Wake and set Tamper flag Position */
  1830. #define RTC_TAMPCTRL_IN0ACT_CAPTURE (RTC_TAMPCTRL_IN0ACT_CAPTURE_Val << RTC_TAMPCTRL_IN0ACT_Pos) /**< (RTC_TAMPCTRL) Capture timestamp and set Tamper flag Position */
  1831. #define RTC_TAMPCTRL_IN0ACT_ACTL (RTC_TAMPCTRL_IN0ACT_ACTL_Val << RTC_TAMPCTRL_IN0ACT_Pos) /**< (RTC_TAMPCTRL) Compare IN0 to OUT. When a mismatch occurs, capture timestamp and set Tamper flag Position */
  1832. #define RTC_TAMPCTRL_IN1ACT_Pos 2 /**< (RTC_TAMPCTRL) Tamper Input 1 Action Position */
  1833. #define RTC_TAMPCTRL_IN1ACT_Msk (_U_(0x3) << RTC_TAMPCTRL_IN1ACT_Pos) /**< (RTC_TAMPCTRL) Tamper Input 1 Action Mask */
  1834. #define RTC_TAMPCTRL_IN1ACT(value) (RTC_TAMPCTRL_IN1ACT_Msk & ((value) << RTC_TAMPCTRL_IN1ACT_Pos))
  1835. #define RTC_TAMPCTRL_IN1ACT_OFF_Val _U_(0x0) /**< (RTC_TAMPCTRL) Off (Disabled) */
  1836. #define RTC_TAMPCTRL_IN1ACT_WAKE_Val _U_(0x1) /**< (RTC_TAMPCTRL) Wake and set Tamper flag */
  1837. #define RTC_TAMPCTRL_IN1ACT_CAPTURE_Val _U_(0x2) /**< (RTC_TAMPCTRL) Capture timestamp and set Tamper flag */
  1838. #define RTC_TAMPCTRL_IN1ACT_ACTL_Val _U_(0x3) /**< (RTC_TAMPCTRL) Compare IN1 to OUT. When a mismatch occurs, capture timestamp and set Tamper flag */
  1839. #define RTC_TAMPCTRL_IN1ACT_OFF (RTC_TAMPCTRL_IN1ACT_OFF_Val << RTC_TAMPCTRL_IN1ACT_Pos) /**< (RTC_TAMPCTRL) Off (Disabled) Position */
  1840. #define RTC_TAMPCTRL_IN1ACT_WAKE (RTC_TAMPCTRL_IN1ACT_WAKE_Val << RTC_TAMPCTRL_IN1ACT_Pos) /**< (RTC_TAMPCTRL) Wake and set Tamper flag Position */
  1841. #define RTC_TAMPCTRL_IN1ACT_CAPTURE (RTC_TAMPCTRL_IN1ACT_CAPTURE_Val << RTC_TAMPCTRL_IN1ACT_Pos) /**< (RTC_TAMPCTRL) Capture timestamp and set Tamper flag Position */
  1842. #define RTC_TAMPCTRL_IN1ACT_ACTL (RTC_TAMPCTRL_IN1ACT_ACTL_Val << RTC_TAMPCTRL_IN1ACT_Pos) /**< (RTC_TAMPCTRL) Compare IN1 to OUT. When a mismatch occurs, capture timestamp and set Tamper flag Position */
  1843. #define RTC_TAMPCTRL_IN2ACT_Pos 4 /**< (RTC_TAMPCTRL) Tamper Input 2 Action Position */
  1844. #define RTC_TAMPCTRL_IN2ACT_Msk (_U_(0x3) << RTC_TAMPCTRL_IN2ACT_Pos) /**< (RTC_TAMPCTRL) Tamper Input 2 Action Mask */
  1845. #define RTC_TAMPCTRL_IN2ACT(value) (RTC_TAMPCTRL_IN2ACT_Msk & ((value) << RTC_TAMPCTRL_IN2ACT_Pos))
  1846. #define RTC_TAMPCTRL_IN2ACT_OFF_Val _U_(0x0) /**< (RTC_TAMPCTRL) Off (Disabled) */
  1847. #define RTC_TAMPCTRL_IN2ACT_WAKE_Val _U_(0x1) /**< (RTC_TAMPCTRL) Wake and set Tamper flag */
  1848. #define RTC_TAMPCTRL_IN2ACT_CAPTURE_Val _U_(0x2) /**< (RTC_TAMPCTRL) Capture timestamp and set Tamper flag */
  1849. #define RTC_TAMPCTRL_IN2ACT_ACTL_Val _U_(0x3) /**< (RTC_TAMPCTRL) Compare IN2 to OUT. When a mismatch occurs, capture timestamp and set Tamper flag */
  1850. #define RTC_TAMPCTRL_IN2ACT_OFF (RTC_TAMPCTRL_IN2ACT_OFF_Val << RTC_TAMPCTRL_IN2ACT_Pos) /**< (RTC_TAMPCTRL) Off (Disabled) Position */
  1851. #define RTC_TAMPCTRL_IN2ACT_WAKE (RTC_TAMPCTRL_IN2ACT_WAKE_Val << RTC_TAMPCTRL_IN2ACT_Pos) /**< (RTC_TAMPCTRL) Wake and set Tamper flag Position */
  1852. #define RTC_TAMPCTRL_IN2ACT_CAPTURE (RTC_TAMPCTRL_IN2ACT_CAPTURE_Val << RTC_TAMPCTRL_IN2ACT_Pos) /**< (RTC_TAMPCTRL) Capture timestamp and set Tamper flag Position */
  1853. #define RTC_TAMPCTRL_IN2ACT_ACTL (RTC_TAMPCTRL_IN2ACT_ACTL_Val << RTC_TAMPCTRL_IN2ACT_Pos) /**< (RTC_TAMPCTRL) Compare IN2 to OUT. When a mismatch occurs, capture timestamp and set Tamper flag Position */
  1854. #define RTC_TAMPCTRL_IN3ACT_Pos 6 /**< (RTC_TAMPCTRL) Tamper Input 3 Action Position */
  1855. #define RTC_TAMPCTRL_IN3ACT_Msk (_U_(0x3) << RTC_TAMPCTRL_IN3ACT_Pos) /**< (RTC_TAMPCTRL) Tamper Input 3 Action Mask */
  1856. #define RTC_TAMPCTRL_IN3ACT(value) (RTC_TAMPCTRL_IN3ACT_Msk & ((value) << RTC_TAMPCTRL_IN3ACT_Pos))
  1857. #define RTC_TAMPCTRL_IN3ACT_OFF_Val _U_(0x0) /**< (RTC_TAMPCTRL) Off (Disabled) */
  1858. #define RTC_TAMPCTRL_IN3ACT_WAKE_Val _U_(0x1) /**< (RTC_TAMPCTRL) Wake and set Tamper flag */
  1859. #define RTC_TAMPCTRL_IN3ACT_CAPTURE_Val _U_(0x2) /**< (RTC_TAMPCTRL) Capture timestamp and set Tamper flag */
  1860. #define RTC_TAMPCTRL_IN3ACT_ACTL_Val _U_(0x3) /**< (RTC_TAMPCTRL) Compare IN3 to OUT. When a mismatch occurs, capture timestamp and set Tamper flag */
  1861. #define RTC_TAMPCTRL_IN3ACT_OFF (RTC_TAMPCTRL_IN3ACT_OFF_Val << RTC_TAMPCTRL_IN3ACT_Pos) /**< (RTC_TAMPCTRL) Off (Disabled) Position */
  1862. #define RTC_TAMPCTRL_IN3ACT_WAKE (RTC_TAMPCTRL_IN3ACT_WAKE_Val << RTC_TAMPCTRL_IN3ACT_Pos) /**< (RTC_TAMPCTRL) Wake and set Tamper flag Position */
  1863. #define RTC_TAMPCTRL_IN3ACT_CAPTURE (RTC_TAMPCTRL_IN3ACT_CAPTURE_Val << RTC_TAMPCTRL_IN3ACT_Pos) /**< (RTC_TAMPCTRL) Capture timestamp and set Tamper flag Position */
  1864. #define RTC_TAMPCTRL_IN3ACT_ACTL (RTC_TAMPCTRL_IN3ACT_ACTL_Val << RTC_TAMPCTRL_IN3ACT_Pos) /**< (RTC_TAMPCTRL) Compare IN3 to OUT. When a mismatch occurs, capture timestamp and set Tamper flag Position */
  1865. #define RTC_TAMPCTRL_TAMLVL0_Pos 16 /**< (RTC_TAMPCTRL) Tamper Level Select 0 Position */
  1866. #define RTC_TAMPCTRL_TAMLVL0_Msk (_U_(0x1) << RTC_TAMPCTRL_TAMLVL0_Pos) /**< (RTC_TAMPCTRL) Tamper Level Select 0 Mask */
  1867. #define RTC_TAMPCTRL_TAMLVL0 RTC_TAMPCTRL_TAMLVL0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_TAMPCTRL_TAMLVL0_Msk instead */
  1868. #define RTC_TAMPCTRL_TAMLVL1_Pos 17 /**< (RTC_TAMPCTRL) Tamper Level Select 1 Position */
  1869. #define RTC_TAMPCTRL_TAMLVL1_Msk (_U_(0x1) << RTC_TAMPCTRL_TAMLVL1_Pos) /**< (RTC_TAMPCTRL) Tamper Level Select 1 Mask */
  1870. #define RTC_TAMPCTRL_TAMLVL1 RTC_TAMPCTRL_TAMLVL1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_TAMPCTRL_TAMLVL1_Msk instead */
  1871. #define RTC_TAMPCTRL_TAMLVL2_Pos 18 /**< (RTC_TAMPCTRL) Tamper Level Select 2 Position */
  1872. #define RTC_TAMPCTRL_TAMLVL2_Msk (_U_(0x1) << RTC_TAMPCTRL_TAMLVL2_Pos) /**< (RTC_TAMPCTRL) Tamper Level Select 2 Mask */
  1873. #define RTC_TAMPCTRL_TAMLVL2 RTC_TAMPCTRL_TAMLVL2_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_TAMPCTRL_TAMLVL2_Msk instead */
  1874. #define RTC_TAMPCTRL_TAMLVL3_Pos 19 /**< (RTC_TAMPCTRL) Tamper Level Select 3 Position */
  1875. #define RTC_TAMPCTRL_TAMLVL3_Msk (_U_(0x1) << RTC_TAMPCTRL_TAMLVL3_Pos) /**< (RTC_TAMPCTRL) Tamper Level Select 3 Mask */
  1876. #define RTC_TAMPCTRL_TAMLVL3 RTC_TAMPCTRL_TAMLVL3_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_TAMPCTRL_TAMLVL3_Msk instead */
  1877. #define RTC_TAMPCTRL_DEBNC0_Pos 24 /**< (RTC_TAMPCTRL) Debouncer Enable 0 Position */
  1878. #define RTC_TAMPCTRL_DEBNC0_Msk (_U_(0x1) << RTC_TAMPCTRL_DEBNC0_Pos) /**< (RTC_TAMPCTRL) Debouncer Enable 0 Mask */
  1879. #define RTC_TAMPCTRL_DEBNC0 RTC_TAMPCTRL_DEBNC0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_TAMPCTRL_DEBNC0_Msk instead */
  1880. #define RTC_TAMPCTRL_DEBNC1_Pos 25 /**< (RTC_TAMPCTRL) Debouncer Enable 1 Position */
  1881. #define RTC_TAMPCTRL_DEBNC1_Msk (_U_(0x1) << RTC_TAMPCTRL_DEBNC1_Pos) /**< (RTC_TAMPCTRL) Debouncer Enable 1 Mask */
  1882. #define RTC_TAMPCTRL_DEBNC1 RTC_TAMPCTRL_DEBNC1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_TAMPCTRL_DEBNC1_Msk instead */
  1883. #define RTC_TAMPCTRL_DEBNC2_Pos 26 /**< (RTC_TAMPCTRL) Debouncer Enable 2 Position */
  1884. #define RTC_TAMPCTRL_DEBNC2_Msk (_U_(0x1) << RTC_TAMPCTRL_DEBNC2_Pos) /**< (RTC_TAMPCTRL) Debouncer Enable 2 Mask */
  1885. #define RTC_TAMPCTRL_DEBNC2 RTC_TAMPCTRL_DEBNC2_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_TAMPCTRL_DEBNC2_Msk instead */
  1886. #define RTC_TAMPCTRL_DEBNC3_Pos 27 /**< (RTC_TAMPCTRL) Debouncer Enable 3 Position */
  1887. #define RTC_TAMPCTRL_DEBNC3_Msk (_U_(0x1) << RTC_TAMPCTRL_DEBNC3_Pos) /**< (RTC_TAMPCTRL) Debouncer Enable 3 Mask */
  1888. #define RTC_TAMPCTRL_DEBNC3 RTC_TAMPCTRL_DEBNC3_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_TAMPCTRL_DEBNC3_Msk instead */
  1889. #define RTC_TAMPCTRL_MASK _U_(0xF0F00FF) /**< \deprecated (RTC_TAMPCTRL) Register MASK (Use RTC_TAMPCTRL_Msk instead) */
  1890. #define RTC_TAMPCTRL_Msk _U_(0xF0F00FF) /**< (RTC_TAMPCTRL) Register Mask */
  1891. #define RTC_TAMPCTRL_TAMLVL_Pos 16 /**< (RTC_TAMPCTRL Position) Tamper Level Select x */
  1892. #define RTC_TAMPCTRL_TAMLVL_Msk (_U_(0xF) << RTC_TAMPCTRL_TAMLVL_Pos) /**< (RTC_TAMPCTRL Mask) TAMLVL */
  1893. #define RTC_TAMPCTRL_TAMLVL(value) (RTC_TAMPCTRL_TAMLVL_Msk & ((value) << RTC_TAMPCTRL_TAMLVL_Pos))
  1894. #define RTC_TAMPCTRL_DEBNC_Pos 24 /**< (RTC_TAMPCTRL Position) Debouncer Enable 3 */
  1895. #define RTC_TAMPCTRL_DEBNC_Msk (_U_(0xF) << RTC_TAMPCTRL_DEBNC_Pos) /**< (RTC_TAMPCTRL Mask) DEBNC */
  1896. #define RTC_TAMPCTRL_DEBNC(value) (RTC_TAMPCTRL_DEBNC_Msk & ((value) << RTC_TAMPCTRL_DEBNC_Pos))
  1897. /* -------- RTC_MODE0_TIMESTAMP : (RTC Offset: 0x64) (R/ 32) MODE0 Timestamp -------- */
  1898. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1899. typedef union {
  1900. struct {
  1901. uint32_t COUNT:32; /**< bit: 0..31 Count Timestamp Value */
  1902. } bit; /**< Structure used for bit access */
  1903. uint32_t reg; /**< Type used for register access */
  1904. } RTC_MODE0_TIMESTAMP_Type;
  1905. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1906. #define RTC_MODE0_TIMESTAMP_OFFSET (0x64) /**< (RTC_MODE0_TIMESTAMP) MODE0 Timestamp Offset */
  1907. #define RTC_MODE0_TIMESTAMP_RESETVALUE _U_(0x00) /**< (RTC_MODE0_TIMESTAMP) MODE0 Timestamp Reset Value */
  1908. #define RTC_MODE0_TIMESTAMP_COUNT_Pos 0 /**< (RTC_MODE0_TIMESTAMP) Count Timestamp Value Position */
  1909. #define RTC_MODE0_TIMESTAMP_COUNT_Msk (_U_(0xFFFFFFFF) << RTC_MODE0_TIMESTAMP_COUNT_Pos) /**< (RTC_MODE0_TIMESTAMP) Count Timestamp Value Mask */
  1910. #define RTC_MODE0_TIMESTAMP_COUNT(value) (RTC_MODE0_TIMESTAMP_COUNT_Msk & ((value) << RTC_MODE0_TIMESTAMP_COUNT_Pos))
  1911. #define RTC_MODE0_TIMESTAMP_MASK _U_(0xFFFFFFFF) /**< \deprecated (RTC_MODE0_TIMESTAMP) Register MASK (Use RTC_MODE0_TIMESTAMP_Msk instead) */
  1912. #define RTC_MODE0_TIMESTAMP_Msk _U_(0xFFFFFFFF) /**< (RTC_MODE0_TIMESTAMP) Register Mask */
  1913. /* -------- RTC_MODE1_TIMESTAMP : (RTC Offset: 0x64) (R/ 32) MODE1 Timestamp -------- */
  1914. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1915. typedef union {
  1916. struct {
  1917. uint32_t COUNT:16; /**< bit: 0..15 Count Timestamp Value */
  1918. uint32_t :16; /**< bit: 16..31 Reserved */
  1919. } bit; /**< Structure used for bit access */
  1920. uint32_t reg; /**< Type used for register access */
  1921. } RTC_MODE1_TIMESTAMP_Type;
  1922. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1923. #define RTC_MODE1_TIMESTAMP_OFFSET (0x64) /**< (RTC_MODE1_TIMESTAMP) MODE1 Timestamp Offset */
  1924. #define RTC_MODE1_TIMESTAMP_RESETVALUE _U_(0x00) /**< (RTC_MODE1_TIMESTAMP) MODE1 Timestamp Reset Value */
  1925. #define RTC_MODE1_TIMESTAMP_COUNT_Pos 0 /**< (RTC_MODE1_TIMESTAMP) Count Timestamp Value Position */
  1926. #define RTC_MODE1_TIMESTAMP_COUNT_Msk (_U_(0xFFFF) << RTC_MODE1_TIMESTAMP_COUNT_Pos) /**< (RTC_MODE1_TIMESTAMP) Count Timestamp Value Mask */
  1927. #define RTC_MODE1_TIMESTAMP_COUNT(value) (RTC_MODE1_TIMESTAMP_COUNT_Msk & ((value) << RTC_MODE1_TIMESTAMP_COUNT_Pos))
  1928. #define RTC_MODE1_TIMESTAMP_MASK _U_(0xFFFF) /**< \deprecated (RTC_MODE1_TIMESTAMP) Register MASK (Use RTC_MODE1_TIMESTAMP_Msk instead) */
  1929. #define RTC_MODE1_TIMESTAMP_Msk _U_(0xFFFF) /**< (RTC_MODE1_TIMESTAMP) Register Mask */
  1930. /* -------- RTC_MODE2_TIMESTAMP : (RTC Offset: 0x64) (R/ 32) MODE2 Timestamp -------- */
  1931. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1932. typedef union {
  1933. struct {
  1934. uint32_t SECOND:6; /**< bit: 0..5 Second Timestamp Value */
  1935. uint32_t MINUTE:6; /**< bit: 6..11 Minute Timestamp Value */
  1936. uint32_t HOUR:5; /**< bit: 12..16 Hour Timestamp Value */
  1937. uint32_t DAY:5; /**< bit: 17..21 Day Timestamp Value */
  1938. uint32_t MONTH:4; /**< bit: 22..25 Month Timestamp Value */
  1939. uint32_t YEAR:6; /**< bit: 26..31 Year Timestamp Value */
  1940. } bit; /**< Structure used for bit access */
  1941. uint32_t reg; /**< Type used for register access */
  1942. } RTC_MODE2_TIMESTAMP_Type;
  1943. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1944. #define RTC_MODE2_TIMESTAMP_OFFSET (0x64) /**< (RTC_MODE2_TIMESTAMP) MODE2 Timestamp Offset */
  1945. #define RTC_MODE2_TIMESTAMP_RESETVALUE _U_(0x00) /**< (RTC_MODE2_TIMESTAMP) MODE2 Timestamp Reset Value */
  1946. #define RTC_MODE2_TIMESTAMP_SECOND_Pos 0 /**< (RTC_MODE2_TIMESTAMP) Second Timestamp Value Position */
  1947. #define RTC_MODE2_TIMESTAMP_SECOND_Msk (_U_(0x3F) << RTC_MODE2_TIMESTAMP_SECOND_Pos) /**< (RTC_MODE2_TIMESTAMP) Second Timestamp Value Mask */
  1948. #define RTC_MODE2_TIMESTAMP_SECOND(value) (RTC_MODE2_TIMESTAMP_SECOND_Msk & ((value) << RTC_MODE2_TIMESTAMP_SECOND_Pos))
  1949. #define RTC_MODE2_TIMESTAMP_MINUTE_Pos 6 /**< (RTC_MODE2_TIMESTAMP) Minute Timestamp Value Position */
  1950. #define RTC_MODE2_TIMESTAMP_MINUTE_Msk (_U_(0x3F) << RTC_MODE2_TIMESTAMP_MINUTE_Pos) /**< (RTC_MODE2_TIMESTAMP) Minute Timestamp Value Mask */
  1951. #define RTC_MODE2_TIMESTAMP_MINUTE(value) (RTC_MODE2_TIMESTAMP_MINUTE_Msk & ((value) << RTC_MODE2_TIMESTAMP_MINUTE_Pos))
  1952. #define RTC_MODE2_TIMESTAMP_HOUR_Pos 12 /**< (RTC_MODE2_TIMESTAMP) Hour Timestamp Value Position */
  1953. #define RTC_MODE2_TIMESTAMP_HOUR_Msk (_U_(0x1F) << RTC_MODE2_TIMESTAMP_HOUR_Pos) /**< (RTC_MODE2_TIMESTAMP) Hour Timestamp Value Mask */
  1954. #define RTC_MODE2_TIMESTAMP_HOUR(value) (RTC_MODE2_TIMESTAMP_HOUR_Msk & ((value) << RTC_MODE2_TIMESTAMP_HOUR_Pos))
  1955. #define RTC_MODE2_TIMESTAMP_DAY_Pos 17 /**< (RTC_MODE2_TIMESTAMP) Day Timestamp Value Position */
  1956. #define RTC_MODE2_TIMESTAMP_DAY_Msk (_U_(0x1F) << RTC_MODE2_TIMESTAMP_DAY_Pos) /**< (RTC_MODE2_TIMESTAMP) Day Timestamp Value Mask */
  1957. #define RTC_MODE2_TIMESTAMP_DAY(value) (RTC_MODE2_TIMESTAMP_DAY_Msk & ((value) << RTC_MODE2_TIMESTAMP_DAY_Pos))
  1958. #define RTC_MODE2_TIMESTAMP_MONTH_Pos 22 /**< (RTC_MODE2_TIMESTAMP) Month Timestamp Value Position */
  1959. #define RTC_MODE2_TIMESTAMP_MONTH_Msk (_U_(0xF) << RTC_MODE2_TIMESTAMP_MONTH_Pos) /**< (RTC_MODE2_TIMESTAMP) Month Timestamp Value Mask */
  1960. #define RTC_MODE2_TIMESTAMP_MONTH(value) (RTC_MODE2_TIMESTAMP_MONTH_Msk & ((value) << RTC_MODE2_TIMESTAMP_MONTH_Pos))
  1961. #define RTC_MODE2_TIMESTAMP_YEAR_Pos 26 /**< (RTC_MODE2_TIMESTAMP) Year Timestamp Value Position */
  1962. #define RTC_MODE2_TIMESTAMP_YEAR_Msk (_U_(0x3F) << RTC_MODE2_TIMESTAMP_YEAR_Pos) /**< (RTC_MODE2_TIMESTAMP) Year Timestamp Value Mask */
  1963. #define RTC_MODE2_TIMESTAMP_YEAR(value) (RTC_MODE2_TIMESTAMP_YEAR_Msk & ((value) << RTC_MODE2_TIMESTAMP_YEAR_Pos))
  1964. #define RTC_MODE2_TIMESTAMP_MASK _U_(0xFFFFFFFF) /**< \deprecated (RTC_MODE2_TIMESTAMP) Register MASK (Use RTC_MODE2_TIMESTAMP_Msk instead) */
  1965. #define RTC_MODE2_TIMESTAMP_Msk _U_(0xFFFFFFFF) /**< (RTC_MODE2_TIMESTAMP) Register Mask */
  1966. /* -------- RTC_TAMPID : (RTC Offset: 0x68) (R/W 32) Tamper ID -------- */
  1967. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  1968. typedef union {
  1969. struct {
  1970. uint32_t TAMPID0:1; /**< bit: 0 Tamper Input 0 Detected */
  1971. uint32_t TAMPID1:1; /**< bit: 1 Tamper Input 1 Detected */
  1972. uint32_t TAMPID2:1; /**< bit: 2 Tamper Input 2 Detected */
  1973. uint32_t TAMPID3:1; /**< bit: 3 Tamper Input 3 Detected */
  1974. uint32_t :27; /**< bit: 4..30 Reserved */
  1975. uint32_t TAMPEVT:1; /**< bit: 31 Tamper Event Detected */
  1976. } bit; /**< Structure used for bit access */
  1977. struct {
  1978. uint32_t TAMPID:4; /**< bit: 0..3 Tamper Input x Detected */
  1979. uint32_t :28; /**< bit: 4..31 Reserved */
  1980. } vec; /**< Structure used for vec access */
  1981. uint32_t reg; /**< Type used for register access */
  1982. } RTC_TAMPID_Type;
  1983. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  1984. #define RTC_TAMPID_OFFSET (0x68) /**< (RTC_TAMPID) Tamper ID Offset */
  1985. #define RTC_TAMPID_RESETVALUE _U_(0x00) /**< (RTC_TAMPID) Tamper ID Reset Value */
  1986. #define RTC_TAMPID_TAMPID0_Pos 0 /**< (RTC_TAMPID) Tamper Input 0 Detected Position */
  1987. #define RTC_TAMPID_TAMPID0_Msk (_U_(0x1) << RTC_TAMPID_TAMPID0_Pos) /**< (RTC_TAMPID) Tamper Input 0 Detected Mask */
  1988. #define RTC_TAMPID_TAMPID0 RTC_TAMPID_TAMPID0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_TAMPID_TAMPID0_Msk instead */
  1989. #define RTC_TAMPID_TAMPID1_Pos 1 /**< (RTC_TAMPID) Tamper Input 1 Detected Position */
  1990. #define RTC_TAMPID_TAMPID1_Msk (_U_(0x1) << RTC_TAMPID_TAMPID1_Pos) /**< (RTC_TAMPID) Tamper Input 1 Detected Mask */
  1991. #define RTC_TAMPID_TAMPID1 RTC_TAMPID_TAMPID1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_TAMPID_TAMPID1_Msk instead */
  1992. #define RTC_TAMPID_TAMPID2_Pos 2 /**< (RTC_TAMPID) Tamper Input 2 Detected Position */
  1993. #define RTC_TAMPID_TAMPID2_Msk (_U_(0x1) << RTC_TAMPID_TAMPID2_Pos) /**< (RTC_TAMPID) Tamper Input 2 Detected Mask */
  1994. #define RTC_TAMPID_TAMPID2 RTC_TAMPID_TAMPID2_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_TAMPID_TAMPID2_Msk instead */
  1995. #define RTC_TAMPID_TAMPID3_Pos 3 /**< (RTC_TAMPID) Tamper Input 3 Detected Position */
  1996. #define RTC_TAMPID_TAMPID3_Msk (_U_(0x1) << RTC_TAMPID_TAMPID3_Pos) /**< (RTC_TAMPID) Tamper Input 3 Detected Mask */
  1997. #define RTC_TAMPID_TAMPID3 RTC_TAMPID_TAMPID3_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_TAMPID_TAMPID3_Msk instead */
  1998. #define RTC_TAMPID_TAMPEVT_Pos 31 /**< (RTC_TAMPID) Tamper Event Detected Position */
  1999. #define RTC_TAMPID_TAMPEVT_Msk (_U_(0x1) << RTC_TAMPID_TAMPEVT_Pos) /**< (RTC_TAMPID) Tamper Event Detected Mask */
  2000. #define RTC_TAMPID_TAMPEVT RTC_TAMPID_TAMPEVT_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_TAMPID_TAMPEVT_Msk instead */
  2001. #define RTC_TAMPID_MASK _U_(0x8000000F) /**< \deprecated (RTC_TAMPID) Register MASK (Use RTC_TAMPID_Msk instead) */
  2002. #define RTC_TAMPID_Msk _U_(0x8000000F) /**< (RTC_TAMPID) Register Mask */
  2003. #define RTC_TAMPID_TAMPID_Pos 0 /**< (RTC_TAMPID Position) Tamper Input x Detected */
  2004. #define RTC_TAMPID_TAMPID_Msk (_U_(0xF) << RTC_TAMPID_TAMPID_Pos) /**< (RTC_TAMPID Mask) TAMPID */
  2005. #define RTC_TAMPID_TAMPID(value) (RTC_TAMPID_TAMPID_Msk & ((value) << RTC_TAMPID_TAMPID_Pos))
  2006. /* -------- RTC_TAMPCTRLB : (RTC Offset: 0x6c) (R/W 32) Tamper Control B -------- */
  2007. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  2008. typedef union {
  2009. struct {
  2010. uint32_t ALSI0:1; /**< bit: 0 Active Layer Select Internal 0 */
  2011. uint32_t ALSI1:1; /**< bit: 1 Active Layer Select Internal 1 */
  2012. uint32_t ALSI2:1; /**< bit: 2 Active Layer Select Internal 2 */
  2013. uint32_t ALSI3:1; /**< bit: 3 Active Layer Select Internal 3 */
  2014. uint32_t :28; /**< bit: 4..31 Reserved */
  2015. } bit; /**< Structure used for bit access */
  2016. struct {
  2017. uint32_t ALSI:4; /**< bit: 0..3 Active Layer Select Internal 3 */
  2018. uint32_t :28; /**< bit: 4..31 Reserved */
  2019. } vec; /**< Structure used for vec access */
  2020. uint32_t reg; /**< Type used for register access */
  2021. } RTC_TAMPCTRLB_Type;
  2022. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  2023. #define RTC_TAMPCTRLB_OFFSET (0x6C) /**< (RTC_TAMPCTRLB) Tamper Control B Offset */
  2024. #define RTC_TAMPCTRLB_RESETVALUE _U_(0x00) /**< (RTC_TAMPCTRLB) Tamper Control B Reset Value */
  2025. #define RTC_TAMPCTRLB_ALSI0_Pos 0 /**< (RTC_TAMPCTRLB) Active Layer Select Internal 0 Position */
  2026. #define RTC_TAMPCTRLB_ALSI0_Msk (_U_(0x1) << RTC_TAMPCTRLB_ALSI0_Pos) /**< (RTC_TAMPCTRLB) Active Layer Select Internal 0 Mask */
  2027. #define RTC_TAMPCTRLB_ALSI0 RTC_TAMPCTRLB_ALSI0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_TAMPCTRLB_ALSI0_Msk instead */
  2028. #define RTC_TAMPCTRLB_ALSI1_Pos 1 /**< (RTC_TAMPCTRLB) Active Layer Select Internal 1 Position */
  2029. #define RTC_TAMPCTRLB_ALSI1_Msk (_U_(0x1) << RTC_TAMPCTRLB_ALSI1_Pos) /**< (RTC_TAMPCTRLB) Active Layer Select Internal 1 Mask */
  2030. #define RTC_TAMPCTRLB_ALSI1 RTC_TAMPCTRLB_ALSI1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_TAMPCTRLB_ALSI1_Msk instead */
  2031. #define RTC_TAMPCTRLB_ALSI2_Pos 2 /**< (RTC_TAMPCTRLB) Active Layer Select Internal 2 Position */
  2032. #define RTC_TAMPCTRLB_ALSI2_Msk (_U_(0x1) << RTC_TAMPCTRLB_ALSI2_Pos) /**< (RTC_TAMPCTRLB) Active Layer Select Internal 2 Mask */
  2033. #define RTC_TAMPCTRLB_ALSI2 RTC_TAMPCTRLB_ALSI2_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_TAMPCTRLB_ALSI2_Msk instead */
  2034. #define RTC_TAMPCTRLB_ALSI3_Pos 3 /**< (RTC_TAMPCTRLB) Active Layer Select Internal 3 Position */
  2035. #define RTC_TAMPCTRLB_ALSI3_Msk (_U_(0x1) << RTC_TAMPCTRLB_ALSI3_Pos) /**< (RTC_TAMPCTRLB) Active Layer Select Internal 3 Mask */
  2036. #define RTC_TAMPCTRLB_ALSI3 RTC_TAMPCTRLB_ALSI3_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use RTC_TAMPCTRLB_ALSI3_Msk instead */
  2037. #define RTC_TAMPCTRLB_MASK _U_(0x0F) /**< \deprecated (RTC_TAMPCTRLB) Register MASK (Use RTC_TAMPCTRLB_Msk instead) */
  2038. #define RTC_TAMPCTRLB_Msk _U_(0x0F) /**< (RTC_TAMPCTRLB) Register Mask */
  2039. #define RTC_TAMPCTRLB_ALSI_Pos 0 /**< (RTC_TAMPCTRLB Position) Active Layer Select Internal 3 */
  2040. #define RTC_TAMPCTRLB_ALSI_Msk (_U_(0xF) << RTC_TAMPCTRLB_ALSI_Pos) /**< (RTC_TAMPCTRLB Mask) ALSI */
  2041. #define RTC_TAMPCTRLB_ALSI(value) (RTC_TAMPCTRLB_ALSI_Msk & ((value) << RTC_TAMPCTRLB_ALSI_Pos))
  2042. #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  2043. /** \brief MODE2_ALARM hardware registers */
  2044. typedef struct {
  2045. __IO RTC_MODE2_ALARM_Type ALARM; /**< Offset: 0x00 (R/W 32) MODE2_ALARM Alarm n Value */
  2046. __IO RTC_MODE2_MASK_Type MASK; /**< Offset: 0x04 (R/W 8) MODE2_ALARM Alarm n Mask */
  2047. __I uint8_t Reserved1[3];
  2048. } RtcMode2Alarm;
  2049. /** \brief RTC hardware registers */
  2050. typedef struct { /* Real-Time Counter */
  2051. __IO RTC_MODE0_CTRLA_Type CTRLA; /**< Offset: 0x00 (R/W 16) MODE0 Control A */
  2052. __IO RTC_MODE0_CTRLB_Type CTRLB; /**< Offset: 0x02 (R/W 16) MODE0 Control B */
  2053. __IO RTC_MODE0_EVCTRL_Type EVCTRL; /**< Offset: 0x04 (R/W 32) MODE0 Event Control */
  2054. __IO RTC_MODE0_INTENCLR_Type INTENCLR; /**< Offset: 0x08 (R/W 16) MODE0 Interrupt Enable Clear */
  2055. __IO RTC_MODE0_INTENSET_Type INTENSET; /**< Offset: 0x0A (R/W 16) MODE0 Interrupt Enable Set */
  2056. __IO RTC_MODE0_INTFLAG_Type INTFLAG; /**< Offset: 0x0C (R/W 16) MODE0 Interrupt Flag Status and Clear */
  2057. __IO RTC_DBGCTRL_Type DBGCTRL; /**< Offset: 0x0E (R/W 8) Debug Control */
  2058. __I uint8_t Reserved1[1];
  2059. __I RTC_MODE0_SYNCBUSY_Type SYNCBUSY; /**< Offset: 0x10 (R/ 32) MODE0 Synchronization Busy Status */
  2060. __IO RTC_FREQCORR_Type FREQCORR; /**< Offset: 0x14 (R/W 8) Frequency Correction */
  2061. __I uint8_t Reserved2[3];
  2062. __IO RTC_MODE0_COUNT_Type COUNT; /**< Offset: 0x18 (R/W 32) MODE0 Counter Value */
  2063. __I uint8_t Reserved3[4];
  2064. __IO RTC_MODE0_COMP_Type COMP[1]; /**< Offset: 0x20 (R/W 32) MODE0 Compare n Value */
  2065. __I uint8_t Reserved4[28];
  2066. __IO RTC_GP_Type GP[2]; /**< Offset: 0x40 (R/W 32) General Purpose */
  2067. __I uint8_t Reserved5[24];
  2068. __IO RTC_TAMPCTRL_Type TAMPCTRL; /**< Offset: 0x60 (R/W 32) Tamper Control */
  2069. __I RTC_MODE0_TIMESTAMP_Type TIMESTAMP; /**< Offset: 0x64 (R/ 32) MODE0 Timestamp */
  2070. __IO RTC_TAMPID_Type TAMPID; /**< Offset: 0x68 (R/W 32) Tamper ID */
  2071. __IO RTC_TAMPCTRLB_Type TAMPCTRLB; /**< Offset: 0x6C (R/W 32) Tamper Control B */
  2072. } RtcMode0;
  2073. /** \brief RTC hardware registers */
  2074. typedef struct { /* Real-Time Counter */
  2075. __IO RTC_MODE1_CTRLA_Type CTRLA; /**< Offset: 0x00 (R/W 16) MODE1 Control A */
  2076. __IO RTC_MODE1_CTRLB_Type CTRLB; /**< Offset: 0x02 (R/W 16) MODE1 Control B */
  2077. __IO RTC_MODE1_EVCTRL_Type EVCTRL; /**< Offset: 0x04 (R/W 32) MODE1 Event Control */
  2078. __IO RTC_MODE1_INTENCLR_Type INTENCLR; /**< Offset: 0x08 (R/W 16) MODE1 Interrupt Enable Clear */
  2079. __IO RTC_MODE1_INTENSET_Type INTENSET; /**< Offset: 0x0A (R/W 16) MODE1 Interrupt Enable Set */
  2080. __IO RTC_MODE1_INTFLAG_Type INTFLAG; /**< Offset: 0x0C (R/W 16) MODE1 Interrupt Flag Status and Clear */
  2081. __IO RTC_DBGCTRL_Type DBGCTRL; /**< Offset: 0x0E (R/W 8) Debug Control */
  2082. __I uint8_t Reserved1[1];
  2083. __I RTC_MODE1_SYNCBUSY_Type SYNCBUSY; /**< Offset: 0x10 (R/ 32) MODE1 Synchronization Busy Status */
  2084. __IO RTC_FREQCORR_Type FREQCORR; /**< Offset: 0x14 (R/W 8) Frequency Correction */
  2085. __I uint8_t Reserved2[3];
  2086. __IO RTC_MODE1_COUNT_Type COUNT; /**< Offset: 0x18 (R/W 16) MODE1 Counter Value */
  2087. __I uint8_t Reserved3[2];
  2088. __IO RTC_MODE1_PER_Type PER; /**< Offset: 0x1C (R/W 16) MODE1 Counter Period */
  2089. __I uint8_t Reserved4[2];
  2090. __IO RTC_MODE1_COMP_Type COMP[2]; /**< Offset: 0x20 (R/W 16) MODE1 Compare n Value */
  2091. __I uint8_t Reserved5[28];
  2092. __IO RTC_GP_Type GP[2]; /**< Offset: 0x40 (R/W 32) General Purpose */
  2093. __I uint8_t Reserved6[24];
  2094. __IO RTC_TAMPCTRL_Type TAMPCTRL; /**< Offset: 0x60 (R/W 32) Tamper Control */
  2095. __I RTC_MODE1_TIMESTAMP_Type TIMESTAMP; /**< Offset: 0x64 (R/ 32) MODE1 Timestamp */
  2096. __IO RTC_TAMPID_Type TAMPID; /**< Offset: 0x68 (R/W 32) Tamper ID */
  2097. __IO RTC_TAMPCTRLB_Type TAMPCTRLB; /**< Offset: 0x6C (R/W 32) Tamper Control B */
  2098. } RtcMode1;
  2099. /** \brief RTC hardware registers */
  2100. typedef struct { /* Real-Time Counter */
  2101. __IO RTC_MODE2_CTRLA_Type CTRLA; /**< Offset: 0x00 (R/W 16) MODE2 Control A */
  2102. __IO RTC_MODE2_CTRLB_Type CTRLB; /**< Offset: 0x02 (R/W 16) MODE2 Control B */
  2103. __IO RTC_MODE2_EVCTRL_Type EVCTRL; /**< Offset: 0x04 (R/W 32) MODE2 Event Control */
  2104. __IO RTC_MODE2_INTENCLR_Type INTENCLR; /**< Offset: 0x08 (R/W 16) MODE2 Interrupt Enable Clear */
  2105. __IO RTC_MODE2_INTENSET_Type INTENSET; /**< Offset: 0x0A (R/W 16) MODE2 Interrupt Enable Set */
  2106. __IO RTC_MODE2_INTFLAG_Type INTFLAG; /**< Offset: 0x0C (R/W 16) MODE2 Interrupt Flag Status and Clear */
  2107. __IO RTC_DBGCTRL_Type DBGCTRL; /**< Offset: 0x0E (R/W 8) Debug Control */
  2108. __I uint8_t Reserved1[1];
  2109. __I RTC_MODE2_SYNCBUSY_Type SYNCBUSY; /**< Offset: 0x10 (R/ 32) MODE2 Synchronization Busy Status */
  2110. __IO RTC_FREQCORR_Type FREQCORR; /**< Offset: 0x14 (R/W 8) Frequency Correction */
  2111. __I uint8_t Reserved2[3];
  2112. __IO RTC_MODE2_CLOCK_Type CLOCK; /**< Offset: 0x18 (R/W 32) MODE2 Clock Value */
  2113. __I uint8_t Reserved3[4];
  2114. RtcMode2Alarm Mode2Alarm[1]; /**< Offset: 0x20 */
  2115. __I uint8_t Reserved4[24];
  2116. __IO RTC_GP_Type GP[2]; /**< Offset: 0x40 (R/W 32) General Purpose */
  2117. __I uint8_t Reserved5[24];
  2118. __IO RTC_TAMPCTRL_Type TAMPCTRL; /**< Offset: 0x60 (R/W 32) Tamper Control */
  2119. __I RTC_MODE2_TIMESTAMP_Type TIMESTAMP; /**< Offset: 0x64 (R/ 32) MODE2 Timestamp */
  2120. __IO RTC_TAMPID_Type TAMPID; /**< Offset: 0x68 (R/W 32) Tamper ID */
  2121. __IO RTC_TAMPCTRLB_Type TAMPCTRLB; /**< Offset: 0x6C (R/W 32) Tamper Control B */
  2122. } RtcMode2;
  2123. /** \brief RTC hardware registers */
  2124. typedef union { /* Real-Time Counter */
  2125. RtcMode0 MODE0; /**< 32-bit Counter with Single 32-bit Compare */
  2126. RtcMode1 MODE1; /**< 16-bit Counter with Two 16-bit Compares */
  2127. RtcMode2 MODE2; /**< Clock/Calendar with Alarm */
  2128. } Rtc;
  2129. #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  2130. /** @} end of Real-Time Counter */
  2131. #endif /* _SAML11_RTC_COMPONENT_H_ */