76#define analog_function_enable(_reg,_pin) (_reg |= 1U << _pin)
84#define alternate_function_enable(_pin) (GPIO_PORTB_AHB_AFSEL_R |= 1U << _pin)
89#define GPIO_PORTB_PIN0 (0)
90#define GPIO_PORTB_PIN1 (1)
91#define GPIO_PORTL_PIN6 (6)
92#define GPIO_PORTL_PIN7 (7)
93#define USB_DP_PIN GPIO_PORTL_PIN6
94#define USB_DN_PIN GPIO_PORTL_PIN7
95#define USB_ID_PIN GPIO_PORTB_PIN0
96#define USB_VBUS_PIN GPIO_PORTB_PIN1
105static inline void usb_hw_init(
void) {
107 SYSCTL_RCGCGPIO_R |= SYSCTL_RCGCGPIO_R1;
109 SYSCTL_RCGCGPIO_R |= SYSCTL_RCGCGPIO_R10;
126 SYSCTL_RCGCUSB_R |= SYSCTL_RCGCUSB_R0;
#define GPIO_PORTB_PIN0
Pin numbers.
Definition usb_hw.h:89
#define alternate_function_enable(_pin)
Enable alternate functionality.
Definition usb_hw.h:84
#define analog_function_enable(_pin)
Enable analog functionality.
Definition usb_hw.h:77