stm32 usb error : identifier "bool" is undefined

简介: .\usb\USB\usb_pwr.h(54): error:  #20: identifier "bool" is undefinedusb\USB\usb_pwr.h(54): error:  #20: identifier "bool" is undefinedusb-driver\STM32_USB-FS-Device_DriverV3.

.\usb\USB\usb_pwr.h(54): error:  #20: identifier "bool" is undefined
usb\USB\usb_pwr.h(54): error:  #20: identifier "bool" is undefined
usb-driver\STM32_USB-FS-Device_DriverV3.1.1\src\usb_core.c(511): error:  #20: identifier "TRUE" is undefined
usb-driver\STM32_USB-FS-Device_DriverV3.1.1\src\usb_core.c(45): error:  #20: identifier "FALSE" is undefined

 

 

在stm32f103.h中添加       typedef enum {FALSE = 0, TRUE = !FALSE} bool;    就没有错误了 

 

 

 

无标题.png

 http://www.cnblogs.com/xiaobo-Linux/

 

无题.png

 

目录
相关文章
|
3天前
|
小程序 前端开发 API
【微信小程序】TypeError: Cannot read property ‘get‘ of undefined & Error: MiniProgramError
【微信小程序】TypeError: Cannot read property ‘get‘ of undefined & Error: MiniProgramError
|
3天前
|
资源调度 前端开发
编译第三方前端项目时候出现Syntax Error: TypeError: Cannot set properties of undefined (setting ‘parent‘)
编译第三方前端项目时候出现Syntax Error: TypeError: Cannot set properties of undefined (setting ‘parent‘)
51 0
undefined reference to symbol 'dlsym@@GLIBC_2.17' libdl.so: error adding symbols: DSO missing from c
undefined reference to symbol 'dlsym@@GLIBC_2.17' libdl.so: error adding symbols: DSO missing from c
416 0
|
5月前
Uncaught runtime errors: × ERROR Cannot read properties of undefined (reading ‘ vue2&vue-router兼容性问题
Uncaught runtime errors: × ERROR Cannot read properties of undefined (reading ‘ vue2&vue-router兼容性问题
163 0
|
6月前
Fatal error: Call to undefined function openssl_pkey_get_private()
Fatal error: Call to undefined function openssl_pkey_get_private()
36 0
|
5月前
Error:express-session deprecated undefined resave option; provide resave option app.js:17:10
Error:express-session deprecated undefined resave option; provide resave option app.js:17:10
Error:express-session deprecated undefined resave option; provide resave option app.js:17:10
|
6月前
|
JavaScript
vue报错: ERROR TypeError: Cannot read property 'version' of undefined
vue报错: ERROR TypeError: Cannot read property 'version' of undefined
33 1
|
6月前
|
编译器
error TS2322 Type ‘string null‘ is not assignable to type ‘string undefined‘.
error TS2322 Type ‘string null‘ is not assignable to type ‘string undefined‘.
103 1
|
6月前
|
NoSQL MongoDB
connect-mongo无法连接到mongodb报错Error: failed to connect to [undefined:27017]
connect-mongo无法连接到mongodb报错Error: failed to connect to [undefined:27017]
Error: undefined method `launchd_service_path‘ for xxx
使用brew命令进行启动就报错。
205 0