AIOC/stm32/aioc-fw/Src/usb_serial.h

17 wiersze
522 B
C
Czysty Zwykły widok Historia

2022-10-20 12:30:14 +00:00
#ifndef USB_SERIAL_H_
#define USB_SERIAL_H_
2022-10-20 14:37:32 +00:00
#define USB_SERIAL_UART USART1
#define USB_SERIAL_UART_IRQ USART1_IRQHandler
#define USB_SERIAL_UART_PERIPHCLK RCC_PERIPHCLK_USART1
#define USB_SERIAL_UART_RXTIMEOUT 20 /* in number of bits */
#define USB_SERIAL_UART_DEFBAUD 9600
#define USB_SERIAL_UART_GPIO_PTT GPIOA
#define USB_SERIAL_UART_PIN_PTT1 GPIO_PIN_1
#define USB_SERIAL_UART_PIN_PTT2 GPIO_PIN_0
2022-10-20 14:37:32 +00:00
2022-10-20 12:30:14 +00:00
void USB_SerialInit(void);
void USB_SerialTask(void);
#endif /* USB_SERIAL_H_ */