- Wed Nov 10, 2010 10:28 am
#113146
Hi all, I'm new in this forum.
For an engineering project i'm envolved on, i have to create a C application running on the Olimex SAM9-L9260 evaluation board.
This application has got to run under the OS (Linux Debian 5.0 prebuilt on that board), so i suppose i don't have to low-level initialize memory with assembly routines as described in the TEST_BUTT example provided by Olimex.
Well, so far so good.
The problem is that i want to use several features specific for the AT91SAM9260 microcontroller mounted on the board. It means that i should be able to use AT91 registries and functions for managing I/O lines, ADC, Usart etc.
Surfing the web i saw that the most common ways to work with this boards are:
1. create applications that run without the need of an OS (stand alone applications that initialize memory by themselves and use addresses, definitions and functions defined in some .h file like AT91SAM9260.h, lib_AT91SAM9260.h etc. You can have a very low-level control on the microcontroller's registries and functionalities)
2. create applications that run as kernel modules, using headers and code from linux sources and specifically from the directory $LINUX_SRC/arch/arm/mach_at91 (i suppose that in this way the OS allocates specific AT91SAM9260 memory maps, makes interrupt vector etc. Then you can manipulate I/O pins and several peripherals by calling functions starting with "at91_".
Well, my question is: can i do a simple C application (not a kernel module!!!) that makes me manipulate AT91SAM9260 peripherals by importing some ATMEL or OLIMEX library? If so, could you just make a little C example or could you post some link to look at (please don't post official ATMEL links... )
The only functionalities i need are: I/O pins managing, AD Conversions and PWM generation.
Thanks in advance and sorry for my potential uncorrect english
Bye
For an engineering project i'm envolved on, i have to create a C application running on the Olimex SAM9-L9260 evaluation board.
This application has got to run under the OS (Linux Debian 5.0 prebuilt on that board), so i suppose i don't have to low-level initialize memory with assembly routines as described in the TEST_BUTT example provided by Olimex.
Well, so far so good.
The problem is that i want to use several features specific for the AT91SAM9260 microcontroller mounted on the board. It means that i should be able to use AT91 registries and functions for managing I/O lines, ADC, Usart etc.
Surfing the web i saw that the most common ways to work with this boards are:
1. create applications that run without the need of an OS (stand alone applications that initialize memory by themselves and use addresses, definitions and functions defined in some .h file like AT91SAM9260.h, lib_AT91SAM9260.h etc. You can have a very low-level control on the microcontroller's registries and functionalities)
2. create applications that run as kernel modules, using headers and code from linux sources and specifically from the directory $LINUX_SRC/arch/arm/mach_at91 (i suppose that in this way the OS allocates specific AT91SAM9260 memory maps, makes interrupt vector etc. Then you can manipulate I/O pins and several peripherals by calling functions starting with "at91_".
Well, my question is: can i do a simple C application (not a kernel module!!!) that makes me manipulate AT91SAM9260 peripherals by importing some ATMEL or OLIMEX library? If so, could you just make a little C example or could you post some link to look at (please don't post official ATMEL links... )
The only functionalities i need are: I/O pins managing, AD Conversions and PWM generation.
Thanks in advance and sorry for my potential uncorrect english
Bye