changed return value of usbPlugged() back to int
This commit is contained in:
@@ -204,7 +204,7 @@ void pwrOff(void);
|
|||||||
// USB driver
|
// USB driver
|
||||||
#define BOOTLOADER_REQUEST() (0)
|
#define BOOTLOADER_REQUEST() (0)
|
||||||
#define usbBootloader()
|
#define usbBootloader()
|
||||||
uint8_t usbPlugged(void);
|
int usbPlugged(void);
|
||||||
void usbInit(void);
|
void usbInit(void);
|
||||||
void usbStart(void);
|
void usbStart(void);
|
||||||
void usbStop(void);
|
void usbStop(void);
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
#include "STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Driver/inc/usb_dcd_int.h"
|
#include "STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Driver/inc/usb_dcd_int.h"
|
||||||
#include "STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Driver/inc/usb_bsp.h"
|
#include "STM32_USB-Host-Device_Lib_V2.1.0/Libraries/STM32_USB_OTG_Driver/inc/usb_bsp.h"
|
||||||
|
|
||||||
uint8_t usbPlugged(void)
|
int usbPlugged(void)
|
||||||
{
|
{
|
||||||
//debounce
|
//debounce
|
||||||
static uint8_t debounced_state = 0;
|
static uint8_t debounced_state = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user