mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-18 16:53:45 +00:00
68a3f6b4b7
* Add F5 target, lp5562 driver and api-hal-light. Update api-usage, switch to F5 by default. * API HAL: add i2c and hardware version api. Dolphin: show hardware version. * OTP version generator and flashing utility. * Assets script: fix code formatting * Backport F5 changes to F4 * F4: disable insomnia, prevent damage to BLE RX path * F5 HAL API Light: remove magic delay to fix magic BLE * Dolphin: HW target validation on start * invert RSSI indication in sub-1 * API HAL: rename board to body in version api * Gpio tester: detach and release viewport on exit Co-authored-by: aanper <mail@s3f.ru>
31 lines
1 KiB
C
31 lines
1 KiB
C
#include <api-hal-resources.h>
|
|
#include "main.h"
|
|
#include <furi.h>
|
|
|
|
const InputPin input_pins[] = {
|
|
{.port = BUTTON_UP_GPIO_Port, .pin = BUTTON_UP_Pin, .key = InputKeyUp, .inverted = true},
|
|
{.port = BUTTON_DOWN_GPIO_Port,
|
|
.pin = BUTTON_DOWN_Pin,
|
|
.key = InputKeyDown,
|
|
.inverted = true},
|
|
{.port = BUTTON_RIGHT_GPIO_Port,
|
|
.pin = BUTTON_RIGHT_Pin,
|
|
.key = InputKeyRight,
|
|
.inverted = true},
|
|
{.port = BUTTON_LEFT_GPIO_Port,
|
|
.pin = BUTTON_LEFT_Pin,
|
|
.key = InputKeyLeft,
|
|
.inverted = true},
|
|
{.port = BUTTON_OK_GPIO_Port, .pin = BUTTON_OK_Pin, .key = InputKeyOk, .inverted = false},
|
|
{.port = BUTTON_BACK_GPIO_Port,
|
|
.pin = BUTTON_BACK_Pin,
|
|
.key = InputKeyBack,
|
|
.inverted = true},
|
|
};
|
|
|
|
const size_t input_pins_count = sizeof(input_pins) / sizeof(InputPin);
|
|
|
|
const GpioPin sd_cs_gpio = {SD_CS_GPIO_Port, SD_CS_Pin};
|
|
const GpioPin vibro_gpio = {VIBRO_GPIO_Port, VIBRO_Pin};
|
|
const GpioPin ibutton_gpio = {iBTN_GPIO_Port, iBTN_Pin};
|
|
const GpioPin cc1101_g0_gpio = {CC1101_G0_GPIO_Port, CC1101_G0_Pin};
|