添加头文件 设置按键外部中断 #include<rtthread.h>#include<rtdevice.h>#include"board.h"#defineDBG_TAG"main"#defineDBG_LVLDBG_LOG#include<rtdbg.h>#defineB1_PIN_NUMGET_PIN(B,1)/* 中断回调函数 */voidB1_IRQ_CB(void*args){rt_kprintf("enter B1_IRQ_CB!\r\n");rt_pin_write(B1_PIN_NUM...