当用28335的XINTF访问16bit外扩双口RAM时,想实现float类型的数据与另一个单片机的数据交互。
用C语言进行编程时,如何实现呢,直接定义成float行数据,再把这个数据传递到制定的地址可以吗?
如:#define mydata *(float*) 0x100000 //zone6
直接 赋值 mydata = 0.1;
这么写对吗?
还是需要拆分为两个unsigned int类型数据 用xintf发两遍呢?急急急
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.