📄 lm3s101.h
字号:
#define TIMER_TBMR_TBMR_1_SHOT 0x00000001 // One-Shot Timer mode.
#define TIMER_TBMR_TBMR_PERIOD 0x00000002 // Periodic Timer mode.
#define TIMER_TBMR_TBMR_CAP 0x00000003 // Capture mode.
//*****************************************************************************
//
// The following are defines for the bit fields in the TIMER_O_CTL register.
//
//*****************************************************************************
#define TIMER_CTL_TBPWML 0x00004000 // GPTM TimerB PWM Output Level.
#define TIMER_CTL_TBOTE 0x00002000 // GPTM TimerB Output Trigger
// Enable.
#define TIMER_CTL_TBEVENT_M 0x00000C00 // GPTM TimerB Event Mode.
#define TIMER_CTL_TBEVENT_POS 0x00000000 // Positive edge.
#define TIMER_CTL_TBEVENT_NEG 0x00000400 // Negative edge.
#define TIMER_CTL_TBEVENT_BOTH 0x00000C00 // Both edges.
#define TIMER_CTL_TBSTALL 0x00000200 // GPTM TimerB Stall Enable.
#define TIMER_CTL_TBEN 0x00000100 // GPTM TimerB Enable.
#define TIMER_CTL_TAPWML 0x00000040 // GPTM TimerA PWM Output Level.
#define TIMER_CTL_TAOTE 0x00000020 // GPTM TimerA Output Trigger
// Enable.
#define TIMER_CTL_RTCEN 0x00000010 // GPTM RTC Enable.
#define TIMER_CTL_TAEVENT_M 0x0000000C // GPTM TimerA Event Mode.
#define TIMER_CTL_TAEVENT_POS 0x00000000 // Positive edge.
#define TIMER_CTL_TAEVENT_NEG 0x00000004 // Negative edge.
#define TIMER_CTL_TAEVENT_BOTH 0x0000000C // Both edges.
#define TIMER_CTL_TASTALL 0x00000002 // GPTM TimerA Stall Enable.
#define TIMER_CTL_TAEN 0x00000001 // GPTM TimerA Enable.
//*****************************************************************************
//
// The following are defines for the bit fields in the TIMER_O_IMR register.
//
//*****************************************************************************
#define TIMER_IMR_CBEIM 0x00000400 // GPTM CaptureB Event Interrupt
// Mask.
#define TIMER_IMR_CBMIM 0x00000200 // GPTM CaptureB Match Interrupt
// Mask.
#define TIMER_IMR_TBTOIM 0x00000100 // GPTM TimerB Time-Out Interrupt
// Mask.
#define TIMER_IMR_RTCIM 0x00000008 // GPTM RTC Interrupt Mask.
#define TIMER_IMR_CAEIM 0x00000004 // GPTM CaptureA Event Interrupt
// Mask.
#define TIMER_IMR_CAMIM 0x00000002 // GPTM CaptureA Match Interrupt
// Mask.
#define TIMER_IMR_TATOIM 0x00000001 // GPTM TimerA Time-Out Interrupt
// Mask.
//*****************************************************************************
//
// The following are defines for the bit fields in the TIMER_O_RIS register.
//
//*****************************************************************************
#define TIMER_RIS_CBERIS 0x00000400 // GPTM CaptureB Event Raw
// Interrupt.
#define TIMER_RIS_CBMRIS 0x00000200 // GPTM CaptureB Match Raw
// Interrupt.
#define TIMER_RIS_TBTORIS 0x00000100 // GPTM TimerB Time-Out Raw
// Interrupt.
#define TIMER_RIS_RTCRIS 0x00000008 // GPTM RTC Raw Interrupt.
#define TIMER_RIS_CAERIS 0x00000004 // GPTM CaptureA Event Raw
// Interrupt.
#define TIMER_RIS_CAMRIS 0x00000002 // GPTM CaptureA Match Raw
// Interrupt.
#define TIMER_RIS_TATORIS 0x00000001 // GPTM TimerA Time-Out Raw
// Interrupt.
//*****************************************************************************
//
// The following are defines for the bit fields in the TIMER_O_MIS register.
//
//*****************************************************************************
#define TIMER_MIS_CBEMIS 0x00000400 // GPTM CaptureB Event Masked
// Interrupt.
#define TIMER_MIS_CBMMIS 0x00000200 // GPTM CaptureB Match Masked
// Interrupt.
#define TIMER_MIS_TBTOMIS 0x00000100 // GPTM TimerB Time-Out Masked
// Interrupt.
#define TIMER_MIS_RTCMIS 0x00000008 // GPTM RTC Masked Interrupt.
#define TIMER_MIS_CAEMIS 0x00000004 // GPTM CaptureA Event Masked
// Interrupt.
#define TIMER_MIS_CAMMIS 0x00000002 // GPTM CaptureA Match Masked
// Interrupt.
#define TIMER_MIS_TATOMIS 0x00000001 // GPTM TimerA Time-Out Masked
// Interrupt.
//*****************************************************************************
//
// The following are defines for the bit fields in the TIMER_O_ICR register.
//
//*****************************************************************************
#define TIMER_ICR_CBECINT 0x00000400 // GPTM CaptureB Event Interrupt
// Clear.
#define TIMER_ICR_CBMCINT 0x00000200 // GPTM CaptureB Match Interrupt
// Clear.
#define TIMER_ICR_TBTOCINT 0x00000100 // GPTM TimerB Time-Out Interrupt
// Clear.
#define TIMER_ICR_RTCCINT 0x00000008 // GPTM RTC Interrupt Clear.
#define TIMER_ICR_CAECINT 0x00000004 // GPTM CaptureA Event Interrupt
// Clear.
#define TIMER_ICR_CAMCINT 0x00000002 // GPTM CaptureA Match Raw
// Interrupt.
#define TIMER_ICR_TATOCINT 0x00000001 // GPTM TimerA Time-Out Raw
// Interrupt.
//*****************************************************************************
//
// The following are defines for the bit fields in the TIMER_O_TAILR register.
//
//*****************************************************************************
#define TIMER_TAILR_TAILRH_M 0xFFFF0000 // GPTM TimerA Interval Load
// Register High.
#define TIMER_TAILR_TAILRL_M 0x0000FFFF // GPTM TimerA Interval Load
// Register Low.
#define TIMER_TAILR_TAILRH_S 16
#define TIMER_TAILR_TAILRL_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the TIMER_O_TBILR register.
//
//*****************************************************************************
#define TIMER_TBILR_TBILRL_M 0x0000FFFF // GPTM TimerB Interval Load
// Register.
#define TIMER_TBILR_TBILRL_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the TIMER_O_TAMATCHR
// register.
//
//*****************************************************************************
#define TIMER_TAMATCHR_TAMRH_M 0xFFFF0000 // GPTM TimerA Match Register High.
#define TIMER_TAMATCHR_TAMRL_M 0x0000FFFF // GPTM TimerA Match Register Low.
#define TIMER_TAMATCHR_TAMRH_S 16
#define TIMER_TAMATCHR_TAMRL_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the TIMER_O_TBMATCHR
// register.
//
//*****************************************************************************
#define TIMER_TBMATCHR_TBMRL_M 0x0000FFFF // GPTM TimerB Match Register Low.
#define TIMER_TBMATCHR_TBMRL_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the TIMER_O_TAPR register.
//
//*****************************************************************************
#define TIMER_TAPR_TAPSR_M 0x000000FF // GPTM TimerA Prescale.
#define TIMER_TAPR_TAPSR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the TIMER_O_TBPR register.
//
//*****************************************************************************
#define TIMER_TBPR_TBPSR_M 0x000000FF // GPTM TimerB Prescale.
#define TIMER_TBPR_TBPSR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the TIMER_O_TAPMR register.
//
//*****************************************************************************
#define TIMER_TAPMR_TAPSMR_M 0x000000FF // GPTM TimerA Prescale Match.
#define TIMER_TAPMR_TAPSMR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the TIMER_O_TBPMR register.
//
//*****************************************************************************
#define TIMER_TBPMR_TBPSMR_M 0x000000FF // GPTM TimerB Prescale Match.
#define TIMER_TBPMR_TBPSMR_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the TIMER_O_TAR register.
//
//*****************************************************************************
#define TIMER_TAR_TARH_M 0xFFFF0000 // GPTM TimerA Register High.
#define TIMER_TAR_TARL_M 0x0000FFFF // GPTM TimerA Register Low.
#define TIMER_TAR_TARH_S 16
#define TIMER_TAR_TARL_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the TIMER_O_TBR register.
//
//*****************************************************************************
#define TIMER_TBR_TBRL_M 0x0000FFFF // GPTM TimerB.
#define TIMER_TBR_TBRL_S 0
//*****************************************************************************
//
// The following are defines for the bit fields in the COMP_O_ACMIS register.
//
//*****************************************************************************
#define COMP_ACMIS_IN1 0x00000002 // Comparator 1 Masked Interrupt
// Status.
#define COMP_ACMIS_IN0 0x00000001 // Comparator 0 Masked Interrupt
// Status.
//*****************************************************************************
//
// The following are defines for the bit fields in the COMP_O_ACRIS register.
//
//*****************************************************************************
#define COMP_ACRIS_IN1 0x00000002 // Comparator 1 Interrupt Status.
#define COMP_ACRIS_IN0 0x00000001 // Comparator 0 Interrupt Status.
//*****************************************************************************
//
// The following are defines for the bit fields in the COMP_O_ACINTEN register.
//
//*****************************************************************************
#define COMP_ACINTEN_IN1 0x00000002 // Comparator 1 Interrupt Enable.
#define COMP_ACINTEN_IN0 0x00000001 // Comparator 0 Interrupt Enable.
//*****************************************************************************
//
// The following are defines for the bit fields in the COMP_O_ACREFCTL
// register.
//
//*****************************************************************************
#define COMP_ACREFCTL_EN 0x00000200 // Resistor Ladder Enable.
#define COMP_ACREFCTL_RNG 0x00000100 // Resistor Ladder Range.
#define COMP_ACREFCTL_VREF_M 0x0000000F // Resistor Ladder Voltage Ref.
#define COMP_ACREFCTL_VREF_S 0
//*****************************************************************************
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -