.usbUSBusb_pwr.h(54): error: #20: identifier "bool" is undefined
usbUSBusb_pwr.h(54): error: #20: identifier "bool" is undefined
usb-driverSTM32_USB-FS-Device_DriverV3.1.1srcusb_core.c(511): error: #20: identifier "TRUE" is undefined
usb-driverSTM32_USB-FS-Device_DriverV3.1.1srcusb_core.c(45): error: #20: identifier "FALSE" is undefined
在stm32f103.h中添加 typedef enum {FALSE = 0, TRUE = !FALSE} bool; 就没有错误了 |