refactroring
This commit is contained in:
parent
08f5b23a61
commit
3c58e4ee9d
|
@ -299,10 +299,6 @@ bool lockAnyContext(void) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool lockOutputBuffer(void) {
|
|
||||||
return lockAnyContext();
|
|
||||||
}
|
|
||||||
|
|
||||||
void unlockAnyContext(void) {
|
void unlockAnyContext(void) {
|
||||||
if (isIsrContext()) {
|
if (isIsrContext()) {
|
||||||
chSysUnlockFromISR()
|
chSysUnlockFromISR()
|
||||||
|
@ -312,7 +308,3 @@ void unlockAnyContext(void) {
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void unlockOutputBuffer(void) {
|
|
||||||
unlockAnyContext();
|
|
||||||
}
|
|
||||||
|
|
|
@ -68,8 +68,8 @@ extern "C"
|
||||||
{
|
{
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
bool lockOutputBuffer(void);
|
#define lockOutputBuffer lockAnyContext
|
||||||
void unlockOutputBuffer(void);
|
#define unlockOutputBuffer unlockAnyContext
|
||||||
|
|
||||||
uint32_t remainingSize(Logging *logging);
|
uint32_t remainingSize(Logging *logging);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue