libyggdrasil
v1.0.0
yggdrasil.hpp
Go to the documentation of this file.
1
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2
* _____.___. .___ .__.__ *
3
* \__ | | ____ ____ __| _/___________ _____|__| | *
4
* / | |/ ___\ / ___\ / __ |\_ __ \__ \ / ___/ | | *
5
* \____ / /_/ > /_/ > /_/ | | | \// __ \_\___ \| | |__ *
6
* / ______\___ /\___ /\____ | |__| (____ /____ >__|____/ *
7
* \/ /_____//_____/ \/ \/ \/ *
8
* - Yggdrasil - *
9
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
10
* This software can be used by students and other personal of the *
11
* Bern University of Applied Sciences under the terms of the MIT *
12
* license. *
13
* For other persons this software is under the terms of the GNU *
14
* General Public License version 2. *
15
* *
16
* Copyright © 2021, Bern University of Applied Sciences. *
17
* All rights reserved. *
18
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
26
#pragma once
27
28
#include <
cpp/yggdrasil/types.hpp
>
29
30
#if defined(YGGDRASIL_PERIPHERAL_DEFS)
31
32
namespace
bsp::ygg
{
33
34
constexpr
auto
NoData = std::array<u8, 0>{ };
35
36
}
37
38
#if BOARD == MIDGARD
39
#include <
cpp/yggdrasil/peripherals/six_axis_sensor.hpp
>
40
#include <
cpp/yggdrasil/peripherals/color_sensor.hpp
>
41
#include <
cpp/yggdrasil/peripherals/humidity_sensor.hpp
>
42
#include <
cpp/yggdrasil/peripherals/pressure_sensor.hpp
>
43
#include <
cpp/yggdrasil/peripherals/joystick.hpp
>
44
#include <
cpp/yggdrasil/peripherals/rtc.hpp
>
45
#include <
cpp/yggdrasil/peripherals/seven_segment.hpp
>
46
#include <
cpp/yggdrasil/peripherals/rgb_matrix.hpp
>
47
#include <
cpp/yggdrasil/peripherals/motor_driver.hpp
>
48
#include <
cpp/yggdrasil/peripherals/sink_driver.hpp
>
49
#elif BOARD == ASGARD
50
#include <
cpp/yggdrasil/peripherals/six_axis_sensor.hpp
>
51
#include <
cpp/yggdrasil/peripherals/color_sensor.hpp
>
52
#include <
cpp/yggdrasil/peripherals/humidity_sensor.hpp
>
53
#include <
cpp/yggdrasil/peripherals/pressure_sensor.hpp
>
54
#include <
cpp/yggdrasil/peripherals/joystick.hpp
>
55
#include <
cpp/yggdrasil/peripherals/rtc.hpp
>
56
#include <
cpp/yggdrasil/peripherals/rgb_matrix.hpp
>
57
#elif BOARD == ASGARD_COPROC
58
#include <
cpp/yggdrasil/peripherals/six_axis_sensor.hpp
>
59
#include <
cpp/yggdrasil/peripherals/color_sensor.hpp
>
60
#include <
cpp/yggdrasil/peripherals/humidity_sensor.hpp
>
61
#include <
cpp/yggdrasil/peripherals/pressure_sensor.hpp
>
62
#include <
cpp/yggdrasil/peripherals/joystick.hpp
>
63
#include <
cpp/yggdrasil/peripherals/rtc.hpp
>
64
#include <
cpp/yggdrasil/peripherals/seven_segment.hpp
>
65
#include <
cpp/yggdrasil/peripherals/rgb_matrix.hpp
>
66
#include <
cpp/yggdrasil/peripherals/motor_driver.hpp
>
67
#include <
cpp/yggdrasil/peripherals/sink_driver.hpp
>
68
#endif
69
70
#endif
joystick.hpp
Driver to use the Joysticks using the external TLA2024IRUGT ADC.
sink_driver.hpp
Driver to use the sink drivers.
types.hpp
Common type definitions used within drivers for yggdrasil.
six_axis_sensor.hpp
Driver to use the ICM-42605 Six Axis Sensor.
rtc.hpp
Driver to use the RV-3028-C7 RTC.
seven_segment.hpp
Driver to use the Seven segment display.
humidity_sensor.hpp
Driver to use the SHT40-AD1B-R2 humidity sensor.
color_sensor.hpp
Driver to use the TCS3472 color sensor.
pressure_sensor.hpp
Driver to use the LPS22HBTR pressure sensor.
rgb_matrix.hpp
Driver to use the SK9822 RGB Led (APA102 clone)
bsp::ygg
Definition:
color_sensor.hpp:32
motor_driver.hpp
Driver to use the TC78H660FTG DC motor driver.
Inc
cpp
yggdrasil
yggdrasil.hpp
Generated by
1.8.20