Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
22 years ago

how to handle the uart

if i can handle the uart under OS-II like under unix?

the MicroC/OS-II support all the system function like open, read ,write, tcgetattr, tcsetattr, and the struct termios, etc.?

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    MicroC/OS-II does not support the UART directly.

    But the Nios II port of MicroC/OS-II includes the HAL library which does provide UART support using the unix like functions you mention. Please see the documentation for more details.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    how to handle sram and flash?e.g:write data to an address(i know exactly where it is) of sram .

    thank you!