|
|
Int main(Int argc, Char* argv[])* D0 e! b) X5 c# Y- P& f! [
{& h( }# S4 W: o: K: k
EDMA3_DRV_Result edmaResult = EDMA3_DRV_SOK;
3 {8 K9 J5 {: V$ U/ `" G3 ` 7 d% P$ z3 Z& {1 _6 H7 p
Error_Block eb;
- x( F' K/ d9 y4 a) k8 |4 V6 m Task_Params taskParams;( B3 W( M4 \; u( j! g8 U
\. O2 D6 S2 e& z Log_print0(Diags_ENTRY, "--> main:");
2 Q' K: ?+ r( \6 r" k; F) ?, }. h& D: z, G3 i; r7 h
/* must initialize the error block before using it */% ?% R8 ] n% U
Error_init(&eb);( ]/ p$ Z8 M. C; i% ?
# u7 I* }% Z4 E( o2 j
/* create main thread (interrupts not enabled in main on BIOS) */
5 d3 w+ u" _, q$ l9 x) q0 Q Task_Params_init(&taskParams);7 ~# i3 c2 @& Y4 i! Y0 A) @
taskParams.instance->name = "smain";
; _7 B! c) A& j+ t2 K taskParams.arg0 = (UArg)argc;
3 w, X- u, b% x0 p2 j% D; J; z2 ? taskParams.arg1 = (UArg)argv;6 |" m& u: n! {7 K. I5 b% e5 |
taskParams.stackSize = 0x1000;
7 ]; s3 g( a# {# K Task_create(smain, &taskParams, &eb);
! b+ J5 H5 j& e6 E j7 e
3 _0 j! K( Y9 h, z if (Error_check(&eb)) {" I; k* j* j6 h* P
System_abort("main: failed to create application startup thread");
% g+ {& h& Y! t: w; p& j }
$ c- I/ H6 }0 o# _1 y
+ z) Y4 V) i+ f5 d+ b /* start scheduler, this never returns *// g; J' ~$ ^% F: h, u
BIOS_start();; G2 ~% D$ r: S1 E
% P$ |7 i7 O; ]$ Q
/* should never get here */2 K1 r7 Y, I( A# h6 c8 W* T
Log_print0(Diags_EXIT, "<-- main:");. s2 Z i% {) h4 _0 _
return (0);
( ?( m6 p* _: Q}
, {8 s# t- D: N( M( Y- H这是创龙helloword的main函数,其中的 Log_print0(Diags_ENTRY, "--> main:")信息没有通过串口打印出来,请问大家该dsp上运行的程序要怎么打印调试信息?我用的是软件套件是mcsdk,硬件是omapl138。请大家帮忙啊,谢谢。
# I) o. B3 _" [3 ]4 a
1 h, d; h, E( a, F U |
|