diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-06-07 14:34:59 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-06-07 14:34:59 +0000 |
commit | 5cad241306f64d0a3c0f7829421e4bf8f4b18fbe (patch) | |
tree | ebbcad6d0cdb19fa5ef0bf5f6dc5cf80dfbdc4d1 /testhal/STM32/UART/main.c | |
parent | 152f34a80c6ffe5fd17809732272823091b854e8 (diff) | |
parent | aec912f13f9aa85cd677353fa556f679c3832970 (diff) | |
download | ChibiOS-5cad241306f64d0a3c0f7829421e4bf8f4b18fbe.tar.gz ChibiOS-5cad241306f64d0a3c0f7829421e4bf8f4b18fbe.tar.bz2 ChibiOS-5cad241306f64d0a3c0f7829421e4bf8f4b18fbe.zip |
I2C. Merged code from trunk.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3036 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/UART/main.c')
-rw-r--r-- | testhal/STM32/UART/main.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/testhal/STM32/UART/main.c b/testhal/STM32/UART/main.c index f672cfb1a..924338a77 100644 --- a/testhal/STM32/UART/main.c +++ b/testhal/STM32/UART/main.c @@ -1,5 +1,6 @@ /*
- ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010 Giovanni Di Sirio.
+ ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
+ 2011 Giovanni Di Sirio.
This file is part of ChibiOS/RT.
@@ -38,7 +39,7 @@ static void ledoff(void *p) { /*
* This callback is invoked when a transmission buffer has been completely
- * read by the driver. + * read by the driver.
*/
static void txend1(UARTDriver *uartp) {
@@ -47,7 +48,7 @@ static void txend1(UARTDriver *uartp) { }
/*
- * This callback is invoked when a transmission has phisically completed. + * This callback is invoked when a transmission has phisically completed.
*/
static void txend2(UARTDriver *uartp) {
@@ -62,7 +63,7 @@ static void txend2(UARTDriver *uartp) { /*
* This callback is invoked on a receive error, the errors mask is passed
- * as parameter. + * as parameter.
*/
static void rxerr(UARTDriver *uartp, uartflags_t e) {
@@ -72,7 +73,7 @@ static void rxerr(UARTDriver *uartp, uartflags_t e) { /*
* This callback is invoked when a character is received but the application
- * was not ready to receive it, the character is passed as parameter. + * was not ready to receive it, the character is passed as parameter.
*/
static void rxchar(UARTDriver *uartp, uint16_t c) {
@@ -88,7 +89,7 @@ static void rxchar(UARTDriver *uartp, uint16_t c) { }
/*
- * This callback is invoked when a receive buffer has been completely written. + * This callback is invoked when a receive buffer has been completely written.
*/
static void rxend(UARTDriver *uartp) {
@@ -96,7 +97,7 @@ static void rxend(UARTDriver *uartp) { }
/*
- * UART driver configuration structure. + * UART driver configuration structure.
*/
static UARTConfig uart_cfg_1 = {
txend1,
@@ -131,7 +132,7 @@ int main(void) { uartStart(&UARTD2, &uart_cfg_1);
/*
- * Starts the transmission, it will be handled entirely in background. + * Starts the transmission, it will be handled entirely in background.
*/
uartStartSend(&UARTD2, 13, "Starting...\r\n");
|