mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-27 13:13:07 +00:00
2f3ea9494e
* gpio, hsem, crypto: switch from HAL to LL/registers * Moved GPIO initialization to furi_hal * More HAL removed * All HAL modules disabled * HAL is finally removed * hal_gpio -> furi_hal_gpio, main.h removed * Bootloader build fix * RTOS config moved to freertos-glue * delay -> furi_hal_delay Co-authored-by: あく <alleteam@gmail.com>
15 lines
399 B
C++
15 lines
399 B
C++
#include "decoder_gpio_out.h"
|
|
#include <furi.h>
|
|
#include <furi_hal.h>
|
|
|
|
void DecoderGpioOut::process_front(bool polarity, uint32_t time) {
|
|
furi_hal_gpio_write(&gpio_ext_pa7, polarity);
|
|
}
|
|
|
|
DecoderGpioOut::DecoderGpioOut() {
|
|
furi_hal_gpio_init_simple(&gpio_ext_pa7, GpioModeOutputPushPull);
|
|
}
|
|
|
|
DecoderGpioOut::~DecoderGpioOut() {
|
|
furi_hal_gpio_init_simple(&gpio_ext_pa7, GpioModeAnalog);
|
|
}
|