UART does not work QQ
This commit is contained in:
+2
-2
@@ -7,8 +7,8 @@
|
||||
#define MEM_BOARD_CENTRAL
|
||||
|
||||
#include "mem_central_pin.h"
|
||||
#include "uart_printf.h"
|
||||
#include <xdc/runtime/System.h>
|
||||
//#include "uart_printf.h"
|
||||
//#include <xdc/runtime/System.h>
|
||||
|
||||
static void MemBoard_init(void){
|
||||
mem_pin_open();
|
||||
|
||||
+2
-2
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user