diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-04-27 07:34:15 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-04-27 07:34:15 +0000 |
commit | 837f2cd0fd066a1a4ee1fe299aac42b7816c7e29 (patch) | |
tree | 7ecb1e13cf6e5f3f593e9129195dd0e33dcecca4 /os/rt | |
parent | f6c360002daa5b9c18386f5d14ce22d3184a7b3f (diff) | |
download | ChibiOS-837f2cd0fd066a1a4ee1fe299aac42b7816c7e29.tar.gz ChibiOS-837f2cd0fd066a1a4ee1fe299aac42b7816c7e29.tar.bz2 ChibiOS-837f2cd0fd066a1a4ee1fe299aac42b7816c7e29.zip |
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
Diffstat (limited to 'os/rt')
-rw-r--r-- | os/rt/include/chsem.h | 2 | ||||
-rw-r--r-- | os/rt/include/chvt.h | 4 |
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();
|