Fixed bug 3224681.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2828 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
gdisirio 2011-03-19 07:27:06 +00:00
parent e7e79a6ccb
commit 34c2d747d2
2 changed files with 4 additions and 3 deletions

View File

@ -65,7 +65,7 @@
ioportmask_t palReadBus(IOBus *bus) {
chDbgCheck((bus != NULL) &&
(bus->offset > PAL_IOPORTS_WIDTH), "palReadBus");
(bus->offset < PAL_IOPORTS_WIDTH), "palReadBus");
return palReadGroup(bus->portid, bus->mask, bus->offset);
}
@ -90,7 +90,7 @@ ioportmask_t palReadBus(IOBus *bus) {
void palWriteBus(IOBus *bus, ioportmask_t bits) {
chDbgCheck((bus != NULL) &&
(bus->offset > PAL_IOPORTS_WIDTH), "palWriteBus");
(bus->offset < PAL_IOPORTS_WIDTH), "palWriteBus");
palWriteGroup(bus->portid, bus->mask, bus->offset, bits);
}
@ -113,7 +113,7 @@ void palWriteBus(IOBus *bus, ioportmask_t bits) {
void palSetBusMode(IOBus *bus, uint_fast8_t mode) {
chDbgCheck((bus != NULL) &&
(bus->offset > PAL_IOPORTS_WIDTH), "palSetBusMode");
(bus->offset < PAL_IOPORTS_WIDTH), "palSetBusMode");
palSetGroupMode(bus->portid, bus->mask, mode);
}

View File

@ -71,6 +71,7 @@
*****************************************************************************
*** 2.3.1 ***
- FIX: Fixed wrong chechs in PAL driver (bug 3224681)(backported to 2.2.3).
- FIX: Fixed wrong checks in I/O Queues (bug 3219197)(backported to 2.2.3).
- FIX: Fixed invalid assertion in adcConvert() (bug 3205410)(backported
to 2.2.3).