csmyldl 發(fā)表于 2025-11-1 10:29
編譯后都會(huì)有錯(cuò)誤提示,根據(jù)提示去修改就行了
hjx5548 發(fā)表于 2025-11-2 19:28
應(yīng)該怎樣修改呢?
The following restrictions apply to bit variables and bit declarations:
A bit cannot be declared as a pointer. For example:
bit *ptr; /* invalid */
An array of type bit is invalid. For example:
bit ware [5]; /* invalid */
Functions that disable interrupts (#pragma disable) and functions that are declared using an explicit register bank (using n) cannot return a bit value. The Cx51 Compiler generates an error message for functions of this type that attempt to return a bit type.
| 歡迎光臨 (http://m.raoushi.com/bbs/) | Powered by Discuz! X3.1 |