aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32L1xx/UART
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-09-17 17:53:57 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-09-17 17:53:57 +0000
commit278fc39f993660a8d7ebf4df4a89f6beb10c7f7b (patch)
tree6884853985e1a3c90e95c6361fe1704b118071df /testhal/STM32L1xx/UART
parentbaabff16e61179d497fe986d63e325e83272d4ed (diff)
downloadChibiOS-278fc39f993660a8d7ebf4df4a89f6beb10c7f7b.tar.gz
ChibiOS-278fc39f993660a8d7ebf4df4a89f6beb10c7f7b.tar.bz2
ChibiOS-278fc39f993660a8d7ebf4df4a89f6beb10c7f7b.zip
UART driver tested with STM32L.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3330 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32L1xx/UART')
-rw-r--r--testhal/STM32L1xx/UART/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/STM32L1xx/UART/main.c b/testhal/STM32L1xx/UART/main.c
index 1039b781d..30f4c3326 100644
--- a/testhal/STM32L1xx/UART/main.c
+++ b/testhal/STM32L1xx/UART/main.c
@@ -129,8 +129,8 @@ int main(void) {
* PA9 and PA10 are routed to USART1.
*/
uartStart(&UARTD1, &uart_cfg_1);
- palSetPadMode(GPIOA, 9, PAL_MODE_ALT_OUTPUT_PUSHPULL(7));
- palSetPadMode(GPIOA, 10, PAL_MODE_ALT_INPUT(7));
+ palSetPadMode(GPIOA, 9, PAL_MODE_ALTERNATE(7));
+ palSetPadMode(GPIOA, 10, PAL_MODE_ALTERNATE(7));
/*
* Starts the transmission, it will be handled entirely in background.