oveRTOS C API
Embedded RTOS framework — build system, configuration, and portable C API
Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
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
26#include "ove/types.h"
27#include "ove/board_types.h"
28#include "ove_config.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34#ifdef CONFIG_OVE_BOARD
35
46
54const char *ove_board_name(void);
55
65const struct ove_board_desc *ove_board_desc(void);
66
67#else /* !CONFIG_OVE_BOARD */
68
69static inline int ove_board_init(void)
70{
71 return OVE_OK;
72}
73static inline const char *ove_board_name(void)
74{
75 return "unknown";
76}
77static inline const struct ove_board_desc *ove_board_desc(void)
78{
79 return (const struct ove_board_desc *)0;
80}
81
82#endif /* CONFIG_OVE_BOARD */
83
84#ifdef __cplusplus
85}
86#endif
87
90#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.
@ OVE_OK
Definition types.h:83
Full description of a hardware board.
Definition board_types.h:45