aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/pal.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-08-15 08:44:22 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-08-15 08:44:22 +0000
commit3dd5d89297dbed8cfde1b31d6dac91c7211f2979 (patch)
tree258414cb279784eec27c489f211943f0295dd523 /os/hal/src/pal.c
parent6c2ed791b1f10a67624dd53848e6e0da6a464ceb (diff)
downloadChibiOS-3dd5d89297dbed8cfde1b31d6dac91c7211f2979.tar.gz
ChibiOS-3dd5d89297dbed8cfde1b31d6dac91c7211f2979.tar.bz2
ChibiOS-3dd5d89297dbed8cfde1b31d6dac91c7211f2979.zip
Fixed bug bug #427.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6156 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src/pal.c')
-rw-r--r--os/hal/src/pal.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/os/hal/src/pal.c b/os/hal/src/pal.c
index cc382edab..602566cca 100644
--- a/os/hal/src/pal.c
+++ b/os/hal/src/pal.c
@@ -60,16 +60,16 @@
* @note The function internally uses the @p palReadGroup() macro. The use
* of this function is preferred when you value code size, readability
* and error checking over speed.
+ * @note The function can be called from any context.
*
* @param[in] bus the I/O bus, pointer to a @p IOBus structure
* @return The bus logical states.
*
- * @api
+ * @special
*/
ioportmask_t palReadBus(IOBus *bus) {
- chDbgCheck((bus != NULL) &&
- (bus->offset < PAL_IOPORTS_WIDTH), "palReadBus");
+ osalDbgCheck((bus != NULL) && (bus->offset < PAL_IOPORTS_WIDTH));
return palReadGroup(bus->portid, bus->mask, bus->offset);
}
@@ -83,18 +83,18 @@ ioportmask_t palReadBus(IOBus *bus) {
* @note The default implementation is non atomic and not necessarily
* optimal. Low level drivers may optimize the function by using
* specific hardware or coding.
+ * @note The function can be called from any context.
*
* @param[in] bus the I/O bus, pointer to a @p IOBus structure
* @param[in] bits the bits to be written on the I/O bus. Values exceeding
* the bus width are masked so most significant bits are
* lost.
*
- * @api
+ * @special
*/
void palWriteBus(IOBus *bus, ioportmask_t bits) {
- chDbgCheck((bus != NULL) &&
- (bus->offset < PAL_IOPORTS_WIDTH), "palWriteBus");
+ osalDbgCheck((bus != NULL) && (bus->offset < PAL_IOPORTS_WIDTH));
palWriteGroup(bus->portid, bus->mask, bus->offset, bits);
}
@@ -108,16 +108,16 @@ void palWriteBus(IOBus *bus, ioportmask_t bits) {
* @note The default implementation is non atomic and not necessarily
* optimal. Low level drivers may optimize the function by using
* specific hardware or coding.
+ * @note The function can be called from any context.
*
* @param[in] bus the I/O bus, pointer to a @p IOBus structure
* @param[in] mode the mode
*
- * @api
+ * @special
*/
void palSetBusMode(IOBus *bus, iomode_t mode) {
- chDbgCheck((bus != NULL) &&
- (bus->offset < PAL_IOPORTS_WIDTH), "palSetBusMode");
+ osalDbgCheck((bus != NULL) && (bus->offset < PAL_IOPORTS_WIDTH));
palSetGroupMode(bus->portid, bus->mask, bus->offset, mode);
}