[En-Nut-Discussion] EIR ADC Converter and Configurator
Harald Kipp
harald.kipp at egnite.de
Wed Sep 17 20:15:12 CEST 2008
Jörg Wiegelmann wrote:
>
> I would like to use the ADC on the EIR board. Unfortanetly the entry in the configurator is disabled. I think the driver of the Sam7 Board (HW_MCU_AT91SAM7X) should work also with the eir. But I'm not familiar with the configurator. So I can't enable it. Can anyone help?
Jörg,
Typically easy, but not in this case. The important part is in
conf/arch/arm.nut:
{
name = "nutarch_arm_adc_at91",
brief = "AT91 ADC",
description = "ADC interface for AT91 (currently SAM7 only).",
requires = { "HW_MCU_AT91SAM7X" },
provides = { "DEV_ADC" },
sources = { "arm/dev/at91_adc.c" },
},
The problem is, that "requires" specifies HW_MCU_AT91SAM7X, but should
specifiy HW_ADC_AT91, which needs to be added to the supported MCUs in
the "provides" section as well.
But don't worry, there is a ugly, but simple solution. If you look
further up, the author of nutarch_arm_twi_at91_sam7se had the same
problem. Instead of going the right, but uncomfortable way, he simply
copied the existing nutarch_arm_twi_at91_sam7s entry and changed
HW_MCU_AT91SAM7S to HW_MCU_AT91SAM7SE, because the author of the SAM7S
part did the same, copying from SAM7X. Gosh, what a crap! What? I did
that? Never! That was Mr. Hyde!
Harald
P.S.: Sorry for the misleading private email. I didn't recognize that
this is not ADC, but Configurator related.
More information about the En-Nut-Discussion
mailing list