[En-Nut-Discussion] Enabling ADC on EIR
Ulrich Prinz
uprinz2 at netscape.net
Wed Nov 3 13:42:19 CET 2010
Hi!
Search for the cpu definitions in conf/arch/arch.conf
Every CPU has a provides section where it provides its features.
{
macro = "MCU_AT91SAM7SE32",
brief = "Atmel AT91SAM7SE32",
description = "ARM7TDMI 16/32-bit RISC microcontroller
with 32K bytes flash, "..
"8K bytes RAM, external bus interface, USB, 2
USARTs and more. ",
flavor = "boolean",
exclusivity = mcu_names,
file = "include/cfg/arch.h",
requires = { "TOOL_CC_ARM" },
provides = {
"HW_TARGET",
"HW_MCU_ARM",
"HW_MCU_AT91",
"HW_MCU_AT91SAM7SE",
"HW_TIMER_AT91",
"HW_PLL_AT91",
"HW_SDRAMC",
"HW_PIT_AT91",
"HW_UART_AT91",
"HW_DBGU_AT91",
"HW_UART0_RTSCTS",
"HW_UART1_RTSCTS",
"HW_UART1_MODEM",
"HW_SPI_AT91",
"HW_TWI_AT91",
"HW_RSTC_AT91",
"HW_PDC_AT91",
"HW_EFC_AT91",
"HW_GPIO",
"HW_EBI_AT91"
},
makedefs = { "MCU=arm7tdmi" }
Now add "HW_ADC_AT91" to any CPU that works with this driver you wrote.
Modify the "requires = {}" statement in the arm.nut to "HW_ADC_AT91"
and you have your desired result, are compatible to the design and you
can provide a patch file for us to implement it into the official
trunk. There is no problem if you cannot identify any valid cpu, we can
check that.
Best Regards
Ulrich
-----Original Message-----
From: Wiegelmann, Jörg <Joerg.Wiegelmann at ces-tronics.de>
To: en-nut-discussion at egnite.de
Sent: Wed, Nov 3, 2010 11:45 am
Subject: [En-Nut-Discussion] Enabling ADC on EIR
Hi folks, I use the ADC Funktion on EIR. The ADC on EIR is implemented,
working and tested by me. Unfortanatelly the ADC is disabled on the EIR
Hardware. I'm enabling the function with the following hack in the
arm.nut conf file: Old: { name = "nutarch_arm_adc_at91",
brief = "AT91 ADC", description = "ADC interface for AT91
(currently SAM7 only).", requires = { "HW_MCU_AT91SAM7X" },
<-------------------------------------------XXXXX provides = {
"DEV_ADC" }, sources = { "arm/dev/at91_adc.c" }, }, My
hack: { name = "nutarch_arm_adc_at91", brief = "AT91
ADC", description = "ADC interface for AT91 (currently SAM7
only).", requires = { "HW_MCU_AT91SAM7SE" },
<-----------------------------------------XXXXX provides = {
"DEV_ADC" }, sources = { "arm/dev/at91_adc.c" }, }, Now
my question: Can anyone modify the conf-file, so that it is possible to
enable the ADC on EIR? Perhaps Harald? I have no idea to modify
conf-Files. Does anyone have an documentation about this?Thank you and
best regardsJörg
_______________________________________________http://lists.egnite.de/mai
lman/listinfo/en-nut-discussion
More information about the En-Nut-Discussion
mailing list