apm32f103 fit can & uvcan with no shell
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
/* import board special configuration */
|
||||
#include <xsconfig.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -123,9 +124,10 @@ typedef x_base x_OffPos;
|
||||
#endif
|
||||
|
||||
#define WAITING_FOREVER -1
|
||||
|
||||
// #define KPrintf printf
|
||||
void KPrintf(const char *fmt, ...);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -150,6 +150,8 @@ static int _CanTestRecv(const char *bus_name, const char *driver_name, const c
|
||||
for(i = 0; i<len;i++)
|
||||
KPrintf("0x%02x ", rx_buf[i]);
|
||||
KPrintf("\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -252,7 +252,7 @@ extern int InitUserspace(void);
|
||||
#endif
|
||||
|
||||
StartupOsAssign();
|
||||
ymodem_fun();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -49,14 +49,6 @@ static void ZombieKTaskEntry(void *parameter)
|
||||
lock = CriticalAreaLock();
|
||||
if (JudgeZombieKTaskIsNotEmpty()) {
|
||||
task = SYS_DOUBLE_LINKLIST_ENTRY(KTaskZombie.node_next, struct TaskDescriptor, task_dync_sched_member.sched_link);
|
||||
if(0 == strcmp("main", task->task_base_info.name))
|
||||
{
|
||||
// KPrintf("Zombie KTask Is main\n");
|
||||
SuspendKTask(zombie_recycle);
|
||||
CriticalAreaUnLock(lock);
|
||||
DO_KTASK_ASSIGN;
|
||||
}
|
||||
else
|
||||
{
|
||||
DoubleLinkListRmNode(&(task->task_dync_sched_member.sched_link));
|
||||
CriticalAreaUnLock(lock);
|
||||
|
||||
Reference in New Issue
Block a user