aboutsummaryrefslogtreecommitdiffstats
path: root/testhal
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-08-15 15:37:52 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-08-15 15:37:52 +0000
commitae70bb24cc5cd5b1d6a298ea298fe7c25b690dc8 (patch)
tree7d9485e52ffbb0129e0cb29f7c98a97692a048ba /testhal
parentc36b827d05fef72a986d8b68f14ef043eb1fc895 (diff)
downloadChibiOS-ae70bb24cc5cd5b1d6a298ea298fe7c25b690dc8.tar.gz
ChibiOS-ae70bb24cc5cd5b1d6a298ea298fe7c25b690dc8.tar.bz2
ChibiOS-ae70bb24cc5cd5b1d6a298ea298fe7c25b690dc8.zip
UART driver improvements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2131 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal')
-rw-r--r--testhal/STM32/UART/main.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/testhal/STM32/UART/main.c b/testhal/STM32/UART/main.c
index ef862a981..b823430c9 100644
--- a/testhal/STM32/UART/main.c
+++ b/testhal/STM32/UART/main.c
@@ -40,16 +40,18 @@ static void ledoff(void *p) {
* This callback is invoked when a transmission buffer has been completely
* read by the driver.
*/
-static void txend1(void) {
+static void txend1(UARTDriver *uartp) {
+ (void)uartp;
palClearPad(IOPORT3, GPIOC_LED);
}
/*
* This callback is invoked when a transmission has phisically completed.
*/
-static void txend2(void) {
+static void txend2(UARTDriver *uartp) {
+ (void)uartp;
palSetPad(IOPORT3, GPIOC_LED);
chSysLockFromIsr();
if (chVTIsArmedI(&vt1))
@@ -62,8 +64,9 @@ static void txend2(void) {
* This callback is invoked on a receive error, the errors mask is passed
* as parameter.
*/
-static void rxerr(uartflags_t e) {
+static void rxerr(UARTDriver *uartp, uartflags_t e) {
+ (void)uartp;
(void)e;
}
@@ -71,8 +74,9 @@ static void rxerr(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.
*/
-static void rxchar(uint16_t c) {
+static void rxchar(UARTDriver *uartp, uint16_t c) {
+ (void)uartp;
(void)c;
/* Flashing the LED each time a character is received.*/
palClearPad(IOPORT3, GPIOC_LED);
@@ -86,8 +90,9 @@ static void rxchar(uint16_t c) {
/*
* This callback is invoked when a receive buffer has been completely written.
*/
-static void rxend(void) {
+static void rxend(UARTDriver *uartp) {
+ (void)uartp;
}
/*