aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gencfg/xml/stm32f4xx_cfg.xml
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gencfg/xml/stm32f4xx_cfg.xml')
-rw-r--r--tools/gencfg/xml/stm32f4xx_cfg.xml31
1 files changed, 20 insertions, 11 deletions
diff --git a/tools/gencfg/xml/stm32f4xx_cfg.xml b/tools/gencfg/xml/stm32f4xx_cfg.xml
index a0ed7fbb6..896cc2614 100644
--- a/tools/gencfg/xml/stm32f4xx_cfg.xml
+++ b/tools/gencfg/xml/stm32f4xx_cfg.xml
@@ -1,18 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- STM32F4xx board Template -->
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://www.chibios.org/xml/schema/hal/stm32f4xx/stm32f4xx_cfg.xsd"
- name="hal_configs">
- <details>Application HAL configurations.</details>
+ xsi:noNamespaceSchemaLocation="http://www.chibios.org/xml/schema/hal/stm32f4xx/stm32f4xx_cfg.xsd">
+ <name>hal_configs</name>
+ <brief>Application HAL-related settings.</brief>
<configs>
- <adc_config name="adccfg1">
+ <adc_config>
+ <name>adccfg1</name>
+ <brief>Example ADC configuration.</brief>
<groups>
- <group discontinuous_number="1" name="adcgrpcfg1"
- trigger_mode="0 Software" error_callback=""
- resolution="0 12 bits" trigger_source="0 Timer 1 CC1 event"
- discontinuous_mode="true"
- alignment="0 Samples are Right Aligned" conversion_callback=""
- circular="true" brief="Example conversion group.">
+ <group>
+ <name>adcgrpcfg1</name>
+ <brief>Example ADC conversion group configuration.</brief>
+ <circular>true</circular>
+ <conv_callback>conv_callback</conv_callback>
+ <error_callback>error_callback</error_callback>
+ <alignment>0 Samples are Right Aligned</alignment>
+ <resolution>0 12 bits</resolution>
+ <trigger_mode>0 Software</trigger_mode>
+ <trigger_source>0 Timer 1 CC1 event</trigger_source>
+ <discontinuous>2 Two discontinous conversions</discontinuous>
<sample_time>
<IN0>ADC_SAMPLE_3</IN0>
<IN1>ADC_SAMPLE_3</IN1>
@@ -36,8 +43,10 @@
</sample_time>
<channels_sequence>
<channel>ADC_CHANNEL_IN0</channel>
+ <channel>ADC_CHANNEL_IN8</channel>
</channels_sequence>
</group>
</groups>
- </adc_config></configs>
+ </adc_config>
+ </configs>
</configuration>