/* * Blink the four LEDs on the rev01 board in a pattern. */ #include "stm32f4xx_hal.h" #include "stm-init.h" #include "stm-led.h" #define DELAY() HAL_Delay(125) /* * PK4 = ARM_LED1 - GREEN * PK5 = ARM_LED2 - RED * PK6 = ARM_LED3 - BLUE ' PK7 = ARM_LED4 - YELLOW */ void toggle_led(uint32_t times, uint32_t led_pin) { uint32_t i; for (i = 0; i < times; i++) { HAL_GPIO_TogglePin(LED_PORT, led_pin); DELAY(); } } int main() { stm_init(); while (1) { toggle_led(2, LED_BLUE); toggle_led(2, LED_GREEN); toggle_led(2, LED_YELLOW); toggle_led(2, LED_RED); } } hal
Cryptech libhal: crypto software, HSM management, RPCgit repositories
aboutsummaryrefslogtreecommitdiff
path: root/novena-eim.h
blob: 2ef0fea4b7fe5e119407d00ba72cc1808c77d036 (plain) (blame)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72