From 062cce0bed39edc78dbd86004861823e068541c0 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 13 Apr 2015 13:06:18 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7890 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- .../STM32F4xx-GPT (OpenOCD, Flash and Run).launch | 52 ++++++++++++++++++++++ testhal/STM32/STM32F4xx/GPT/main.c | 6 +-- 2 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 testhal/STM32/STM32F4xx/GPT/debug/STM32F4xx-GPT (OpenOCD, Flash and Run).launch (limited to 'testhal/STM32/STM32F4xx/GPT') diff --git a/testhal/STM32/STM32F4xx/GPT/debug/STM32F4xx-GPT (OpenOCD, Flash and Run).launch b/testhal/STM32/STM32F4xx/GPT/debug/STM32F4xx-GPT (OpenOCD, Flash and Run).launch new file mode 100644 index 000000000..0e104ffba --- /dev/null +++ b/testhal/STM32/STM32F4xx/GPT/debug/STM32F4xx-GPT (OpenOCD, Flash and Run).launch @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/testhal/STM32/STM32F4xx/GPT/main.c b/testhal/STM32/STM32F4xx/GPT/main.c index e58f7e0a1..44facd2b2 100644 --- a/testhal/STM32/STM32F4xx/GPT/main.c +++ b/testhal/STM32/STM32F4xx/GPT/main.c @@ -18,7 +18,7 @@ #include "hal.h" /* - * GPT2 callback. + * GPT4 callback. */ static void gpt4cb(GPTDriver *gptp) { @@ -74,7 +74,7 @@ int main(void) { chSysInit(); /* - * Initializes the GPT drivers 2 and 3. + * Initializes the GPT drivers 4 and 3. */ gptStart(&GPTD4, &gpt4cfg); gptPolledDelay(&GPTD4, 10); /* Small delay.*/ @@ -82,7 +82,7 @@ int main(void) { gptPolledDelay(&GPTD3, 10); /* Small delay.*/ /* - * Normal main() thread activity, it changes the GPT1 period every + * Normal main() thread activity, it changes the GPT4 period every * five seconds. */ while (true) { -- cgit v1.2.3