Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ if(CMAKE_CROSSCOMPILING)
$<$<BOOL:${CMAKE_CROSSCOMPILING}>:-specs=nosys.specs>
$<$<CONFIG:Debug>:-g>
$<$<CONFIG:RelWithDebInfo>:-g>
$<$<NOT:$<CONFIG:Debug>>:-flto>
-ffunction-sections
-fdata-sections
-fno-exceptions
Expand Down
5 changes: 2 additions & 3 deletions Core/Src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
using namespace ST_LIB;

constexpr auto led = ST_LIB::DigitalOutputDomain::DigitalOutput(ST_LIB::PF13);

using MainBoard = ST_LIB::Board<led>;
using MainBoard = ST_LIB::Board<ST_LIB::FaultPolicyNoMachine<nullptr>,led>;

#ifndef EXAMPLE_SELECTED
int main(void) {
Expand All @@ -22,7 +21,7 @@ int main(void) {
#endif

extern "C" void Error_Handler(void) {
ErrorHandler("HAL error handler triggered");
PANIC("HAL error handler triggered");
while (1) {
}
}
Loading