diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-08-15 14:07:39 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-08-15 14:07:39 +0000 |
commit | 229c7998030c4f6aff99195b47620b5f4da8d304 (patch) | |
tree | e1e36050ca2068fbac54c524fa0b95aace8fe9b4 /os/hal | |
parent | 3dd5d89297dbed8cfde1b31d6dac91c7211f2979 (diff) | |
download | ChibiOS-229c7998030c4f6aff99195b47620b5f4da8d304.tar.gz ChibiOS-229c7998030c4f6aff99195b47620b5f4da8d304.tar.bz2 ChibiOS-229c7998030c4f6aff99195b47620b5f4da8d304.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6157 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/src/pal.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/os/hal/src/pal.c b/os/hal/src/pal.c index 602566cca..4e6c63d5f 100644 --- a/os/hal/src/pal.c +++ b/os/hal/src/pal.c @@ -69,7 +69,8 @@ */
ioportmask_t palReadBus(IOBus *bus) {
- osalDbgCheck((bus != NULL) && (bus->offset < PAL_IOPORTS_WIDTH));
+ chDbgCheck((bus != NULL) && (bus->offset < PAL_IOPORTS_WIDTH),
+ "palReadBus");
return palReadGroup(bus->portid, bus->mask, bus->offset);
}
@@ -94,7 +95,8 @@ ioportmask_t palReadBus(IOBus *bus) { */
void palWriteBus(IOBus *bus, ioportmask_t bits) {
- osalDbgCheck((bus != NULL) && (bus->offset < PAL_IOPORTS_WIDTH));
+ chDbgCheck((bus != NULL) && (bus->offset < PAL_IOPORTS_WIDTH),
+ "palWriteBus");
palWriteGroup(bus->portid, bus->mask, bus->offset, bits);
}
@@ -117,7 +119,8 @@ void palWriteBus(IOBus *bus, ioportmask_t bits) { */
void palSetBusMode(IOBus *bus, iomode_t mode) {
- osalDbgCheck((bus != NULL) && (bus->offset < PAL_IOPORTS_WIDTH));
+ chDbgCheck((bus != NULL) && (bus->offset < PAL_IOPORTS_WIDTH),
+ "palSetBusMode");
palSetGroupMode(bus->portid, bus->mask, bus->offset, mode);
}
|