红外改为0.1.1版,关闭发送接收样例

This commit is contained in:
james 2024-08-06 02:00:41 +08:00
parent 8502fe18b5
commit e0434cae47
4 changed files with 9 additions and 21 deletions

16
.config
View File

@ -1146,18 +1146,12 @@ CONFIG_NEC_DEVIATION=100
# end of Select infrared decoder
CONFIG_PKG_USING_DRV_INFRARED=y
CONFIG_INFRARED_SEND=y
CONFIG_INFRARED_SEND_PWM="pwm4"
CONFIG_INFRARED_PWM_DEV_CHANNEL=3
CONFIG_INFRARED_SEND_HWTIMER="timer15"
CONFIG_INFRARED_MAX_SEND_SIZE=1000
CONFIG_INFRARED_RECEIVE=y
CONFIG_INFRARED_RECEIVE_PIN=17
CONFIG_INFRARED_RECEIVE_HWTIMER="timer16"
# CONFIG_INFRARED_SEND is not set
# CONFIG_INFRARED_RECEIVE is not set
# CONFIG_PKG_USING_INFRARED_V010 is not set
# CONFIG_PKG_USING_INFRARED_V011 is not set
CONFIG_PKG_USING_INFRARED_LATEST_VERSION=y
CONFIG_PKG_INFRARED_VER="latest"
CONFIG_PKG_USING_INFRARED_V011=y
# CONFIG_PKG_USING_INFRARED_LATEST_VERSION is not set
CONFIG_PKG_INFRARED_VER="v0.1.1"
# CONFIG_PKG_USING_MULTI_INFRARED is not set
# CONFIG_PKG_USING_AGILE_BUTTON is not set
# CONFIG_PKG_USING_AGILE_LED is not set

View File

@ -4,4 +4,6 @@
![alt text](image-1.png)
移出来+头文件可以编译
![alt text](image.png)
![alt text](image.png)
对照示例0.1.1版什么都不用做,也不会报错什么没定义
.config/rtconfig.h

View File

@ -498,15 +498,7 @@
#define NEC_DEVIATION 100
/* end of Select infrared decoder */
#define PKG_USING_DRV_INFRARED
#define INFRARED_SEND
#define INFRARED_SEND_PWM "pwm4"
#define INFRARED_PWM_DEV_CHANNEL 3
#define INFRARED_SEND_HWTIMER "timer15"
#define INFRARED_MAX_SEND_SIZE 1000
#define INFRARED_RECEIVE
#define INFRARED_RECEIVE_PIN 17
#define INFRARED_RECEIVE_HWTIMER "timer16"
#define PKG_USING_INFRARED_LATEST_VERSION
#define PKG_USING_INFRARED_V011
/* end of peripheral libraries and drivers */
/* AI packages */