[Mod] 启用顺序打印
This commit is contained in:
@ -116,6 +116,9 @@ OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#ifdef CONFIG_IPERF_TEST
|
#ifdef CONFIG_IPERF_TEST
|
||||||
#define IPERF_TASK_MAX 1
|
#define IPERF_TASK_MAX 1
|
||||||
|
|
||||||
|
#define CONFIG_PRINT_IN_SEQUENCE
|
||||||
|
|
||||||
#ifdef CONFIG_PRINT_IN_SEQUENCE
|
#ifdef CONFIG_PRINT_IN_SEQUENCE
|
||||||
#define IPERF_STACK_SIZE 1024
|
#define IPERF_STACK_SIZE 1024
|
||||||
#else
|
#else
|
||||||
|
|||||||
@ -134,7 +134,7 @@ void Ebyte_Port_ReceiveCallback( uint16_t state, uint8_t *buffer, uint8_t lengt
|
|||||||
if( ! PC_isConnected )
|
if( ! PC_isConnected )
|
||||||
{
|
{
|
||||||
|
|
||||||
DEBUG("\r\n Receive Data:");
|
DEBUGPRINT("\r\n Receive Data:");
|
||||||
Ebyte_BSP_UartTransmit ( buffer, length );
|
Ebyte_BSP_UartTransmit ( buffer, length );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -23,6 +23,7 @@
|
|||||||
#include "ebyte_kfifo.h"
|
#include "ebyte_kfifo.h"
|
||||||
#include "ebyte_debug.h"
|
#include "ebyte_debug.h"
|
||||||
#include "wrapper_os.h"
|
#include "wrapper_os.h"
|
||||||
|
#include "debug_print.h"
|
||||||
|
|
||||||
void Task_Transmit( void );
|
void Task_Transmit( void );
|
||||||
void Task_Button( void );
|
void Task_Button( void );
|
||||||
@ -68,8 +69,8 @@ int ebyte_main( void )
|
|||||||
/* MCU <20><>ȫ<EFBFBD><C8AB><EFBFBD>ж<EFBFBD> */
|
/* MCU <20><>ȫ<EFBFBD><C8AB><EFBFBD>ж<EFBFBD> */
|
||||||
// Ebyte_BSP_GlobalIntEnable();
|
// Ebyte_BSP_GlobalIntEnable();
|
||||||
|
|
||||||
DEBUG( "Start PingPong.....\r\n" );
|
DEBUGPRINT( "Start PingPong.....\r\n" );
|
||||||
DEBUG( "Please push button1 or button2.....\r\n" );
|
DEBUGPRINT( "Please push button1 or button2.....\r\n" );
|
||||||
|
|
||||||
while( 1 ) {
|
while( 1 ) {
|
||||||
/* <20><><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><C2BC><EFBFBD>Ӧ */
|
/* <20><><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><C2BC><EFBFBD>Ӧ */
|
||||||
@ -139,7 +140,7 @@ void Task_Transmit( void )
|
|||||||
{
|
{
|
||||||
pongLength = 5;
|
pongLength = 5;
|
||||||
}else{
|
}else{
|
||||||
DEBUG( "\r\n Echo : pong \r\n" );
|
DEBUGPRINT( "\r\n Echo : pong \r\n" );
|
||||||
pongLength = 4;
|
pongLength = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -178,7 +179,7 @@ void Task_Button( void )
|
|||||||
pingLength = 5;
|
pingLength = 5;
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
DEBUG( "\r\n Send Command : ping \r\n" );
|
DEBUGPRINT( "\r\n Send Command : ping \r\n" );
|
||||||
pingLength = 4;
|
pingLength = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -204,7 +205,7 @@ void Task_Button( void )
|
|||||||
pingLength = 5;
|
pingLength = 5;
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
DEBUG( "\r\n Send Command : ping \r\n" );
|
DEBUGPRINT( "\r\n Send Command : ping \r\n" );
|
||||||
pingLength = 4;
|
pingLength = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -24,6 +24,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
//#include "stm8l15x_conf.h"
|
//#include "stm8l15x_conf.h"
|
||||||
#include "gd32w51x.h"
|
#include "gd32w51x.h"
|
||||||
|
#include "debug_print.h"
|
||||||
#include "board_mini_printf.h"
|
#include "board_mini_printf.h"
|
||||||
|
|
||||||
/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> LED */
|
/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> LED */
|
||||||
|
|||||||
@ -389,12 +389,12 @@ void vRadioCheckLink(void)
|
|||||||
g_chip_id = lRadioChipVersion();
|
g_chip_id = lRadioChipVersion();
|
||||||
if(0x00231000==(g_chip_id&0x00FFFF00)) break;
|
if(0x00231000==(g_chip_id&0x00FFFF00)) break;
|
||||||
|
|
||||||
DEBUG( "Link Error.....\r\n" );
|
DEBUGPRINT( "Link Error.....\r\n" );
|
||||||
delay1ms(500);
|
delay1ms(500);
|
||||||
i++;
|
i++;
|
||||||
if(i >= 20) while(1);
|
if(i >= 20) while(1);
|
||||||
}
|
}
|
||||||
DEBUG( "Link Device:E48-XXXM20S....\r\n" );
|
DEBUGPRINT( "Link Device:E48-XXXM20S....\r\n" );
|
||||||
}
|
}
|
||||||
|
|
||||||
void vRadioSetFreqChannel(uint8_t channel)
|
void vRadioSetFreqChannel(uint8_t channel)
|
||||||
|
|||||||
Reference in New Issue
Block a user