aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32F1xx
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-02-18 16:46:21 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-02-18 16:46:21 +0000
commit39fa1818ffe52d04832d5f5d25ae01fb7b6d514f (patch)
treeafbbb3a0cd9fe8f776c7b061a274acbc850f41a4 /testhal/STM32F1xx
parent995e1f732e43a5b85e5961e9791977b0cada7c50 (diff)
downloadChibiOS-39fa1818ffe52d04832d5f5d25ae01fb7b6d514f.tar.gz
ChibiOS-39fa1818ffe52d04832d5f5d25ae01fb7b6d514f.tar.bz2
ChibiOS-39fa1818ffe52d04832d5f5d25ae01fb7b6d514f.zip
Improvements to the STM32 ICU driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3955 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32F1xx')
-rw-r--r--testhal/STM32F1xx/PWM-ICU/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/testhal/STM32F1xx/PWM-ICU/main.c b/testhal/STM32F1xx/PWM-ICU/main.c
index 8ae149304..ab9cd8be2 100644
--- a/testhal/STM32F1xx/PWM-ICU/main.c
+++ b/testhal/STM32F1xx/PWM-ICU/main.c
@@ -53,19 +53,20 @@ icucnt_t last_width, last_period;
static void icuwidthcb(ICUDriver *icup) {
- last_width = icuGetWidthI(icup);
+ last_width = icuGetWidth(icup);
}
static void icuperiodcb(ICUDriver *icup) {
- last_period = icuGetPeriodI(icup);
+ last_period = icuGetPeriod(icup);
}
static ICUConfig icucfg = {
ICU_INPUT_ACTIVE_HIGH,
10000, /* 10KHz ICU clock frequency. */
icuwidthcb,
- icuperiodcb
+ icuperiodcb,
+ ICU_CHANNEL_1
};
/*