GlobLib
HAL and API libraries for MCUs and hardware.
stm32f103cb_usb.h
Go to the documentation of this file.
1 #ifndef STM32F103CB_USB_H_
2 #define STM32F103CB_USB_H_
3 
47 #include <stdint.h>
48 #include "stm32f103cb_gpio.h"
49 #include "stm32f103cb_debug.h"
50 #include "stm32f103cb_power.h"
51 #include <libopencm3/usb/usbd.h>
52 #include <libopencm3/usb/cdc.h>
53 #include <libopencm3/usb/cdc.h>
54 #include <libopencm3/stm32/f1/bkp.h>
55 #include <libopencm3/stm32/f1/pwr.h>
56 
64 void USB_setup(void);
72 void USB_update(void);
80 void USB_put(uint8_t byte);
87 void USB_setGet(void (*data_available)(uint8_t));
94 void USB_disconnect(void);
97 #endif
Header file for stm32f103cb DEBUG.
Header file for stm32f103 GPIO.
void USB_put(uint8_t byte)
Send a single byte on USB.
void USB_setGet(void(*data_available)(uint8_t))
Set the function called when data is received on the USB.
void USB_disconnect(void)
Dissconnect the USB device from the HOST.
void USB_setup(void)
Initialize the USB device.
void USB_update(void)
Update the USB peripheral.
Header file for stm32f103cb Power.