📄 hw_sysctl.h
字号:
#define SYSCTL_RCGC1_QEI1 0x00000200 // QEI1 Clock Gating Control.
#define SYSCTL_RCGC1_QEI0 0x00000100 // QEI0 Clock Gating Control.
#define SYSCTL_RCGC1_SSI1 0x00000020 // SSI1 Clock Gating Control.
#define SYSCTL_RCGC1_SSI0 0x00000010 // SSI0 Clock Gating Control.
#define SYSCTL_RCGC1_UART2 0x00000004 // UART2 Clock Gating Control.
#define SYSCTL_RCGC1_UART1 0x00000002 // UART1 Clock Gating Control.
#define SYSCTL_RCGC1_UART0 0x00000001 // UART0 Clock Gating Control.
//*****************************************************************************
//
// The following are defines for the bit fields in the SYSCTL_RCGC2 register.
//
//*****************************************************************************
#define SYSCTL_RCGC2_EPHY0 0x40000000 // PHY0 Clock Gating Control.
#define SYSCTL_RCGC2_EMAC0 0x10000000 // MAC0 Clock Gating Control.
#define SYSCTL_RCGC2_USB0 0x00010000 // USB0 Clock Gating Control.
#define SYSCTL_RCGC2_UDMA 0x00002000 // UDMA Clock Gating Control.
#define SYSCTL_RCGC2_GPIOH 0x00000080 // Port H Clock Gating Control.
#define SYSCTL_RCGC2_GPIOG 0x00000040 // Port G Clock Gating Control.
#define SYSCTL_RCGC2_GPIOF 0x00000020 // Port F Clock Gating Control.
#define SYSCTL_RCGC2_GPIOE 0x00000010 // Port E Clock Gating Control.
#define SYSCTL_RCGC2_GPIOD 0x00000008 // Port D Clock Gating Control.
#define SYSCTL_RCGC2_GPIOC 0x00000004 // Port C Clock Gating Control.
#define SYSCTL_RCGC2_GPIOB 0x00000002 // Port B Clock Gating Control.
#define SYSCTL_RCGC2_GPIOA 0x00000001 // Port A Clock Gating Control.
//*****************************************************************************
//
// The following are defines for the bit fields in the SYSCTL_SCGC0 register.
//
//*****************************************************************************
#define SYSCTL_SCGC0_CAN2 0x04000000 // CAN2 Clock Gating Control.
#define SYSCTL_SCGC0_CAN1 0x02000000 // CAN1 Clock Gating Control.
#define SYSCTL_SCGC0_CAN0 0x01000000 // CAN0 Clock Gating Control.
#define SYSCTL_SCGC0_PWM 0x00100000 // PWM Clock Gating Control.
#define SYSCTL_SCGC0_ADC 0x00010000 // ADC0 Clock Gating Control.
#define SYSCTL_SCGC0_ADCSPD_M 0x00000F00 // ADC Sample Speed.
#define SYSCTL_SCGC0_ADCSPD125K 0x00000000 // 125K samples/second
#define SYSCTL_SCGC0_ADCSPD250K 0x00000100 // 250K samples/second
#define SYSCTL_SCGC0_ADCSPD500K 0x00000200 // 500K samples/second
#define SYSCTL_SCGC0_ADCSPD1M 0x00000300 // 1M samples/second
#define SYSCTL_SCGC0_HIB 0x00000040 // HIB Clock Gating Control.
#define SYSCTL_SCGC0_WDT 0x00000008 // WDT Clock Gating Control.
//*****************************************************************************
//
// The following are defines for the bit fields in the SYSCTL_SCGC1 register.
//
//*****************************************************************************
#define SYSCTL_SCGC1_COMP2 0x04000000 // Analog Comparator 2 Clock
// Gating.
#define SYSCTL_SCGC1_COMP1 0x02000000 // Analog Comparator 1 Clock
// Gating.
#define SYSCTL_SCGC1_COMP0 0x01000000 // Analog Comparator 0 Clock
// Gating.
#define SYSCTL_SCGC1_TIMER3 0x00080000 // Timer 3 Clock Gating Control.
#define SYSCTL_SCGC1_TIMER2 0x00040000 // Timer 2 Clock Gating Control.
#define SYSCTL_SCGC1_TIMER1 0x00020000 // Timer 1 Clock Gating Control.
#define SYSCTL_SCGC1_TIMER0 0x00010000 // Timer 0 Clock Gating Control.
#define SYSCTL_SCGC1_I2C1 0x00004000 // I2C1 Clock Gating Control.
#define SYSCTL_SCGC1_I2C0 0x00001000 // I2C0 Clock Gating Control.
#define SYSCTL_SCGC1_QEI1 0x00000200 // QEI1 Clock Gating Control.
#define SYSCTL_SCGC1_QEI0 0x00000100 // QEI0 Clock Gating Control.
#define SYSCTL_SCGC1_SSI1 0x00000020 // SSI1 Clock Gating Control.
#define SYSCTL_SCGC1_SSI0 0x00000010 // SSI0 Clock Gating Control.
#define SYSCTL_SCGC1_UART2 0x00000004 // UART2 Clock Gating Control.
#define SYSCTL_SCGC1_UART1 0x00000002 // UART1 Clock Gating Control.
#define SYSCTL_SCGC1_UART0 0x00000001 // UART0 Clock Gating Control.
//*****************************************************************************
//
// The following are defines for the bit fields in the SYSCTL_SCGC2 register.
//
//*****************************************************************************
#define SYSCTL_SCGC2_EPHY0 0x40000000 // PHY0 Clock Gating Control.
#define SYSCTL_SCGC2_EMAC0 0x10000000 // MAC0 Clock Gating Control.
#define SYSCTL_SCGC2_USB0 0x00010000 // USB0 Clock Gating Control.
#define SYSCTL_SCGC2_UDMA 0x00002000 // UDMA Clock Gating Control.
#define SYSCTL_SCGC2_GPIOH 0x00000080 // Port H Clock Gating Control.
#define SYSCTL_SCGC2_GPIOG 0x00000040 // Port G Clock Gating Control.
#define SYSCTL_SCGC2_GPIOF 0x00000020 // Port F Clock Gating Control.
#define SYSCTL_SCGC2_GPIOE 0x00000010 // Port E Clock Gating Control.
#define SYSCTL_SCGC2_GPIOD 0x00000008 // Port D Clock Gating Control.
#define SYSCTL_SCGC2_GPIOC 0x00000004 // Port C Clock Gating Control.
#define SYSCTL_SCGC2_GPIOB 0x00000002 // Port B Clock Gating Control.
#define SYSCTL_SCGC2_GPIOA 0x00000001 // Port A Clock Gating Control.
//*****************************************************************************
//
// The following are defines for the bit fields in the SYSCTL_DCGC0 register.
//
//*****************************************************************************
#define SYSCTL_DCGC0_CAN2 0x04000000 // CAN2 Clock Gating Control.
#define SYSCTL_DCGC0_CAN1 0x02000000 // CAN1 Clock Gating Control.
#define SYSCTL_DCGC0_CAN0 0x01000000 // CAN0 Clock Gating Control.
#define SYSCTL_DCGC0_PWM 0x00100000 // PWM Clock Gating Control.
#define SYSCTL_DCGC0_ADC 0x00010000 // ADC0 Clock Gating Control.
#define SYSCTL_DCGC0_ADCSPD_M 0x00000F00 // ADC Sample Speed.
#define SYSCTL_DCGC0_ADCSPD125K 0x00000000 // 125K samples/second
#define SYSCTL_DCGC0_ADCSPD250K 0x00000100 // 250K samples/second
#define SYSCTL_DCGC0_ADCSPD500K 0x00000200 // 500K samples/second
#define SYSCTL_DCGC0_ADCSPD1M 0x00000300 // 1M samples/second
#define SYSCTL_DCGC0_HIB 0x00000040 // HIB Clock Gating Control.
#define SYSCTL_DCGC0_WDT 0x00000008 // WDT Clock Gating Control.
//*****************************************************************************
//
// The following are defines for the bit fields in the SYSCTL_DCGC1 register.
//
//*****************************************************************************
#define SYSCTL_DCGC1_COMP2 0x04000000 // Analog Comparator 2 Clock
// Gating.
#define SYSCTL_DCGC1_COMP1 0x02000000 // Analog Comparator 1 Clock
// Gating.
#define SYSCTL_DCGC1_COMP0 0x01000000 // Analog Comparator 0 Clock
// Gating.
#define SYSCTL_DCGC1_TIMER3 0x00080000 // Timer 3 Clock Gating Control.
#define SYSCTL_DCGC1_TIMER2 0x00040000 // Timer 2 Clock Gating Control.
#define SYSCTL_DCGC1_TIMER1 0x00020000 // Timer 1 Clock Gating Control.
#define SYSCTL_DCGC1_TIMER0 0x00010000 // Timer 0 Clock Gating Control.
#define SYSCTL_DCGC1_I2C1 0x00004000 // I2C1 Clock Gating Control.
#define SYSCTL_DCGC1_I2C0 0x00001000 // I2C0 Clock Gating Control.
#define SYSCTL_DCGC1_QEI1 0x00000200 // QEI1 Clock Gating Control.
#define SYSCTL_DCGC1_QEI0 0x00000100 // QEI0 Clock Gating Control.
#define SYSCTL_DCGC1_SSI1 0x00000020 // SSI1 Clock Gating Control.
#define SYSCTL_DCGC1_SSI0 0x00000010 // SSI0 Clock Gating Control.
#define SYSCTL_DCGC1_UART2 0x00000004 // UART2 Clock Gating Control.
#define SYSCTL_DCGC1_UART1 0x00000002 // UART1 Clock Gating Control.
#define SYSCTL_DCGC1_UART0 0x00000001 // UART0 Clock Gating Control.
//*****************************************************************************
//
// The following are defines for the bit fields in the SYSCTL_DCGC2 register.
//
//*****************************************************************************
#define SYSCTL_DCGC2_EPHY0 0x40000000 // PHY0 Clock Gating Control.
#define SYSCTL_DCGC2_EMAC0 0x10000000 // MAC0 Clock Gating Control.
#define SYSCTL_DCGC2_USB0 0x00010000 // USB0 Clock Gating Control.
#define SYSCTL_DCGC2_UDMA 0x00002000 // UDMA Clock Gating Control.
#define SYSCTL_DCGC2_GPIOH 0x00000080 // Port H Clock Gating Control.
#define SYSCTL_DCGC2_GPIOG 0x00000040 // Port G Clock Gating Control.
#define SYSCTL_DCGC2_GPIOF 0x00000020 // Port F Clock Gating Control.
#define SYSCTL_DCGC2_GPIOE 0x00000010 // Port E Clock Gating Control.
#define SYSCTL_DCGC2_GPIOD 0x00000008 // Port D Clock Gating Control.
#define SYSCTL_DCGC2_GPIOC 0x00000004 // Port C Clock Gating Control.
#define SYSCTL_DCGC2_GPIOB 0x00000002 // Port B Clock Gating Control.
#define SYSCTL_DCGC2_GPIOA 0x00000001 // Port A Clock Gating Control.
//*****************************************************************************
//
// The following are defines for the bit fields in the SYSCTL_DC5 register.
//
//*****************************************************************************
#define SYSCTL_DC5_PWMFAULT3 0x08000000 // PWM Fault 3 Pin Present.
#define SYSCTL_DC5_PWMFAULT2 0x04000000 // PWM Fault 2 Pin Present.
#define SYSCTL_DC5_PWMFAULT1 0x02000000 // PWM Fault 1 Pin Present.
#define SYSCTL_DC5_PWMFAULT0 0x01000000 // PWM Fault 0 Pin Present.
#define SYSCTL_DC5_PWMEFLT 0x00200000 // PWM Extended Fault feature is
// active.
#define SYSCTL_DC5_PWMESYNC 0x00100000 // PWM Extended SYNC feature is
// active.
#define SYSCTL_DC5_PWM7 0x00000080 // PWM7 Pin Present.
#define SYSCTL_DC5_PWM6 0x00000040 // PWM6 Pin Present.
#define SYSCTL_DC5_PWM5 0x00000020 // PWM5 Pin Present.
#define SYSCTL_DC5_PWM4 0x00000010 // PWM4 Pin Present.
#define SYSCTL_DC5_PWM3 0x00000008 // PWM3 Pin Present.
#define SYSCTL_DC5_PWM2 0x00000004 // PWM2 Pin Present.
#define SYSCTL_DC5_PWM1 0x00000002 // PWM1 Pin Present.
#define SYSCTL_DC5_PWM0 0x00000001 // PWM0 Pin Present.
//*****************************************************************************
//
// The following are defines for the bit fields in the SYSCTL_DC6 register.
//
//*****************************************************************************
#define SYSCTL_DC6_USB0_M 0x00000003 // This specifies that USB0 is
// present and its capability.
#define SYSCTL_DC6_USB0_HOSTDEV 0x00000002 // USB is DEVICE or HOST
#define SYSCTL_DC6_USB0_OTG 0x00000003 // USB is OTG
//*****************************************************************************
//
// The following are defines for the bit fields in the SYSCTL_GPIOHSCTL
// register.
//
//*****************************************************************************
#define SYSCTL_GPIOHSCTL_PORTH 0x00000080 // Port H High-Speed.
#define SYSCTL_GPIOHSCTL_PORTG 0x00000040 // Port G High-Speed.
#define SYSCTL_GPIOHSCTL_PORTF 0x00000020 // Port F High-Speed.
#define SYSCTL_GPIOHSCTL_PORTE 0x00000010 // Port E High-Speed.
#define SYSCTL_GPIOHSCTL_PORTD 0x00000008 // Port D High-Speed.
#define SYSCTL_GPIOHSCTL_PORTC 0x00000004 // Port C High-Speed.
#define SYSCTL_GPIOHSCTL_PORTB 0x00000002 // Port B High-Speed.
#define SYSCTL_GPIOHSCTL_PORTA 0x00000001 // Port A High-Speed.
//*****************************************************************************
//
// The following are defines for the bit fields in the SYSCTL_MOSCCTL register.
//
//*****************************************************************************
#define SYSCTL_MOSCCTL_CVAL 0x00000001 // Clock Validation for MOSC.
//*****************************************************************************
//
// The following are defines for the bit fields in the SYSCTL_DC7 register.
//
//*****************************************************************************
#define SYSCTL_DC7_SSI1_TX 0x02000000 // SSI1 TX on uDMA Ch25.
#define SYSCTL_DC7_SSI1_RX 0x01000000 // SSI1 RX on uDMA Ch24.
#define SYSCTL_DC7_UART1_TX 0x00800000 // UART1 TX on uDMA Ch23.
#define SYSCTL_DC7_UART1_RX 0x00400000 // UART1 RX on uDMA Ch22.
#define SYSCTL_DC7_SSI0_TX 0x00000800 // SSI0 TX on uDMA Ch11.
#define SYSCTL_DC7_SSI0_RX 0x00000400 // SSI0 RX on uDMA Ch10.
#define SYSCTL_DC7_UART0_TX 0x00000200 // UART0 TX on uDMA Ch9.
#define SYSCTL_DC7_UART0_RX 0x
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -