单总线驱动
单总线传感器,一个io可完成信号采集,缺点速度慢,信号采集过程中不宜有中断产生,容易产生数据获取失败。
单总线驱动需要一个us级 的延时函数
dwt_delay.c
/*
* Simple microseconds delay routine, utilizing ARM's DWT
* (Data Watchpoint and Trace Unit) and HAL library.
* Intended to use with gcc compiler, but I hope it can b.
原创
2020-12-15 09:16:43 ·
665 阅读 ·
0 评论