aboutsummaryrefslogtreecommitdiffstats
path: root/os/io/platforms/STM32F103
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-08-21 09:55:47 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-08-21 09:55:47 +0000
commitc3fa78f3d1a9216d3827184d1e5a4ce78bb79e2d (patch)
tree0aa375c8f9460a2c3331b61532304d17ef51871d /os/io/platforms/STM32F103
parent1b7573aa1637c2b6cd42f3803d6684426a374788 (diff)
downloadChibiOS-c3fa78f3d1a9216d3827184d1e5a4ce78bb79e2d.tar.gz
ChibiOS-c3fa78f3d1a9216d3827184d1e5a4ce78bb79e2d.tar.bz2
ChibiOS-c3fa78f3d1a9216d3827184d1e5a4ce78bb79e2d.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1097 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/io/platforms/STM32F103')
-rw-r--r--os/io/platforms/STM32F103/serial_lld.c4
-rw-r--r--os/io/platforms/STM32F103/serial_lld.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/os/io/platforms/STM32F103/serial_lld.c b/os/io/platforms/STM32F103/serial_lld.c
index 55074f51b..09849605c 100644
--- a/os/io/platforms/STM32F103/serial_lld.c
+++ b/os/io/platforms/STM32F103/serial_lld.c
@@ -71,9 +71,9 @@ static void usart_init(USART_TypeDef *u, const SerialDriverConfig *config) {
* Baud rate setting.
*/
if (u == USART1)
- u->BRR = APB2CLK / config->baud_rate;
+ u->BRR = APB2CLK / config->speed;
else
- u->BRR = APB1CLK / config->baud_rate;
+ u->BRR = APB1CLK / config->speed;
/*
* Note that some bits are enforced.
diff --git a/os/io/platforms/STM32F103/serial_lld.h b/os/io/platforms/STM32F103/serial_lld.h
index 89b28815f..5460d4a57 100644
--- a/os/io/platforms/STM32F103/serial_lld.h
+++ b/os/io/platforms/STM32F103/serial_lld.h
@@ -169,7 +169,7 @@ struct _serial_driver_data {
*/
typedef struct {
- uint32_t baud_rate;
+ uint32_t speed;
uint16_t cr1;
uint16_t cr2;
uint16_t cr3;