You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.3 KiB
51 lines
1.3 KiB
////////////////////////////////////////////////////////////////////////////
|
|
///@copyright Copyright (c) 2018, 传控科技 All rights reserved.
|
|
///-------------------------------------------------------------------------
|
|
/// @file bsp_drv.c
|
|
/// @brief bsp @ driver config
|
|
///-------------------------------------------------------------------------
|
|
/// @version 1.0
|
|
/// @author CC
|
|
/// @date 20180331
|
|
/// @note cc_AS_stc02
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
#include "task_debug.h"
|
|
#include "../app/app_config.h"
|
|
#include "../bsp/bsp_config.h"
|
|
#include "../msp/uart0.h"
|
|
|
|
S_TASK_DEBUG _s_task_debug;
|
|
|
|
//=============================================
|
|
void L3_task_debug_init(void)
|
|
{
|
|
L1_task_init(&_s_task_debug.task);
|
|
L3_task_s_go(_s_task_debug,D_task_init);
|
|
}
|
|
|
|
#define D_task_ADC_CHx_DEBUG 0x53
|
|
void L3_task_debug(S_TASK_DEBUG *s)
|
|
{
|
|
TTSS_Task_init()
|
|
L2_task_go(D_task_ADC_CHx_DEBUG);
|
|
|
|
TTSS_Task_step(D_task_ADC_CHx_DEBUG)
|
|
/* L0_uart0_ulhex(R.adval[0]);
|
|
L0_uart0_uc(' ');
|
|
L0_uart0_ulhex(R.adval[1]);
|
|
L0_uart0_uc(' ');
|
|
L0_uart0_ulhex(R.adval[2]);
|
|
L0_uart0_uc(' ');
|
|
L0_uart0_ulhex(R.adval[3]);
|
|
L0_uart0_uc(' ');*/
|
|
// L0_uart0_ulhex(R.total_weight);
|
|
L0_uart0_0d0a();
|
|
L2_task_go_Tdelay(D_task_ADC_CHx_DEBUG,D_Tdelay_Msec(15)); //延时15ms
|
|
|
|
TTSS_Task_end();
|
|
}
|
|
|
|
|
|
|
|
|
|
|