aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32L1xx/UART
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-09-17 16:56:44 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-09-17 16:56:44 +0000
commitbaabff16e61179d497fe986d63e325e83272d4ed (patch)
tree91e387a8d1b2f847eededd47934c2c270a831a66 /testhal/STM32L1xx/UART
parenteefe7fbc1bd9cf3f50e580ff44f977a08dafa107 (diff)
downloadChibiOS-baabff16e61179d497fe986d63e325e83272d4ed.tar.gz
ChibiOS-baabff16e61179d497fe986d63e325e83272d4ed.tar.bz2
ChibiOS-baabff16e61179d497fe986d63e325e83272d4ed.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3329 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32L1xx/UART')
-rw-r--r--testhal/STM32L1xx/UART/chconf.h12
-rw-r--r--testhal/STM32L1xx/UART/main.c9
2 files changed, 10 insertions, 11 deletions
diff --git a/testhal/STM32L1xx/UART/chconf.h b/testhal/STM32L1xx/UART/chconf.h
index a5d129956..9dd831c96 100644
--- a/testhal/STM32L1xx/UART/chconf.h
+++ b/testhal/STM32L1xx/UART/chconf.h
@@ -361,7 +361,7 @@
* @note The default is @p FALSE.
*/
#if !defined(CH_DBG_SYSTEM_STATE_CHECK) || defined(__DOXYGEN__)
-#define CH_DBG_SYSTEM_STATE_CHECK TRUE
+#define CH_DBG_SYSTEM_STATE_CHECK FALSE
#endif
/**
@@ -372,7 +372,7 @@
* @note The default is @p FALSE.
*/
#if !defined(CH_DBG_ENABLE_CHECKS) || defined(__DOXYGEN__)
-#define CH_DBG_ENABLE_CHECKS TRUE
+#define CH_DBG_ENABLE_CHECKS FALSE
#endif
/**
@@ -384,7 +384,7 @@
* @note The default is @p FALSE.
*/
#if !defined(CH_DBG_ENABLE_ASSERTS) || defined(__DOXYGEN__)
-#define CH_DBG_ENABLE_ASSERTS TRUE
+#define CH_DBG_ENABLE_ASSERTS FALSE
#endif
/**
@@ -395,7 +395,7 @@
* @note The default is @p FALSE.
*/
#if !defined(CH_DBG_ENABLE_TRACE) || defined(__DOXYGEN__)
-#define CH_DBG_ENABLE_TRACE TRUE
+#define CH_DBG_ENABLE_TRACE FALSE
#endif
/**
@@ -409,7 +409,7 @@
* @p panic_msg variable set to @p NULL.
*/
#if !defined(CH_DBG_ENABLE_STACK_CHECK) || defined(__DOXYGEN__)
-#define CH_DBG_ENABLE_STACK_CHECK TRUE
+#define CH_DBG_ENABLE_STACK_CHECK FALSE
#endif
/**
@@ -421,7 +421,7 @@
* @note The default is @p FALSE.
*/
#if !defined(CH_DBG_FILL_THREADS) || defined(__DOXYGEN__)
-#define CH_DBG_FILL_THREADS TRUE
+#define CH_DBG_FILL_THREADS FALSE
#endif
/**
diff --git a/testhal/STM32L1xx/UART/main.c b/testhal/STM32L1xx/UART/main.c
index 87efcab74..1039b781d 100644
--- a/testhal/STM32L1xx/UART/main.c
+++ b/testhal/STM32L1xx/UART/main.c
@@ -32,7 +32,7 @@ static void restart(void *p) {
static void ledoff(void *p) {
(void)p;
- palSetPad(GPIOB, GPIOB_LED4);
+ palClearPad(GPIOB, GPIOB_LED4);
}
/*
@@ -42,7 +42,7 @@ static void ledoff(void *p) {
static void txend1(UARTDriver *uartp) {
(void)uartp;
- palClearPad(GPIOB, GPIOB_LED4);
+ palSetPad(GPIOB, GPIOB_LED4);
}
/*
@@ -51,7 +51,7 @@ static void txend1(UARTDriver *uartp) {
static void txend2(UARTDriver *uartp) {
(void)uartp;
- palSetPad(GPIOB, GPIOB_LED4);
+ palClearPad(GPIOB, GPIOB_LED4);
chSysLockFromIsr();
if (chVTIsArmedI(&vt1))
chVTResetI(&vt1);
@@ -78,7 +78,7 @@ static void rxchar(UARTDriver *uartp, uint16_t c) {
(void)uartp;
(void)c;
/* Flashing the LED each time a character is received.*/
- palClearPad(GPIOB, GPIOB_LED4);
+ palSetPad(GPIOB, GPIOB_LED4);
chSysLockFromIsr();
if (chVTIsArmedI(&vt2))
chVTResetI(&vt2);
@@ -143,5 +143,4 @@ int main(void) {
while (TRUE) {
chThdSleepMilliseconds(500);
}
- return 0;
}