aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt')
-rw-r--r--os/rt/include/chsem.h2
-rw-r--r--os/rt/include/chvt.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/os/rt/include/chsem.h b/os/rt/include/chsem.h
index dc0597718..ab0d537b5 100644
--- a/os/rt/include/chsem.h
+++ b/os/rt/include/chsem.h
@@ -146,7 +146,7 @@ static inline void chSemFastSignalI(semaphore_t *sp) {
*
* @iclass
*/
-static inline cnt_t chSemGetCounterI(semaphore_t *sp) {
+static inline cnt_t chSemGetCounterI(const semaphore_t *sp) {
chDbgCheckClassI();
diff --git a/os/rt/include/chvt.h b/os/rt/include/chvt.h
index 8af8e7144..868eb77e8 100644
--- a/os/rt/include/chvt.h
+++ b/os/rt/include/chvt.h
@@ -238,7 +238,7 @@ static inline bool chVTGetTimersStateI(sysinterval_t *timep) {
*
* @iclass
*/
-static inline bool chVTIsArmedI(virtual_timer_t *vtp) {
+static inline bool chVTIsArmedI(const virtual_timer_t *vtp) {
chDbgCheckClassI();
@@ -255,7 +255,7 @@ static inline bool chVTIsArmedI(virtual_timer_t *vtp) {
*
* @api
*/
-static inline bool chVTIsArmed(virtual_timer_t *vtp) {
+static inline bool chVTIsArmed(const virtual_timer_t *vtp) {
bool b;
chSysLock();