aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32F30x/IRQ_STORM
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-09-30 13:04:10 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-09-30 13:04:10 +0000
commit8c1fc9af2b96a9a3ccae3d8810c21bd7afae97ab (patch)
tree27ab79db6ed83a893b78ee8d878a0ff416cca7b8 /testhal/STM32F30x/IRQ_STORM
parent984148e9dbda3053aec71ea7da545bc75cd33e94 (diff)
downloadChibiOS-8c1fc9af2b96a9a3ccae3d8810c21bd7afae97ab.tar.gz
ChibiOS-8c1fc9af2b96a9a3ccae3d8810c21bd7afae97ab.tar.bz2
ChibiOS-8c1fc9af2b96a9a3ccae3d8810c21bd7afae97ab.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6337 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32F30x/IRQ_STORM')
-rw-r--r--testhal/STM32F30x/IRQ_STORM/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/testhal/STM32F30x/IRQ_STORM/main.c b/testhal/STM32F30x/IRQ_STORM/main.c
index 539ea7c06..b88f13912 100644
--- a/testhal/STM32F30x/IRQ_STORM/main.c
+++ b/testhal/STM32F30x/IRQ_STORM/main.c
@@ -117,7 +117,7 @@ static msg_t WorkerThread(void *arg) {
/*
* GPT2 callback.
*/
-static void gpt2cb(GPTDriver *gptp) {
+static void gpt4cb(GPTDriver *gptp) {
msg_t msg;
(void)gptp;
@@ -145,9 +145,9 @@ static void gpt3cb(GPTDriver *gptp) {
/*
* GPT2 configuration.
*/
-static const GPTConfig gpt2cfg = {
+static const GPTConfig gpt4cfg = {
1000000, /* 1MHz timer clock.*/
- gpt2cb, /* Timer callback.*/
+ gpt4cb, /* Timer callback.*/
0
};
@@ -221,7 +221,7 @@ int main(void) {
/*
* Activates GPTs.
*/
- gptStart(&GPTD4, &gpt2cfg);
+ gptStart(&GPTD4, &gpt4cfg);
gptStart(&GPTD3, &gpt3cfg);
/*