This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

i made progresses but now got confused.


Hi, all
i used at91sam7s. Since i can't run the examples in the ecos examples
directory. That means when i compile and link and got the hello.elf
and then download it to flash. After restart the board, no message
displayed on the hyperterminal.
So i write my own helloecos.c, In the main(), i do the following things:
*enable clock
*Init Uart
   **open PIO for Uart
   **configure uart baudrate and other arguments
   **Enable Transmitter and receiver
*printf("Hello, eCos world\n");
Then i compile and link my own helloecos.c and download the
helloecos.elf to flash, After restart the board, The hyperterminal
show the message "Hello, eCos world" correctly.

Then i was confused, my question is:
Why should i init the uart myself? I thought eCos will do that for me,
besides the eCos hello world example on the website don't tell i
should init uart first to see the result.

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]