aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/include/hal_pal.h6
-rw-r--r--os/hal/src/hal_pal.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/os/hal/include/hal_pal.h b/os/hal/include/hal_pal.h
index d590e0e30..df87d4d1a 100644
--- a/os/hal/include/hal_pal.h
+++ b/os/hal/include/hal_pal.h
@@ -958,9 +958,9 @@ typedef struct {
#ifdef __cplusplus
extern "C" {
#endif
- ioportmask_t palReadBus(IOBus *bus);
- void palWriteBus(IOBus *bus, ioportmask_t bits);
- void palSetBusMode(IOBus *bus, iomode_t mode);
+ ioportmask_t palReadBus(const IOBus *bus);
+ void palWriteBus(const IOBus *bus, ioportmask_t bits);
+ void palSetBusMode(const IOBus *bus, iomode_t mode);
#if (PAL_USE_CALLBACKS == TRUE) || defined(__DOXYGEN__)
void palSetPadCallbackI(ioportid_t port, iopadid_t pad,
palcallback_t cb, void *arg);
diff --git a/os/hal/src/hal_pal.c b/os/hal/src/hal_pal.c
index 3861ebae3..ab07b5216 100644
--- a/os/hal/src/hal_pal.c
+++ b/os/hal/src/hal_pal.c
@@ -62,7 +62,7 @@
*
* @special
*/
-ioportmask_t palReadBus(IOBus *bus) {
+ioportmask_t palReadBus(const IOBus *bus) {
osalDbgCheck((bus != NULL) && (bus->offset < PAL_IOPORTS_WIDTH));
@@ -87,7 +87,7 @@ ioportmask_t palReadBus(IOBus *bus) {
*
* @special
*/
-void palWriteBus(IOBus *bus, ioportmask_t bits) {
+void palWriteBus(const IOBus *bus, ioportmask_t bits) {
osalDbgCheck((bus != NULL) && (bus->offset < PAL_IOPORTS_WIDTH));
@@ -110,7 +110,7 @@ void palWriteBus(IOBus *bus, ioportmask_t bits) {
*
* @special
*/
-void palSetBusMode(IOBus *bus, iomode_t mode) {
+void palSetBusMode(const IOBus *bus, iomode_t mode) {
osalDbgCheck((bus != NULL) && (bus->offset < PAL_IOPORTS_WIDTH));