|
|
Int main(Int argc, Char* argv[])
0 _: D! y4 U- m; ~) ]{' q6 L1 G* Y7 U b, {. G: n1 R. K
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;
6 V4 [) h& T/ j1 A5 e) K$ \ 2 h- ?5 |( c( j0 \; Z* M0 W6 D
Error_Block eb;
) M: [1 H$ a& a! Z Task_Params taskParams;& z4 n$ k) m7 a/ R- U5 j+ K
0 N/ \; F4 K7 W, G2 M
Log_print0(Diags_ENTRY, "--> main:");7 K$ Q) U! k/ \4 g% S1 Y& P
. x. }2 [5 B: v# ` /* must initialize the error block before using it */
: X8 ?9 }- y* G* F1 k' n Error_init(&eb);( T( ^* m! r. W% j7 B1 [6 q
: n! E2 T0 D3 D4 ?5 i
/* create main thread (interrupts not enabled in main on BIOS) */# P: z9 N' P* K8 Y: F( `
Task_Params_init(&taskParams);# g* n7 R/ t1 e! a
taskParams.instance->name = "smain";0 W+ Y( O8 U3 I1 a8 h+ W
taskParams.arg0 = (UArg)argc;
4 U/ R2 H+ V( E1 v3 C8 H8 ]* t taskParams.arg1 = (UArg)argv;
, ?7 Z% g# m, d) W taskParams.stackSize = 0x1000;
$ f. R8 B6 X& L: E1 K/ M4 ~: D Task_create(smain, &taskParams, &eb);
1 Z6 N2 V/ ?( }& L, u- r" q: w% X) }7 b4 u* L* ?- A4 m
if (Error_check(&eb)) { i9 U: i& _9 D. e5 Z
System_abort("main: failed to create application startup thread");
& y5 M$ g9 w8 h! H7 } }, V, L; ]/ j2 m6 s3 K7 K& M0 {
& P: R- [6 S. s' D6 |/ f /* start scheduler, this never returns */
4 P0 L! @% c. M; r- P; I' q BIOS_start();- D$ B0 M3 S8 [+ c4 m- L
/ [" b4 U. }! d8 u8 N
/* should never get here */7 u4 O3 c4 K8 M6 y* j
Log_print0(Diags_EXIT, "<-- main:");
M' s+ n8 w9 s5 D; L( t return (0);$ m" k6 G3 K/ s+ A z
}
$ j) u9 O& C+ [6 i( O# D$ \这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。: Z0 @+ T$ X! V. d3 z8 A7 w
( H6 T' W% K3 `* C/ o |
|