oveRTOS C++ API
C++20 RAII wrappers for the oveRTOS C API
Loading...
Searching...
No Matches
board.hpp
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
14#pragma once
15
16#include <ove/board.h>
17#include <ove/types.hpp>
18
19#ifdef CONFIG_OVE_BOARD
20
21namespace ove {
22
29namespace board {
30
35[[nodiscard]] inline int init() {
36 return ove_board_init();
37}
38
43inline const char *name() {
44 return ove_board_name();
45}
46
51inline const struct ove_board_desc *desc() {
52 return ove_board_desc();
53}
54
55} /* namespace board */
56
57} // namespace ove
58
59#endif /* CONFIG_OVE_BOARD */
int init()
Initialises the board hardware (clocks, pin-mux, etc.).
Definition board.hpp:35
const char * name()
Returns the human-readable board name.
Definition board.hpp:43
const struct ove_board_desc * desc()
Returns a pointer to the board descriptor structure.
Definition board.hpp:51
Top-level namespace for all oveRTOS C++ abstractions.
Definition app.hpp:19
Common type definitions and concepts for the C++ wrapper layer.