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.
C2000Ware中提供的 HRPWM SFO库文件有另种类型,Bit-field based和Driverlib based,请问这两种类型的区别在哪里?实际应用中如何选择?希望能得到专家的回复,谢谢!
C:\ti\c2000\C2000Ware_4_01_00_00\libraries\calibration\hrpwm\f28004x\lib
INDEX LIBRARY USAGE
User can link to either Bit-field or Driverlib based Index SFO library in
their example wherein, based on the example build configuration(eabi or coff)
appropriate library will be linked.
Bit-field based是指寄存器形式的,Driverlib based是指驱动库形式的
C2000芯片的例程最初都是基于寄存器形式的,从最近几年开始转向开发基于驱动库形式的例程,所以会有这两者的区别。
但是实现功能上是一样的,直观点的你可以对比一下同款芯片的同一个例程用两种不同方式编写:
C:\ti\c2000\C2000Ware_4_01_00_00\device_support\f28004x\examples\adc
C:\ti\c2000\C2000Ware_4_01_00_00\driverlib\f28004x\examples\adc
实际应用的话如果你对寄存器形式的编程风格没有执念的话建议选择驱动库形式,因为现在的第三代C2000开发的例程都是基于Driverlib 的
1和3只是一个索引,不是真正的库文件。
你可以看一下readme里面的说明