STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
board.c
Go to the documentation of this file.
1
#include "
board.h
"
2
3
#include "main.h"
4
5
static
volatile
bool
soft_section
;
6
static
volatile
bool
soft_failed
;
7
8
bool
board_error_is_soft
(
void
) {
9
if
(!
soft_section
) {
10
return
false
;
11
}
12
soft_failed
=
true
;
13
return
true
;
14
}
15
16
bool
board_soft_init
(
void
(*init)(
void
)) {
17
soft_failed
=
false
;
18
soft_section
=
true
;
19
init();
20
soft_section
=
false
;
21
return
!
soft_failed
;
22
}
23
24
uint32_t
board_now_ms
(
void
) {
25
return
HAL_GetTick
();
26
}
board_now_ms
uint32_t board_now_ms(void)
Definition
board.c:24
soft_failed
static volatile bool soft_failed
Definition
board.c:6
soft_section
static volatile bool soft_section
Definition
board.c:5
board_error_is_soft
bool board_error_is_soft(void)
Definition
board.c:8
board_soft_init
bool board_soft_init(void(*init)(void))
Definition
board.c:16
board.h
HAL_GetTick
uint32_t HAL_GetTick(void)
Provides a tick value in millisecond.
Definition
stm32h7xx_hal.c:338
firmware
Flight_Computer
src
board
board.c
Generated by
1.15.0