Project

General

Profile

ARM peripherals

Added by Simon Therriault over 13 years ago

Hi,

I got my setup working now... I can debug a hello world application, trace in it using gdbserver etc... Now, I'm wondering how to access the hardware of the AM1808... spi, uart, timers, ios, interrupts, etc... Is there a good place to find that info?

Thanks!


Replies (2)

RE: ARM peripherals - Added by Michael Williamson over 13 years ago

Well,

There are two paths for hardware access. Many of the devices (LCD, some SPI, uarts, etc.) have corresponding devices drivers in linux already, so you would access for example UARTS by opening /dev/ttyS0 or /dev/ttyS1, etc. The LCD is available through /dev/fb.

If that won't do it for you, or you want to write your own device handler (e.g., a new or custom SPI chip), then you'll need to write a kernel module (which allows access to the hardware layer). You might want to pick up a copy of this book, Linux Device Drivers. It's also readable online via that same link.

You might want to check out the linux source code (see the wiki page on that), to get a feel for what drivers are already available.

-Mike

RE: ARM peripherals - Added by Simon Therriault over 13 years ago

Hey Mike,

I'm not sure I follow you when you say to check out the linux source code to see which drivers are already available... Is it stuff under linux-davinci the linux source code or stuff under angstrom?

I don't think I need to write my own driver... As long as I can have quite a real-time access to the hardware...

Thanks!

    (1-2/2)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)