Revision 649f2bd1dbc5702edbc4cbacf44d25ba3ccd8cc9 authored by Felix Ruess on 09 July 2013, 09:34:43 UTC, committed by Felix Ruess on 09 July 2013, 19:17:16 UTC
- krooz: don't use TIM2 for PWM - change to 6 ticks per usec to fit all frequencies - on the F1 we assume to run at 72MHz for HCLK and both timer clocks TIM1 -> APB2 = HCLK = 72MHz TIM2 -> 2 * APB1 = 2 * 36MHz = 72MHz - on the F4 we assume 2 * AHB clock: TIM1 -> 2 * APB2 = 168MHz TIM2 -> 2 * APB1 = 84MHz
1 parent 60a6d89
adc_generic.xml
<!DOCTYPE module SYSTEM "module.dtd">
<module name="adc_generic" dir="adcs">
<doc>
<description>Generic ADC</description>
<configure name="ADC_CHANNEL_GENERIC1" value="ADCX" description="choose which ADC is used for input 1"/>
<configure name="ADC_CHANNEL_GENERIC2" value="ADCX" description="choose which ADC is used for input 2"/>
</doc>
<header>
<file name="adc_generic.h"/>
</header>
<init fun="adc_generic_init()"/>
<periodic fun="adc_generic_periodic()" freq="4"/>
<makefile target="ap">
<file name="adc_generic.c"/>
<raw>
ifneq ($(ADC_CHANNEL_GENERIC1),)
ap.CFLAGS += -DADC_CHANNEL_GENERIC1=$(ADC_CHANNEL_GENERIC1) -DUSE_$(ADC_CHANNEL_GENERIC1)
endif
ifneq ($(ADC_CHANNEL_GENERIC2),)
ap.CFLAGS += -DADC_CHANNEL_GENERIC2=$(ADC_CHANNEL_GENERIC2) -DUSE_$(ADC_CHANNEL_GENERIC2)
endif
</raw>
</makefile>
</module>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...