Skip to content
Snippets Groups Projects
Commit fdd919ce authored by Daniele Cattaneo's avatar Daniele Cattaneo Committed by Federico
Browse files

Minor fixes to the comments.

parent fb89041e
Branches
No related tags found
2 merge requests!40Update to Miosix 2.7,!17Draft: Improved miosix build system and fixed cmake scripts
...@@ -78,8 +78,8 @@ namespace miosix { ...@@ -78,8 +78,8 @@ namespace miosix {
/// \def WITH_CPU_TIME_COUNTER /// \def WITH_CPU_TIME_COUNTER
/// Allows to enable/disable CPUTimeCounter to save code size and remove its /// Allows to enable/disable CPUTimeCounter to save code size and remove its
/// overhead from the scheduling process. By default it is defined /// overhead from the scheduling process. By default it is not defined
/// (CPUTimeCounter is enabled). /// (CPUTimeCounter is disabled).
//#define WITH_CPU_TIME_COUNTER //#define WITH_CPU_TIME_COUNTER
// //
......
...@@ -244,7 +244,7 @@ private: ...@@ -244,7 +244,7 @@ private:
bool PKunlock(PauseKernelLock& dLock); bool PKunlock(PauseKernelLock& dLock);
/** /**
* Unlock mutex all levels of a recursive mutex, can be called only with * Unlock all levels of a recursive mutex, can be called only with
* kernel paused one level deep (pauseKernel calls can be nested).<br> * kernel paused one level deep (pauseKernel calls can be nested).<br>
* \param dLock the PauseKernelLock instance that paused the kernel. * \param dLock the PauseKernelLock instance that paused the kernel.
* \return the mutex recursive depth (how many times it was locked by the * \return the mutex recursive depth (how many times it was locked by the
...@@ -314,7 +314,7 @@ private: ...@@ -314,7 +314,7 @@ private:
}; };
/** /**
* This class allows to temporarily re unlock a mutex in a scope where * This class allows to temporarily re-unlock a mutex in a scope where
* it is locked <br> * it is locked <br>
* Example: * Example:
* \code * \code
...@@ -409,7 +409,7 @@ enum class TimedWaitResult ...@@ -409,7 +409,7 @@ enum class TimedWaitResult
* A condition variable class for thread synchronization, available from * A condition variable class for thread synchronization, available from
* Miosix 1.53.<br> * Miosix 1.53.<br>
* One or more threads can wait on the condition variable, and the signal() * One or more threads can wait on the condition variable, and the signal()
* and broadcast() allow to wake ne or all the waiting threads.<br> * and broadcast() methods allow to wake one or all the waiting threads.<br>
* This class is meant to be a static or global class. Dynamically creating a * This class is meant to be a static or global class. Dynamically creating a
* ConditionVariable with new or on the stack must be done with care, to avoid * ConditionVariable with new or on the stack must be done with care, to avoid
* deleting a ConditionVariable while some threads are waiting, and to avoid * deleting a ConditionVariable while some threads are waiting, and to avoid
......
...@@ -82,8 +82,8 @@ inline void ll2timespec(long long ns, struct timespec *tp) ...@@ -82,8 +82,8 @@ inline void ll2timespec(long long ns, struct timespec *tp)
// Despite there being a single intrinsic, __aeabi_ldivmod, that computes // Despite there being a single intrinsic, __aeabi_ldivmod, that computes
// both the result of the / and % operator, GCC 9.2.0 isn't smart enough and // both the result of the / and % operator, GCC 9.2.0 isn't smart enough and
// calls the intrinsic twice. This asm implementation takes ~188 cycles // calls the intrinsic twice. This asm implementation takes ~188 cycles
// instead of ~316 by calling it once. Sadly, I had to use asm as the // instead of ~316 by calling it once. Sadly I had to use asm, as the
// calling conventions of the intrinsic appear to be nonstandard. // calling convention of the intrinsic appears to be nonstandard.
// NOTE: actually a and b, by being 64 bit numbers, occupy register pairs // NOTE: actually a and b, by being 64 bit numbers, occupy register pairs
register long long a asm("r0") = ns; register long long a asm("r0") = ns;
register long long b asm("r2") = nsPerSec; register long long b asm("r2") = nsPerSec;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment