Blame | Last modification | View Log | Download | RSS feed
ifndef __stm8stim6inc ; avoid multiple inclusion__stm8stim6inc equ 1savelisting off ; no listing over this file;****************************************************************************;* *;* AS 1.42 - File TIM6.INC *;* *;* contains SFR and Bit Definitions for STM8S Timer 6 *;* *;****************************************************************************; TIM6 is identical to TIM4, with the addition; of CR2 and SMCR that fill the gap existing on some; implementations of TIM4.__deftim6 macro BaseTIM6_CR1 label Base+$00 ; TIM6 control register 1TIM6_ARPE bit TIM6_CR1,7 ; Auto-reload preload enableTIM6_OPM bit TIM6_CR1,3 ; One-pulse modeTIM6_URS bit TIM6_CR1,2 ; Update request sourceTIM6_UDIS bit TIM6_CR1,1 ; Update disableTIM6_CEN bit TIM6_CR1,0 ; Counter enableTIM6_CR2 label Base+$01 ; TIM6 control register 2TIM6_MMS bfield TIM6_CR2,4,3 ; Master mode selectionTIM6_SMCR label Base+$02 ; TIM6 slave mode control registerTIM6_MSM bit TIM6_SMCR,7 ; Master/slave modeTIM6_TS bfield TIM6_SMCR,4,3 ; Trigger selectionTIM6_SMS bfield TIM6_SMCR,0,3 ; Clock/trigger/slave mode selectionTIM6_IER label Base+$03 ; TIM6 interrupt enable registerTIM6_TIE bit TIM6_IER,6 ; Trigger interrupt enableTIM6_UIE bit TIM6_IER,0 ; Update interrupt enableTIM6_SR label Base+$04 ; TIM6 status registerTIM6_TIF bit TIM6_SR,6 ; Trigger interrupt flagTIM6_UIF bit TIM6_SR,0 ; Update interrupt flagTIM6_EGR label Base+$05 ; TIM6 event generation registerTIM6_TG bit TIM6_EGR,6 ; Trigger generationTIM6_UG bit TIM6_EGR,0 ; Update generationTIM6_CNTR label Base+$06 ; TIM6 counterTIM6_PSCR label Base+$07 ; TIM6 prescaler registerTIM6_ARR label Base+$08 ; TIM6 auto-reload registerendmrestoreendif ; __stm8stim6inc