aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/hal/include/hal_pal.h6
-rw-r--r--os/hal/src/hal_pal.c6
-rw-r--r--readme.txt2
3 files changed, 8 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));
diff --git a/readme.txt b/readme.txt
index 272b853f5..4110d8a70 100644
--- a/readme.txt
+++ b/readme.txt
@@ -115,6 +115,8 @@
- EX: Updated LIS302DL to 1.1.0 (backported to 18.2.1).
- EX: Updated LPS25H to 1.1.0 (backported to 18.2.1).
- EX: Updated LSM303DLHC to 1.1.0 (backported to 18.2.1).
+- HAL: Fixed IOBus PAL functions missing the const qualifier (bug #940)
+ (backported to 18.2.1 and 17.6.5).
- HAL: Fixed STM32 USBv1 driver does not reset data toggling bits on endpoint
initialization (bug #939)(backported to 18.2.1 and 17.6.5).
- HAL: Fixed incorrect behavior of USB driver on SET CONFIGURATION (bug #938)