This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
大家好!
美好的一天!
我正在使用 Lab03.c (InstaSPIN)。
Q1:我尝试使用 float16_t (16位浮点)。如 C:\ti\motorware\motorware_1_01_00_18\docs\motorware_coding_standards.pdf 中所述
第7页。
但编译器出错!
Q2:"uint16_t 和"unsigned int" 或 "unsigned char"和"uint8_t"之间有何区别?
请告诉我如何使用16位浮点吗?
提前感谢。
Dave。
您好、Dave、
uint16_t 和 unsigned int 是相同的、uint8_t 和 unsigned char 是相同的。 (请参阅 stdint.h)
确切的编译器错误是什么?
-Shantanu
对于编译器、float16_t 未知。
它应突出显示为类型、如 int、float 等。
但它没有。
我们仅支持单精度(32位)和双精度(64位)浮点。