REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
front_panel.cpp
Go to the documentation of this file.
1// Copyright (c) 2024 anabrid GmbH
2// Contact: https://www.anabrid.com/licensing/
3//
4// SPDX-License-Identifier: MIT OR GPL-2.0-or-later
5
6#include <proto/main.pb.h>
7#include "native/leds.h"
9#include <entity/base.h>
10#include <lucidac/front_panel.h>
11
12platform::LUCIDACFrontPanel::LUCIDACFrontPanel(interfaces::SignalGenerator * hardware)
13: Entity("FP"),
14 leds(std::make_unique<NativeLEDs>()),
15 signal_generator(hardware) {}
16
17platform::LUCIDACFrontPanel *
18platform::LUCIDACFrontPanel::from_entity_classifier(entities::EntityClassifier classifier,
19 __attribute__((__unused__)) bus::addr_t block_address) {
20 if (!classifier or classifier.class_enum != CLASS_)
21 return nullptr;
22
23 return new LUCIDACFrontPanel(new NativeSignalGenerator());
24}
__attribute__((section(".fastrun"), noinline, noclone, optimize("Os"))) int flash_sector_not_erased(uint32_t address)
Definition flasher.cpp:114