From 722e9ea88fc98d5068c1400cc523ba4f21c89e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E7=90=AA?= Date: Tue, 28 Jul 2026 10:10:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86433=E6=8E=A5=E6=94=B6=E5=BC=95?= =?UTF-8?q?=E8=84=9A=E6=94=B9=E4=B8=BAGPIO18?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/example/ble/ble_peripheral/app/src/RF433.h | 6 +++--- project/example/ble/ble_peripheral/app/src/arch_main.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/project/example/ble/ble_peripheral/app/src/RF433.h b/project/example/ble/ble_peripheral/app/src/RF433.h index 89ec4b7..eaca488 100644 --- a/project/example/ble/ble_peripheral/app/src/RF433.h +++ b/project/example/ble/ble_peripheral/app/src/RF433.h @@ -93,14 +93,14 @@ //#define RF_DATA P15 //RF433接收引脚,根据具体单片机定义引脚 -//#define RF433_PIN GPIO_5 //RF433接收引脚,根据具体单片机定义引脚 +//#define RF433_PIN GPIO_18 //RF433接收引脚,根据具体单片机定义引脚 //#define RF_DATA P15//RF433接收引脚,根据具体单片机定义引脚 -#define RF_DATA xc_gpio_read_pin(GPIO_5) //RF433接收引脚,根据具体单片机定义引脚 +#define RF_DATA xc_gpio_read_pin(RF433_PIN) //RF433接收引脚,根据具体单片机定义引脚 -#define RF433_PIN GPIO_5 //RF433接收引脚,根据具体单片机定义引脚 +#define RF433_PIN GPIO_18 //RF433接收引脚,根据具体单片机定义引脚 #define RF_dd GPIO_0 // diff --git a/project/example/ble/ble_peripheral/app/src/arch_main.c b/project/example/ble/ble_peripheral/app/src/arch_main.c index 31a2a7a..d5b7975 100644 --- a/project/example/ble/ble_peripheral/app/src/arch_main.c +++ b/project/example/ble/ble_peripheral/app/src/arch_main.c @@ -239,11 +239,11 @@ void board_init() { clock_init(); // app_uart_init(); - rf433_gpio_init(); - rf433_decoder_init(); #if (_DEBUG_ == 1) app_uart_init(); #endif + rf433_gpio_init(); + rf433_decoder_init(); //h // LOGI("ytt sdk version: %s build time: %s %s\n", TOSTRING(SDK_VERSION), __DATE__, __TIME__); stack_tag();