RT-Thread-PIN
1. 设置引脚模式 rt_pin_mode()
参数 | 说明 |
---|---|
PIN_MODE_OUTPUT | 输出 |
PIN_MODE_INPUT | 输入 |
PIN_MODE_INPUT_PULLUP | 上拉输入 |
PIN_MODE_INPUT_PULLDOWN | 下拉输入 |
PIN_MODE_OUTPUT_OD | 开漏输出 |
2. 设置引脚电平 rt_pin_write()
3. 读取引脚电平 rt_pin_read ()
4. 绑定引脚中断回调函数 rt_pin_attach_irq ()
5.脱离引脚中断回调函数 rt_pin_detach_irq ()
6. 使能 / 屏蔽引脚中断 rt_pin_irq_enable ()
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 The personal blog of DWen_666!