rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
hw_layer
ports
arm_common.cpp
Go to the documentation of this file.
1
/**
2
* @file arm_common.cpp
3
* @brief Low level common ARM code
4
*
5
* @date Nov 14, 2023
6
* @author Andrey Belomutskiy, (c) 2012-2023
7
* @author andreika <prometheus.pcb@gmail.com>
8
*/
9
10
#include "
pch.h
"
11
12
#if EFI_PROD_CODE
13
#include "
mpu_util.h
"
14
#endif
/* EFI_PROD_CODE */
15
16
void
causeHardFault
() {
17
#if EFI_PROD_CODE
18
// Set the function pointer to an invalid address
19
void (*invalidFunction)() = (
void
(*)())0xDEADBEEF;
20
// Calling the invalid function will trigger a hard fault
21
invalidFunction();
22
#endif
/* EFI_PROD_CODE */
23
}
causeHardFault
void causeHardFault()
Definition
arm_common.cpp:16
mpu_util.h
pch.h
Generated on Sat Sep 27 2025 00:10:06 for rusEFI by
1.9.8