12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031 |
- #ifndef __HW_GPTIMER_H__
- #define __HW_GPTIMER_H__
- #define GPTIMER_O_CFG 0x00000000
-
-
-
-
-
-
-
- #define GPTIMER_O_TAMR 0x00000004
-
-
-
-
-
-
-
-
-
-
- #define GPTIMER_O_TBMR 0x00000008
-
-
-
-
-
-
-
-
-
-
- #define GPTIMER_O_CTL 0x0000000C
-
-
-
-
-
- #define GPTIMER_O_SYNC 0x00000010
-
-
-
-
-
- #define GPTIMER_O_IMR 0x00000018
-
-
-
-
-
-
- #define GPTIMER_O_RIS 0x0000001C
-
-
-
-
-
-
-
- #define GPTIMER_O_MIS 0x00000020
-
-
-
-
-
-
-
-
-
-
- #define GPTIMER_O_ICR 0x00000024
-
-
-
-
-
- #define GPTIMER_O_TAILR 0x00000028
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define GPTIMER_O_TBILR 0x0000002C
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define GPTIMER_O_TAMATCHR 0x00000030
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define GPTIMER_O_TBMATCHR 0x00000034
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define GPTIMER_O_TAPR 0x00000038
-
-
-
-
- #define GPTIMER_O_TBPR 0x0000003C
-
-
-
-
- #define GPTIMER_O_TAPMR 0x00000040
-
-
-
-
-
- #define GPTIMER_O_TBPMR 0x00000044
-
-
-
-
-
- #define GPTIMER_O_TAR 0x00000048
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define GPTIMER_O_TBR 0x0000004C
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define GPTIMER_O_TAV 0x00000050
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define GPTIMER_O_TBV 0x00000054
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define GPTIMER_O_TAPS 0x0000005C
-
-
-
-
-
- #define GPTIMER_O_TBPS 0x00000060
-
-
-
-
-
- #define GPTIMER_O_TAPV 0x00000064
-
-
-
-
-
-
-
-
-
-
-
- #define GPTIMER_O_TBPV 0x00000068
-
-
-
-
-
-
-
-
-
-
-
- #define GPTIMER_O_PP 0x00000FC0
-
-
-
- #define GPTIMER_CFG_GPTMCFG_M 0x00000007
-
-
-
-
-
-
-
-
- #define GPTIMER_CFG_GPTMCFG_S 0
- #define GPTIMER_TAMR_TAPLO 0x00000800
-
-
- #define GPTIMER_TAMR_TAPLO_M 0x00000800
- #define GPTIMER_TAMR_TAPLO_S 11
- #define GPTIMER_TAMR_TAMRSU 0x00000400
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define GPTIMER_TAMR_TAMRSU_M 0x00000400
- #define GPTIMER_TAMR_TAMRSU_S 10
- #define GPTIMER_TAMR_TAPWMIE 0x00000200
-
-
-
-
-
-
-
- #define GPTIMER_TAMR_TAPWMIE_M 0x00000200
- #define GPTIMER_TAMR_TAPWMIE_S 9
- #define GPTIMER_TAMR_TAILD 0x00000100
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define GPTIMER_TAMR_TAILD_M 0x00000100
- #define GPTIMER_TAMR_TAILD_S 8
- #define GPTIMER_TAMR_TASNAPS 0x00000080
-
-
-
-
-
-
-
- #define GPTIMER_TAMR_TASNAPS_M 0x00000080
- #define GPTIMER_TAMR_TASNAPS_S 7
- #define GPTIMER_TAMR_TAWOT 0x00000040
-
-
-
-
-
-
-
-
-
-
- #define GPTIMER_TAMR_TAWOT_M 0x00000040
- #define GPTIMER_TAMR_TAWOT_S 6
- #define GPTIMER_TAMR_TAMIE 0x00000020
-
-
-
-
-
-
- #define GPTIMER_TAMR_TAMIE_M 0x00000020
- #define GPTIMER_TAMR_TAMIE_S 5
- #define GPTIMER_TAMR_TACDIR 0x00000010
-
-
-
-
- #define GPTIMER_TAMR_TACDIR_M 0x00000010
- #define GPTIMER_TAMR_TACDIR_S 4
- #define GPTIMER_TAMR_TAAMS 0x00000008
-
-
-
-
-
- #define GPTIMER_TAMR_TAAMS_M 0x00000008
- #define GPTIMER_TAMR_TAAMS_S 3
- #define GPTIMER_TAMR_TACMR 0x00000004
-
-
- #define GPTIMER_TAMR_TACMR_M 0x00000004
- #define GPTIMER_TAMR_TACMR_S 2
- #define GPTIMER_TAMR_TAMR_M 0x00000003
-
-
-
-
-
- #define GPTIMER_TAMR_TAMR_S 0
- #define GPTIMER_TBMR_TBPLO 0x00000800
-
-
- #define GPTIMER_TBMR_TBPLO_M 0x00000800
- #define GPTIMER_TBMR_TBPLO_S 11
- #define GPTIMER_TBMR_TBMRSU 0x00000400
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define GPTIMER_TBMR_TBMRSU_M 0x00000400
- #define GPTIMER_TBMR_TBMRSU_S 10
- #define GPTIMER_TBMR_TBPWMIE 0x00000200
-
-
-
-
-
-
-
- #define GPTIMER_TBMR_TBPWMIE_M 0x00000200
- #define GPTIMER_TBMR_TBPWMIE_S 9
- #define GPTIMER_TBMR_TBILD 0x00000100
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define GPTIMER_TBMR_TBILD_M 0x00000100
- #define GPTIMER_TBMR_TBILD_S 8
- #define GPTIMER_TBMR_TBSNAPS 0x00000080
-
-
-
-
-
-
-
- #define GPTIMER_TBMR_TBSNAPS_M 0x00000080
- #define GPTIMER_TBMR_TBSNAPS_S 7
- #define GPTIMER_TBMR_TBWOT 0x00000040
-
-
-
-
-
-
-
-
- #define GPTIMER_TBMR_TBWOT_M 0x00000040
- #define GPTIMER_TBMR_TBWOT_S 6
- #define GPTIMER_TBMR_TBMIE 0x00000020
-
-
-
-
-
-
- #define GPTIMER_TBMR_TBMIE_M 0x00000020
- #define GPTIMER_TBMR_TBMIE_S 5
- #define GPTIMER_TBMR_TBCDIR 0x00000010
-
-
-
-
- #define GPTIMER_TBMR_TBCDIR_M 0x00000010
- #define GPTIMER_TBMR_TBCDIR_S 4
- #define GPTIMER_TBMR_TBAMS 0x00000008
-
-
-
-
-
- #define GPTIMER_TBMR_TBAMS_M 0x00000008
- #define GPTIMER_TBMR_TBAMS_S 3
- #define GPTIMER_TBMR_TBCMR 0x00000004
-
-
- #define GPTIMER_TBMR_TBCMR_M 0x00000004
- #define GPTIMER_TBMR_TBCMR_S 2
- #define GPTIMER_TBMR_TBMR_M 0x00000003
-
-
-
-
-
-
- #define GPTIMER_TBMR_TBMR_S 0
- #define GPTIMER_CTL_TBPWML 0x00004000
-
-
- #define GPTIMER_CTL_TBPWML_M 0x00004000
- #define GPTIMER_CTL_TBPWML_S 14
- #define GPTIMER_CTL_TBOTE 0x00002000
-
-
-
-
- #define GPTIMER_CTL_TBOTE_M 0x00002000
- #define GPTIMER_CTL_TBOTE_S 13
- #define GPTIMER_CTL_TBEVENT_M 0x00000C00
-
-
- #define GPTIMER_CTL_TBEVENT_S 10
- #define GPTIMER_CTL_TBSTALL 0x00000200
-
-
-
-
-
- #define GPTIMER_CTL_TBSTALL_M 0x00000200
- #define GPTIMER_CTL_TBSTALL_S 9
- #define GPTIMER_CTL_TBEN 0x00000100
-
-
-
-
- #define GPTIMER_CTL_TBEN_M 0x00000100
- #define GPTIMER_CTL_TBEN_S 8
- #define GPTIMER_CTL_TAPWML 0x00000040
-
-
- #define GPTIMER_CTL_TAPWML_M 0x00000040
- #define GPTIMER_CTL_TAPWML_S 6
- #define GPTIMER_CTL_TAOTE 0x00000020
-
-
-
-
- #define GPTIMER_CTL_TAOTE_M 0x00000020
- #define GPTIMER_CTL_TAOTE_S 5
- #define GPTIMER_CTL_TAEVENT_M 0x0000000C
-
-
- #define GPTIMER_CTL_TAEVENT_S 2
- #define GPTIMER_CTL_TASTALL 0x00000002
-
-
-
-
-
- #define GPTIMER_CTL_TASTALL_M 0x00000002
- #define GPTIMER_CTL_TASTALL_S 1
- #define GPTIMER_CTL_TAEN 0x00000001
-
-
-
-
- #define GPTIMER_CTL_TAEN_M 0x00000001
- #define GPTIMER_CTL_TAEN_S 0
- #define GPTIMER_SYNC_SYNC3_M 0x000000C0
-
-
-
-
-
-
-
- #define GPTIMER_SYNC_SYNC3_S 6
- #define GPTIMER_SYNC_SYNC2_M 0x00000030
-
-
-
-
-
-
-
- #define GPTIMER_SYNC_SYNC2_S 4
- #define GPTIMER_SYNC_SYNC1_M 0x0000000C
-
-
-
-
-
-
-
- #define GPTIMER_SYNC_SYNC1_S 2
- #define GPTIMER_SYNC_SYNC0_M 0x00000003
-
-
-
-
-
-
-
- #define GPTIMER_SYNC_SYNC0_S 0
- #define GPTIMER_IMR_TBMIM 0x00000800
-
-
- #define GPTIMER_IMR_TBMIM_M 0x00000800
- #define GPTIMER_IMR_TBMIM_S 11
- #define GPTIMER_IMR_CBEIM 0x00000400
-
-
-
- #define GPTIMER_IMR_CBEIM_M 0x00000400
- #define GPTIMER_IMR_CBEIM_S 10
- #define GPTIMER_IMR_CBMIM 0x00000200
-
-
-
- #define GPTIMER_IMR_CBMIM_M 0x00000200
- #define GPTIMER_IMR_CBMIM_S 9
- #define GPTIMER_IMR_TBTOIM 0x00000100
-
-
- #define GPTIMER_IMR_TBTOIM_M 0x00000100
- #define GPTIMER_IMR_TBTOIM_S 8
- #define GPTIMER_IMR_TAMIM 0x00000010
-
-
- #define GPTIMER_IMR_TAMIM_M 0x00000010
- #define GPTIMER_IMR_TAMIM_S 4
- #define GPTIMER_IMR_CAEIM 0x00000004
-
-
-
- #define GPTIMER_IMR_CAEIM_M 0x00000004
- #define GPTIMER_IMR_CAEIM_S 2
- #define GPTIMER_IMR_CAMIM 0x00000002
-
-
-
- #define GPTIMER_IMR_CAMIM_M 0x00000002
- #define GPTIMER_IMR_CAMIM_S 1
- #define GPTIMER_IMR_TATOIM 0x00000001
-
-
- #define GPTIMER_IMR_TATOIM_M 0x00000001
- #define GPTIMER_IMR_TATOIM_S 0
- #define GPTIMER_RIS_TBMRIS 0x00000800
-
- #define GPTIMER_RIS_TBMRIS_M 0x00000800
- #define GPTIMER_RIS_TBMRIS_S 11
- #define GPTIMER_RIS_CBERIS 0x00000400
-
- #define GPTIMER_RIS_CBERIS_M 0x00000400
- #define GPTIMER_RIS_CBERIS_S 10
- #define GPTIMER_RIS_CBMRIS 0x00000200
-
- #define GPTIMER_RIS_CBMRIS_M 0x00000200
- #define GPTIMER_RIS_CBMRIS_S 9
- #define GPTIMER_RIS_TBTORIS 0x00000100
-
- #define GPTIMER_RIS_TBTORIS_M 0x00000100
- #define GPTIMER_RIS_TBTORIS_S 8
- #define GPTIMER_RIS_TAMRIS 0x00000010
-
- #define GPTIMER_RIS_TAMRIS_M 0x00000010
- #define GPTIMER_RIS_TAMRIS_S 4
- #define GPTIMER_RIS_CAERIS 0x00000004
-
- #define GPTIMER_RIS_CAERIS_M 0x00000004
- #define GPTIMER_RIS_CAERIS_S 2
- #define GPTIMER_RIS_CAMRIS 0x00000002
-
- #define GPTIMER_RIS_CAMRIS_M 0x00000002
- #define GPTIMER_RIS_CAMRIS_S 1
- #define GPTIMER_RIS_TATORIS 0x00000001
-
- #define GPTIMER_RIS_TATORIS_M 0x00000001
- #define GPTIMER_RIS_TATORIS_S 0
- #define GPTIMER_MIS_TBMMIS 0x00000800
-
- #define GPTIMER_MIS_TBMMIS_M 0x00000800
- #define GPTIMER_MIS_TBMMIS_S 11
- #define GPTIMER_MIS_CBEMIS 0x00000400
-
- #define GPTIMER_MIS_CBEMIS_M 0x00000400
- #define GPTIMER_MIS_CBEMIS_S 10
- #define GPTIMER_MIS_CBMMIS 0x00000200
-
- #define GPTIMER_MIS_CBMMIS_M 0x00000200
- #define GPTIMER_MIS_CBMMIS_S 9
- #define GPTIMER_MIS_TBTOMIS 0x00000100
-
- #define GPTIMER_MIS_TBTOMIS_M 0x00000100
- #define GPTIMER_MIS_TBTOMIS_S 8
- #define GPTIMER_MIS_TAMRIS 0x00000010
-
- #define GPTIMER_MIS_TAMRIS_M 0x00000010
- #define GPTIMER_MIS_TAMRIS_S 4
- #define GPTIMER_MIS_CAEMIS 0x00000004
-
- #define GPTIMER_MIS_CAEMIS_M 0x00000004
- #define GPTIMER_MIS_CAEMIS_S 2
- #define GPTIMER_MIS_CAMMIS 0x00000002
-
- #define GPTIMER_MIS_CAMMIS_M 0x00000002
- #define GPTIMER_MIS_CAMMIS_S 1
- #define GPTIMER_MIS_TATOMIS 0x00000001
-
- #define GPTIMER_MIS_TATOMIS_M 0x00000001
- #define GPTIMER_MIS_TATOMIS_S 0
- #define GPTIMER_ICR_WUECINT 0x00010000
-
- #define GPTIMER_ICR_WUECINT_M 0x00010000
- #define GPTIMER_ICR_WUECINT_S 16
- #define GPTIMER_ICR_TBMCINT 0x00000800
-
- #define GPTIMER_ICR_TBMCINT_M 0x00000800
- #define GPTIMER_ICR_TBMCINT_S 11
- #define GPTIMER_ICR_CBECINT 0x00000400
-
- #define GPTIMER_ICR_CBECINT_M 0x00000400
- #define GPTIMER_ICR_CBECINT_S 10
- #define GPTIMER_ICR_CBMCINT 0x00000200
-
- #define GPTIMER_ICR_CBMCINT_M 0x00000200
- #define GPTIMER_ICR_CBMCINT_S 9
- #define GPTIMER_ICR_TBTOCINT 0x00000100
-
- #define GPTIMER_ICR_TBTOCINT_M 0x00000100
- #define GPTIMER_ICR_TBTOCINT_S 8
- #define GPTIMER_ICR_TAMCINT 0x00000010
-
- #define GPTIMER_ICR_TAMCINT_M 0x00000010
- #define GPTIMER_ICR_TAMCINT_S 4
- #define GPTIMER_ICR_CAECINT 0x00000004
-
- #define GPTIMER_ICR_CAECINT_M 0x00000004
- #define GPTIMER_ICR_CAECINT_S 2
- #define GPTIMER_ICR_CAMCINT 0x00000002
-
- #define GPTIMER_ICR_CAMCINT_M 0x00000002
- #define GPTIMER_ICR_CAMCINT_S 1
- #define GPTIMER_ICR_TATOCINT 0x00000001
-
- #define GPTIMER_ICR_TATOCINT_M 0x00000001
- #define GPTIMER_ICR_TATOCINT_S 0
- #define GPTIMER_TAILR_TAILR_M 0xFFFFFFFF
- #define GPTIMER_TAILR_TAILR_S 0
- #define GPTIMER_TBILR_TBILR_M 0x0000FFFF
- #define GPTIMER_TBILR_TBILR_S 0
- #define GPTIMER_TAMATCHR_TAMR_M 0xFFFFFFFF
- #define GPTIMER_TAMATCHR_TAMR_S 0
- #define GPTIMER_TBMATCHR_TBMR_M 0x0000FFFF
- #define GPTIMER_TBMATCHR_TBMR_S 0
- #define GPTIMER_TAPR_TAPSR_M 0x000000FF
- #define GPTIMER_TAPR_TAPSR_S 0
- #define GPTIMER_TBPR_TBPSR_M 0x000000FF
- #define GPTIMER_TBPR_TBPSR_S 0
- #define GPTIMER_TAPMR_TAPSR_M 0x000000FF
- #define GPTIMER_TAPMR_TAPSR_S 0
- #define GPTIMER_TBPMR_TBPSR_M 0x000000FF
- #define GPTIMER_TBPMR_TBPSR_S 0
- #define GPTIMER_TAR_TAR_M 0xFFFFFFFF
- #define GPTIMER_TAR_TAR_S 0
- #define GPTIMER_TBR_TBR_M 0x0000FFFF
- #define GPTIMER_TBR_TBR_S 0
- #define GPTIMER_TAV_TAV_M 0xFFFFFFFF
- #define GPTIMER_TAV_TAV_S 0
- #define GPTIMER_TBV_PRE_M 0x00FF0000
-
- #define GPTIMER_TBV_PRE_S 16
- #define GPTIMER_TBV_TBV_M 0x0000FFFF
- #define GPTIMER_TBV_TBV_S 0
- #define GPTIMER_TAPS_PSS_M 0x0000FFFF
- #define GPTIMER_TAPS_PSS_S 0
- #define GPTIMER_TBPS_PSS_M 0x0000FFFF
- #define GPTIMER_TBPS_PSS_S 0
- #define GPTIMER_TAPV_PSV_M 0x0000FFFF
- #define GPTIMER_TAPV_PSV_S 0
- #define GPTIMER_TBPV_PSV_M 0x0000FFFF
- #define GPTIMER_TBPV_PSV_S 0
- #define GPTIMER_PP_ALTCLK 0x00000040
-
-
-
-
- #define GPTIMER_PP_ALTCLK_M 0x00000040
- #define GPTIMER_PP_ALTCLK_S 6
- #define GPTIMER_PP_SYNCNT 0x00000020
-
-
-
-
-
- #define GPTIMER_PP_SYNCNT_M 0x00000020
- #define GPTIMER_PP_SYNCNT_S 5
- #define GPTIMER_PP_CHAIN 0x00000010
-
-
-
-
- #define GPTIMER_PP_CHAIN_M 0x00000010
- #define GPTIMER_PP_CHAIN_S 4
- #define GPTIMER_PP_SIZE_M 0x0000000F
-
-
-
-
- #define GPTIMER_PP_SIZE_S 0
- #endif
|