app启动时如果boot魔数校验错误则自动升级bootloader
This commit is contained in:
@@ -175,12 +175,17 @@ void param_err_handle(const char *param,const char *file,const char *fun,int lin
|
||||
|
||||
void cpy4byte(uint32_t *dst,uint32_t *src,int num_4byte);
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
// 如果s==0,则打印
|
||||
#define param_check(s) \
|
||||
if((s)==0){\
|
||||
param_err_handle(#s,__FILE__,__func__,__LINE__);}
|
||||
#else
|
||||
|
||||
#define param_check(s)
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef RT_THREAD
|
||||
|
||||
|
@@ -134,18 +134,18 @@
|
||||
// <h>Console Configuration
|
||||
// <c1>Using console
|
||||
// <i>Using console
|
||||
#define RT_USING_CONSOLE
|
||||
//#define RT_USING_CONSOLE
|
||||
// </c>
|
||||
|
||||
// <o>the buffer size of console <1-1024>
|
||||
// <i>the buffer size of console
|
||||
// <i>Default: 128 (128Byte)
|
||||
#define RT_CONSOLEBUF_SIZE 128
|
||||
//#define RT_CONSOLEBUF_SIZE 128
|
||||
|
||||
// <s>The device name for console
|
||||
// <i>The device name for console
|
||||
// <i>Default: uart2
|
||||
#define RT_CONSOLE_DEVICE_NAME "uart2"
|
||||
//#define RT_CONSOLE_DEVICE_NAME "uart2"
|
||||
// </h>
|
||||
|
||||
#if defined(RTE_USING_DEVICE)
|
||||
@@ -202,5 +202,8 @@
|
||||
#define IDLE_THREAD_STACK_SIZE 1024
|
||||
|
||||
|
||||
#define RT_USING_CPU_FFS
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user