News
Shop
Learn
Community
Ein Bild oder sowas
LUCIDAC Documentation
User Docs
Pybrid
Julia
C++
Firmware
REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
bus.h
Go to the documentation of this file.
1
// Copyright (c) 2024 anabrid GmbH
2
// Contact: https://www.anabrid.com/licensing/
3
// SPDX-License-Identifier: MIT OR GPL-2.0-or-later
4
5
#pragma once
6
7
#include <Arduino.h>
8
#include <cstdint>
9
10
#include <bus/bus.h>
11
12
// Allow mocking the hardware in native unit tests
13
// TODO: Instead add SPI1 to ArduinoTeensyFake
14
#if defined(ARDUINO)
15
#define BUS_SPI_INTERFACE SPI1;
16
#include <SPI.h>
17
#else
18
#define BUS_SPI_INTERFACE SPI;
19
#endif
20
21
namespace
bus
{
22
23
extern
SPIClass &
spi
;
24
25
}
// namespace bus
bus
Definition
bus.h:21
bus::spi
SPIClass & spi
Definition
bus.cpp:10
lib
hardware
src
bus
teensy
bus.h
Generated by
1.12.0