diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-08-15 08:17:27 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-08-15 08:17:27 +0000 |
commit | 9568ccf9d193dc60cf3f07b18cab9079e5fcbb18 (patch) | |
tree | d2dbc18f425b8b5601d17e61f1aa14a9675ae4e3 /testhal/STM32L1xx | |
parent | 7391ec61e2ae42133c076d10899af324776e8255 (diff) | |
download | ChibiOS-9568ccf9d193dc60cf3f07b18cab9079e5fcbb18.tar.gz ChibiOS-9568ccf9d193dc60cf3f07b18cab9079e5fcbb18.tar.bz2 ChibiOS-9568ccf9d193dc60cf3f07b18cab9079e5fcbb18.zip |
Upgrades to STM32 GPT, ICU and PWM drivers.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6150 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32L1xx')
-rw-r--r-- | testhal/STM32L1xx/IRQ_STORM/main.c | 6 | ||||
-rw-r--r-- | testhal/STM32L1xx/PWM-ICU/main.c | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/testhal/STM32L1xx/IRQ_STORM/main.c b/testhal/STM32L1xx/IRQ_STORM/main.c index 88d575b18..ac3909c0c 100644 --- a/testhal/STM32L1xx/IRQ_STORM/main.c +++ b/testhal/STM32L1xx/IRQ_STORM/main.c @@ -147,7 +147,8 @@ static void gpt3cb(GPTDriver *gptp) { */
static const GPTConfig gpt2cfg = {
1000000, /* 1MHz timer clock.*/
- gpt2cb /* Timer callback.*/
+ gpt2cb, /* Timer callback.*/
+ 0
};
/*
@@ -155,7 +156,8 @@ static const GPTConfig gpt2cfg = { */
static const GPTConfig gpt3cfg = {
1000000, /* 1MHz timer clock.*/
- gpt3cb /* Timer callback.*/
+ gpt3cb, /* Timer callback.*/
+ 0
};
diff --git a/testhal/STM32L1xx/PWM-ICU/main.c b/testhal/STM32L1xx/PWM-ICU/main.c index 3ef877831..9e5955e4a 100644 --- a/testhal/STM32L1xx/PWM-ICU/main.c +++ b/testhal/STM32L1xx/PWM-ICU/main.c @@ -40,6 +40,7 @@ static PWMConfig pwmcfg = { {PWM_OUTPUT_DISABLED, NULL}
},
0,
+ 0
};
icucnt_t last_width, last_period;
@@ -62,7 +63,8 @@ static ICUConfig icucfg = { icuwidthcb,
icuperiodcb,
NULL,
- ICU_CHANNEL_1
+ ICU_CHANNEL_1,
+ 0
};
/*
|