|
|
Int main(Int argc, Char* argv[])
' t: K8 a7 D& R! Z% r{
Q7 K/ b' x( t% j4 k% B/ T EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;
5 t+ a$ X6 T: u/ i1 K9 Z5 _; a : e# D3 \$ u3 B. P
Error_Block eb;
: i' @$ Y0 b; t7 J3 }) O Task_Params taskParams;% _0 x3 z$ g) ^2 x& v" N
: U9 d, j0 T5 z+ i+ J* { Log_print0(Diags_ENTRY, "--> main:");
! z7 f, B; T1 o; s0 U
' _' M" \9 ]7 W& B! O6 N; k$ H /* must initialize the error block before using it */9 c; U4 W- S- n, y4 J
Error_init(&eb);
: g, A8 x3 S( _9 C6 Q- S- C7 Y" h2 ^/ ^4 ^2 x7 {4 }
/* create main thread (interrupts not enabled in main on BIOS) *// n% r r, `. z+ ~; s
Task_Params_init(&taskParams);1 o, _+ `$ [6 X& ~& c/ @: s
taskParams.instance->name = "smain";4 a4 R I! l2 i( V: Q7 F5 G
taskParams.arg0 = (UArg)argc;
: l: j& z2 T# s: s" E taskParams.arg1 = (UArg)argv;
8 j8 i7 G g# M$ ` taskParams.stackSize = 0x1000;2 q$ R0 b) s! L* j
Task_create(smain, &taskParams, &eb);
+ @1 p: j4 M+ T% |: o
0 P/ I/ _/ `. d2 T9 [6 Q if (Error_check(&eb)) {
: S; H$ V0 b; a! ^) T System_abort("main: failed to create application startup thread");! Q4 w' Y3 [5 n! v: n7 o/ Y1 \4 m
}
2 p- g3 g0 n/ M' `
n6 @7 o; n, f, | /* start scheduler, this never returns */1 R1 F1 w$ |$ w+ X0 }
BIOS_start();' Q1 c. `+ i. S( \; u0 z9 Y
; C& Z* H7 `5 G8 G3 W# |* Q /* should never get here */' T$ y/ ?: F; ]+ F9 y4 Y
Log_print0(Diags_EXIT, "<-- main:");! V0 O0 n2 t! I6 C8 \; ^* A
return (0);
6 B3 J3 X3 z3 y}6 j* q% ^9 q& \7 g2 ^
这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。
/ C5 T8 S) i4 V1 U# ?% U! x5 a4 E" K# @3 o4 s
|
|