IZ
Size: a a a
IZ
АК
RS
АК
VO
SK
void Default_Handler(void)
{
while(1) __NOP();
}
#define WEAK_HANDLER(name) \
void name (void) __attribute__ ((weak, alias("Default_Handler")));
// Cortex-M3 Processor Interrupt
WEAK_HANDLER(NMI_Handler )
WEAK_HANDLER(HardFault_Handler )
RS
RS
AT
VO
SK
In a valid C++ program, every thread eventually does one of the following:
terminate
makes a call to an I/O library function
performs an access through a volatile glvalue
performs an atomic operation or a synchronization operation
No thread of execution can execute forever without performing any of these observable behaviors.
Note that it means that a program with endless recursion or endless loop (whether implemented as a for-statement or by looping goto or otherwise) has undefined behavior. This allows the compilers to remove all loops that have no observable behavior, without having to prove that they would eventually terminate.
RS
RS
SK
RS
SK
#ifdef __cplusplus
extern "C" {
#endif
VO
RS
RS
SK