builds with make
This commit is contained in:
parent
8709bcb465
commit
549d4f3403
17 changed files with 1513 additions and 1234 deletions
|
@ -6,7 +6,29 @@
|
|||
*/
|
||||
#include "cmsis.h"
|
||||
#include <stdlib.h>
|
||||
#include <CppUTestExt/MockSupport_c.h>
|
||||
#include <platform/helpers.h>
|
||||
|
||||
void __disable_irq)() {}
|
||||
uint32_t __get_PRIMASK() { return 0; }
|
||||
void __set_PRIMASK(uint32_t primask) {}
|
||||
uint32_t g_effective_primask = 0;
|
||||
|
||||
void __disable_irq() {
|
||||
g_effective_primask = 1;
|
||||
mock_c()->actualCall(__FUNCTION__);
|
||||
}
|
||||
|
||||
void __enable_irq() {
|
||||
g_effective_primask = 0;
|
||||
mock_c()->actualCall(__FUNCTION__);
|
||||
}
|
||||
|
||||
uint32_t __get_PRIMASK() {
|
||||
return mock_c()->actualCall(__FUNCTION__)->
|
||||
returnUnsignedIntValueOrDefault(g_effective_primask);
|
||||
}
|
||||
|
||||
|
||||
void __set_PRIMASK(uint32_t primask) {
|
||||
g_effective_primask = primask;
|
||||
mock_c()->actualCall(__FUNCTION__)->
|
||||
withUnsignedIntParameters(TOSTR(primask), primask);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue