-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCpp_Hal_ST-essentials.txt
More file actions
47 lines (36 loc) · 1.12 KB
/
Cpp_Hal_ST-essentials.txt
File metadata and controls
47 lines (36 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
startfile [
#include "hal_st/instantiations/NucleoTracerInfrastructure.hpp"
#include "hal_st/instantiations/NucleoUi.hpp"
#include "hal_st/instantiations/StmEventInfrastructure.hpp"
#include "hal_st/stm32fxxx/DefaultClockNucleoF767ZI.hpp"
unsigned int hse_value = 8000000;
int main() {
HAL_Init();
ConfigureDefaultClockNucleo767ZI();
static main_::StmEventInfrastructure eventInfrastructure;
static main_::Nucleo144Ui ui;
static hal::OutputPin ledRed(ui.ledRed);
static hal::OutputPin ledGreen(ui.ledGreen);
static hal::OutputPin ledBlue(ui.ledBlue);
ledRed.Set(true);
ledGreen.Set(true);
ledBlue.Set(true);
eventInfrastructure.Run();
__builtin_unreachable();
}
]
print things [
static main_::NucleoF767ziTracerInfrastructure tracer;
tracer.tracer.Trace() << "Hello World!";
]
timer [
#include "infra/timer/Timer.hpp"
#include <chrono>
static infra::TimerRepeating timer(std::chrono::seconds(1), []() {
doe iets
})
]
button [
static hal::InputPin button(ui.buttonOne);
?
]