oveRTOS C API
Embedded RTOS framework — build system, configuration, and portable C API
Loading...
Searching...
No Matches
board.h
1/*
2 * Copyright (C) 2026 Kamil Lulko <kamil.lulko@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 *
6 * This file is part of oveRTOS.
7 */
8
9#ifndef OVE_BOARD_H
10#define OVE_BOARD_H
11
25#include "ove/types.h"
26#include "ove/board_types.h"
27#include "ove_config.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#ifdef CONFIG_OVE_BOARD
34
45
53const char *ove_board_name(void);
54
64const struct ove_board_desc *ove_board_desc(void);
65
66#else /* !CONFIG_OVE_BOARD */
67
68static inline int ove_board_init(void) { return OVE_OK; }
69static inline const char *ove_board_name(void) { return "unknown"; }
70static inline const struct ove_board_desc *ove_board_desc(void) { return (const struct ove_board_desc *)0; }
71
72#endif /* CONFIG_OVE_BOARD */
73
74#ifdef __cplusplus
75}
76#endif
77
80#endif /* OVE_BOARD_H */
const struct ove_board_desc * ove_board_desc(void)
Return a pointer to the current board's descriptor structure.
const char * ove_board_name(void)
Return a human-readable name for the current board.
int ove_board_init(void)
Initialise the board hardware.
#define OVE_OK
Operation completed successfully.
Definition types.h:23
Full description of a hardware board.
Definition board_types.h:44