PSADC 配置
驱动配置
在 Luban-Lite 根目录下执行 scons
--menuconfig,进入 menuconfig 的功能配置界面,按如下选择(配置中只打开了 PSADC2 和 PSADC6,作为示例):
Board options --->
[ ] Using PSADC0
[ ] Using PSADC1
[*] Using PSADC2
[ ] Using PSADC3
[ ] Using PSADC4
[ ] Using PSADC5
[*] Using PSADC6
[ ] Using PSADC7
[ ] Using PSADC8
[ ] Using PSADC9
[ ] Using PSADC10
[ ] Using PSADC11
当使用 RT-Thread 内核的时候,PSADC 驱动需要依赖 Thread 的 ADC 设备驱动框架,也是在 menuconfig 界面中打开:
Rt-Thread options --->
RT-Thread Components --->
Device Drivers --->
[*] Using ADC device drivers
提示:
为了简化使用,Using PSADCx 会自动打开 RT-Thread 的 ADC 设备驱动框架。
