diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-04-18 14:58:58 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-04-18 14:58:58 +0000 |
commit | 5597fabe0b53a7aa76c0c7052ab8edd460b0abfd (patch) | |
tree | 71183820771930517ed6b3981172c763697c625d /os/various/cpp_wrappers/ch.cpp | |
parent | 4d2101edd8200a6db20b69827b85554d3a45351c (diff) | |
download | ChibiOS-5597fabe0b53a7aa76c0c7052ab8edd460b0abfd.tar.gz ChibiOS-5597fabe0b53a7aa76c0c7052ab8edd460b0abfd.tar.bz2 ChibiOS-5597fabe0b53a7aa76c0c7052ab8edd460b0abfd.zip |
CPP wrapper. In mailbox class added methods getFreeCountI() and getUsedCountI()
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5594 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/various/cpp_wrappers/ch.cpp')
-rw-r--r-- | os/various/cpp_wrappers/ch.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/os/various/cpp_wrappers/ch.cpp b/os/various/cpp_wrappers/ch.cpp index ea27eddb1..e6d7442c8 100644 --- a/os/various/cpp_wrappers/ch.cpp +++ b/os/various/cpp_wrappers/ch.cpp @@ -812,6 +812,16 @@ namespace chibios_rt { return chMBFetchI(&mb, msgp);
}
+
+ cnt_t Mailbox::getFreeCountI(void) {
+
+ return chMBGetFreeCountI(&mb);
+ }
+
+ cnt_t Mailbox::getUsedCountI(void) {
+
+ return chMBGetUsedCountI(&mb);
+ }
#endif /* CH_USE_MAILBOXES */
#if CH_USE_MEMPOOLS
|