From 837f2cd0fd066a1a4ee1fe299aac42b7816c7e29 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 27 Apr 2018 07:34:15 +0000 Subject: Added const modifiers where required, replace NULL with nullptr, minor documentation fixes. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11955 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/rt/include/chsem.h | 2 +- os/rt/include/chvt.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'os/rt') 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(); -- cgit v1.2.3