From 143fa4175554a87c8a7c4bca04a5c08fcad9d021 Mon Sep 17 00:00:00 2001 From: yichin Date: Tue, 7 Apr 2020 11:18:20 +0800 Subject: [PATCH] UART does not work QQ --- .../examples/simple_central/cc26xx/app/mem_board_central.h | 4 ++-- .../src/examples/simple_central/cc26xx/app/simple_central.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_central/cc26xx/app/mem_board_central.h b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_central/cc26xx/app/mem_board_central.h index 0252036db..c1a687f98 100644 --- a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_central/cc26xx/app/mem_board_central.h +++ b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_central/cc26xx/app/mem_board_central.h @@ -7,8 +7,8 @@ #define MEM_BOARD_CENTRAL #include "mem_central_pin.h" -#include "uart_printf.h" -#include +//#include "uart_printf.h" +//#include static void MemBoard_init(void){ mem_pin_open(); diff --git a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_central/cc26xx/app/simple_central.c b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_central/cc26xx/app/simple_central.c index f36127c3a..e7a9097d2 100644 --- a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_central/cc26xx/app/simple_central.c +++ b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_central/cc26xx/app/simple_central.c @@ -571,7 +571,7 @@ static void SimpleBLECentral_taskFxn(UArg a0, UArg a1) SimpleBLECentral_init(); MemBoard_init(); - System_printf("Hello, universe!\r\n"); +// System_printf("Hello, universe!\r\n"); // Application main loop for (;;) @@ -756,7 +756,7 @@ static void SimpleBLECentral_processRoleEvent(gapCentralRoleEvent_t *pEvent) case GAP_DEVICE_INIT_DONE_EVENT: { maxPduSize = pEvent->initDone.dataPktLen; - SetMemOutputPIN(Board_GLED, 1); + SetMemOutputPIN(Board_GLED, Board_LED_ON); Display_print0(dispHandle, ROW_ZERO, 0, "BLE Central"); Display_print0(dispHandle, ROW_ONE, 0, Util_convertBdAddr2Str(pEvent->initDone.devAddr)); Display_print0(dispHandle, ROW_TWO, 0, "Initialized");