Hi,

On Tue, Dec 24, 2013 at 2:58 PM, <[email protected]> wrote:
>
> Hey Guys,
>
> i am quite new to embedded linux ...
> My regular province are microcontrollers like AVR/PIC/STM32 and so on.
>
> Now i want to get fit with embedded linux systems.
> As a beginner i always start to to toggle some leds and so on ... all
fine ...
> now i want start to use with usart interrupt driven communication, but i
dont get it.
>
> Is the anywhere a useful C/C++ - project where i can see how to handle
with receive interrupts ...
> this is for sure as simple as a microcontroller application ... isnt it?

So when writing code for linux, you can write is user space (where most
code runs) or from kernel space.

Interrupts are purely in the domain of kernel space. The UART drivers are
all fully interrupt driven.

Here is some sample code for reading/writing to the serial ports:
https://github.com/dhylands/projects/tree/master/host/sertest

Here is some documentation on working with serial ports under linux:
http://tldp.org/HOWTO/Serial-Programming-HOWTO/

--
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to