From 688c495b28d6307050f370717c295f2f889e3b3c Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 12 Nov 2010 23:07:49 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2355 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- boards/ST_STM8L_DISCOVERY/board.c | 16 ---------------- demos/STM8L-STM8L152-DISCOVERY-STVD/demo/main.c | 6 +++--- 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/boards/ST_STM8L_DISCOVERY/board.c b/boards/ST_STM8L_DISCOVERY/board.c index b4c619a38..dd4a27472 100644 --- a/boards/ST_STM8L_DISCOVERY/board.c +++ b/boards/ST_STM8L_DISCOVERY/board.c @@ -26,22 +26,6 @@ #define TIM2_CLOCK (SYSCLK / 16) #define TIM2_ARR ((TIM2_CLOCK / CH_FREQUENCY) - 1) -/* - * TIM2 interrupt handler. - */ -CH_IRQ_HANDLER(20) { - - CH_IRQ_PROLOGUE(); - - chSysLockFromIsr(); - chSysTimerHandlerI(); - chSysUnlockFromIsr(); - - TIM2->SR1 = 0; - - CH_IRQ_EPILOGUE(); -} - /* * Board initialization code. */ diff --git a/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/main.c b/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/main.c index 522499fcc..459ac2e7a 100644 --- a/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/main.c +++ b/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/main.c @@ -59,7 +59,7 @@ void main(void) { /* * Activates the serial driver 1 using the driver default configuration. */ - sdStart(&SD1, NULL); +// sdStart(&SD1, NULL); /* * Creates the blinker thread. @@ -70,8 +70,8 @@ void main(void) { * Normal main() thread activity. */ while (TRUE) { - if (palReadPad(GPIOC, PC_BUTTON) == PAL_LOW) - TestThread(&SD1); +// if (palReadPad(GPIOC, PC_BUTTON) == PAL_LOW) +// TestThread(&SD1); chThdSleepMilliseconds(1000); } }