aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM8S/serial_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-05-08 17:09:20 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-05-08 17:09:20 +0000
commitd0a2e55ed0cf97be924ebbdae2497fd77bfac5b6 (patch)
treea31ebbd42904206131ff4eb661b4341558ca8925 /os/hal/platforms/STM8S/serial_lld.c
parentba6519a2eaf35bc6d39188e10b6ea12ef553009d (diff)
downloadChibiOS-d0a2e55ed0cf97be924ebbdae2497fd77bfac5b6.tar.gz
ChibiOS-d0a2e55ed0cf97be924ebbdae2497fd77bfac5b6.tar.bz2
ChibiOS-d0a2e55ed0cf97be924ebbdae2497fd77bfac5b6.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4175 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM8S/serial_lld.c')
-rw-r--r--os/hal/platforms/STM8S/serial_lld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/platforms/STM8S/serial_lld.c b/os/hal/platforms/STM8S/serial_lld.c
index fbc3baeaf..610591cdf 100644
--- a/os/hal/platforms/STM8S/serial_lld.c
+++ b/os/hal/platforms/STM8S/serial_lld.c
@@ -73,7 +73,7 @@ static ROMCONST SerialConfig default_config = {
/*===========================================================================*/
static void set_error(SerialDriver *sdp, uint8_t sr) {
- ioflags_t sts = 0;
+ chnflags_t sts = 0;
/* Note, SR register bit definitions are equal for all UARTs so using
the UART1 definitions is fine.*/
@@ -86,7 +86,7 @@ static void set_error(SerialDriver *sdp, uint8_t sr) {
if (sr & UART1_SR_PE)
sts |= SD_PARITY_ERROR;
chSysLockFromIsr();
- chIOAddFlagsI(sdp, sts);
+ chnAddFlagsI(sdp, sts);
chSysUnlockFromIsr();
}