[Mod] 启用顺序打印

This commit is contained in:
gaoyang3513
2024-07-24 23:40:24 +08:00
parent 94bc1e6d21
commit 47725a5b15
5 changed files with 38 additions and 33 deletions

View File

@ -116,6 +116,9 @@ OF SUCH DAMAGE.
#ifdef CONFIG_IPERF_TEST
#define IPERF_TASK_MAX 1
#define CONFIG_PRINT_IN_SEQUENCE
#ifdef CONFIG_PRINT_IN_SEQUENCE
#define IPERF_STACK_SIZE 1024
#else

View File

@ -134,7 +134,7 @@ void Ebyte_Port_ReceiveCallback( uint16_t state, uint8_t *buffer, uint8_t lengt
if( ! PC_isConnected )
{
DEBUG("\r\n Receive Data:");
DEBUGPRINT("\r\n Receive Data:");
Ebyte_BSP_UartTransmit ( buffer, length );
}

View File

@ -23,6 +23,7 @@
#include "ebyte_kfifo.h"
#include "ebyte_debug.h"
#include "wrapper_os.h"
#include "debug_print.h"
void Task_Transmit( void );
void Task_Button( void );
@ -68,8 +69,8 @@ int ebyte_main( void )
/* MCU <20><>ȫ<EFBFBD><C8AB><EFBFBD>ж<EFBFBD> */
// Ebyte_BSP_GlobalIntEnable();
DEBUG( "Start PingPong.....\r\n" );
DEBUG( "Please push button1 or button2.....\r\n" );
DEBUGPRINT( "Start PingPong.....\r\n" );
DEBUGPRINT( "Please push button1 or button2.....\r\n" );
while( 1 ) {
/* <20><><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><C2BC><EFBFBD>Ӧ */
@ -139,7 +140,7 @@ void Task_Transmit( void )
{
pongLength = 5;
}else{
DEBUG( "\r\n Echo : pong \r\n" );
DEBUGPRINT( "\r\n Echo : pong \r\n" );
pongLength = 4;
}
@ -178,7 +179,7 @@ void Task_Button( void )
pingLength = 5;
}else
{
DEBUG( "\r\n Send Command : ping \r\n" );
DEBUGPRINT( "\r\n Send Command : ping \r\n" );
pingLength = 4;
}
@ -204,7 +205,7 @@ void Task_Button( void )
pingLength = 5;
}else
{
DEBUG( "\r\n Send Command : ping \r\n" );
DEBUGPRINT( "\r\n Send Command : ping \r\n" );
pingLength = 4;
}

View File

@ -24,6 +24,7 @@
#include <stdint.h>
//#include "stm8l15x_conf.h"
#include "gd32w51x.h"
#include "debug_print.h"
#include "board_mini_printf.h"
/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> LED */

View File

@ -389,12 +389,12 @@ void vRadioCheckLink(void)
g_chip_id = lRadioChipVersion();
if(0x00231000==(g_chip_id&0x00FFFF00)) break;
DEBUG( "Link Error.....\r\n" );
DEBUGPRINT( "Link Error.....\r\n" );
delay1ms(500);
i++;
if(i >= 20) while(1);
}
DEBUG( "Link Device:E48-XXXM20S....\r\n" );
DEBUGPRINT( "Link Device:E48-XXXM20S....\r\n" );
}
void vRadioSetFreqChannel(uint8_t channel)