aboutsummaryrefslogtreecommitdiffstats
path: root/demos/STM8L-STM8L152-DISCOVERY-STVD/demo
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-10 21:46:34 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-10 21:46:34 +0000
commita7b039fae4798eb96b28a8cb59267d26fb9261a9 (patch)
treee3a6f761bf1e85786b7b2f6dfbc30a3617cbc94e /demos/STM8L-STM8L152-DISCOVERY-STVD/demo
parente4cdc96106cefcc970f4b06e7ffed1032e6db0d2 (diff)
downloadChibiOS-a7b039fae4798eb96b28a8cb59267d26fb9261a9.tar.gz
ChibiOS-a7b039fae4798eb96b28a8cb59267d26fb9261a9.tar.bz2
ChibiOS-a7b039fae4798eb96b28a8cb59267d26fb9261a9.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2345 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/STM8L-STM8L152-DISCOVERY-STVD/demo')
-rw-r--r--demos/STM8L-STM8L152-DISCOVERY-STVD/demo/halconf.h4
-rw-r--r--demos/STM8L-STM8L152-DISCOVERY-STVD/demo/main.c14
2 files changed, 9 insertions, 9 deletions
diff --git a/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/halconf.h b/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/halconf.h
index 3186be527..e75f8b89d 100644
--- a/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/halconf.h
+++ b/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/halconf.h
@@ -41,7 +41,7 @@
* @brief Enables the PAL subsystem.
*/
#if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
-#define HAL_USE_PAL TRUE
+#define HAL_USE_PAL FALSE
#endif
/**
@@ -90,7 +90,7 @@
* @brief Enables the SERIAL subsystem.
*/
#if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
-#define HAL_USE_SERIAL TRUE
+#define HAL_USE_SERIAL FALSE
#endif
/**
diff --git a/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/main.c b/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/main.c
index 35321bf62..c8c8e44fe 100644
--- a/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/main.c
+++ b/demos/STM8L-STM8L152-DISCOVERY-STVD/demo/main.c
@@ -29,9 +29,9 @@ static msg_t Thread1(void *arg) {
(void)arg;
while (TRUE) {
- palClearPad(GPIOD, PD_LD10);
+// palClearPad(GPIOD, PD_LD10);
chThdSleepMilliseconds(500);
- palSetPad(GPIOD, PD_LD10);
+// palSetPad(GPIOD, PD_LD10);
chThdSleepMilliseconds(500);
}
return 0;
@@ -55,7 +55,7 @@ void main(void) {
/*
* Activates the serial driver 1 using the driver default configuration.
*/
- sdStart(&SD2, NULL);
+// sdStart(&SD2, NULL);
/*
* Creates the blinker thread.
@@ -66,10 +66,10 @@ void main(void) {
* Normal main() thread activity.
*/
while (TRUE) {
- if (palReadPad(GPIOG, 0) == PAL_LOW)
- TestThread(&SD2);
- if (palReadPad(GPIOG, 1) == PAL_LOW)
- sdWriteTimeout(&SD2, "Hello World!\r\n", 14, TIME_INFINITE);
+// if (palReadPad(GPIOG, 0) == PAL_LOW)
+// TestThread(&SD2);
+// if (palReadPad(GPIOG, 1) == PAL_LOW)
+// sdWriteTimeout(&SD2, "Hello World!\r\n", 14, TIME_INFINITE);
chThdSleepMilliseconds(1000);
}
}