aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/SPC56x
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-01-02 14:58:51 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-01-02 14:58:51 +0000
commit31881e1dd3bee0ff04f3a46742d8f260210f8c29 (patch)
treede7b0c27adcdb5755702f63bc39d36264916cfff /os/hal/platforms/SPC56x
parent90b70c4d4618296d0aed5d75e9170b6865192db0 (diff)
downloadChibiOS-31881e1dd3bee0ff04f3a46742d8f260210f8c29.tar.gz
ChibiOS-31881e1dd3bee0ff04f3a46742d8f260210f8c29.tar.bz2
ChibiOS-31881e1dd3bee0ff04f3a46742d8f260210f8c29.zip
Updated the various serial drivers with the new queue callbacks.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2573 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/SPC56x')
-rw-r--r--os/hal/platforms/SPC56x/serial_lld.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/os/hal/platforms/SPC56x/serial_lld.c b/os/hal/platforms/SPC56x/serial_lld.c
index 0645d20c1..8da5e4fcf 100644
--- a/os/hal/platforms/SPC56x/serial_lld.c
+++ b/os/hal/platforms/SPC56x/serial_lld.c
@@ -167,8 +167,9 @@ static void serve_interrupt(SerialDriver *sdp) {
}
#if USE_SPC563_ESCIA || defined(__DOXYGEN__)
-static void notify1(void) {
+static void notify1(GenericQueue *qp) {
+ (void)qp;
if (ESCI_A.SR.B.TDRE) {
msg_t b = sdRequestDataI(&SD1);
if (b != Q_EMPTY) {
@@ -177,19 +178,13 @@ static void notify1(void) {
ESCI_A.DR.R = (uint16_t)b;
}
}
-/* if (!ESCI_A.CR1.B.TIE) {
- msg_t b = sdRequestDataI(&SD1);
- if (b != Q_EMPTY) {
- ESCI_A.CR1.B.TIE = 1;
- ESCI_A.DR.R = (uint16_t)b;
- }
- }*/
}
#endif
#if USE_SPC563_ESCIB || defined(__DOXYGEN__)
-static void notify2(void) {
+static void notify2(GenericQueue *qp) {
+ (void)qp;
if (ESCI_B.SR.B.TDRE) {
msg_t b = sdRequestDataI(&SD2);
if (b != Q_EMPTY) {
@@ -198,13 +193,6 @@ static void notify2(void) {
ESCI_B.DR.R = (uint16_t)b;
}
}
-/* if (!ESCI_B.CR1.B.TIE) {
- msg_t b = sdRequestDataI(&SD2);
- if (b != Q_EMPTY) {
- ESCI_B.CR1.B.TIE = 1;
- ESCI_B.DR.R = (uint16_t)b;
- }
- }*/
}
#endif