Replaced asm macro by failing assertion.

This commit is contained in:
Tobias Reinhard 2022-10-22 12:39:54 -04:00
parent 75fa197ac9
commit eeae596776
3 changed files with 255 additions and 225 deletions

View file

@ -44,6 +44,10 @@
#include "timers.h" #include "timers.h"
#include "stack_macros.h" #include "stack_macros.h"
#ifdef VERIFAST
#include "verifast_asm.h"
#endif
/* Lint e9021, e961 and e750 are suppressed as a MISRA exception justified /* Lint e9021, e961 and e750 are suppressed as a MISRA exception justified
* because the MPU ports require MPU_WRAPPERS_INCLUDED_FROM_API_FILE to be defined * because the MPU ports require MPU_WRAPPERS_INCLUDED_FROM_API_FILE to be defined
* for the header files above, but not in this file, in order to generate the * for the header files above, but not in this file, in order to generate the

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,12 @@
#ifndef VERIFAST_ASM_H
#define VERIFAST_ASM_H
bool assert_fct(bool b)
{
assert(b);
return b;
}
#undef portCHECK_IF_IN_ISR
#define portCHECK_IF_IN_ISR() assert_fct(false)
#endif /* VERIFAST_ASM_H */