BSB Developer Docs
Loading...
Searching...
No Matches
f21/furi_hal/furi_hal_resources.h
Go to the documentation of this file.
1
5#pragma once
6
7#include <furi.h>
8#include <furi_hal_gpio.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14typedef enum {
15 InputKeyUp,
16 InputKeyDown,
17 InputKeyRight,
18 InputKeyLeft,
19 InputKeyOk,
20 InputKeyBack,
21 InputKeyStart,
22 InputKeyBusy,
23 InputKeyCustom,
24 InputKeyOff,
25 InputKeyApps,
26 InputKeySettings,
28} InputKey;
29
30typedef struct {
31 const GpioPin* pin;
32 const char* name;
33 const uint8_t number;
34 const bool debug;
36
37extern const GpioPin gpio_swdio;
38extern const GpioPin gpio_swclk;
39extern const GpioPin gpio_log_usart_tx;
40extern const GpioPin gpio_log_usart_rx;
41
42extern const GpioPin gpio_usart1_tx;
43extern const GpioPin gpio_usart1_rx;
44extern const GpioPin gpio_usart1_rts;
45extern const GpioPin gpio_usart1_cts;
46extern const GpioPin gpio_usart2_tx;
47extern const GpioPin gpio_usart2_rx;
48
49extern const GpioPin gpio_917_rst;
50extern const GpioPin gpio_917_swo;
51extern const GpioPin gpio_917_irq;
52
53extern const GpioPin gpio_bq25798_qon;
54extern const GpioPin gpio_bq25798_irq;
55
56extern const GpioPin gpio_sd_card_d0;
57extern const GpioPin gpio_sd_card_d1;
58extern const GpioPin gpio_sd_card_d2;
59extern const GpioPin gpio_sd_card_d3;
60extern const GpioPin gpio_sd_card_ck;
61extern const GpioPin gpio_sd_card_cmd;
62
63extern const GpioPin gpio_usb_dm;
64extern const GpioPin gpio_usb_dp;
65
66extern const GpioPin gpio_ucpd_cc1;
67extern const GpioPin gpio_ucpd_cc2;
68
69extern const GpioPin gpio_back_display_spi_sdin;
70extern const GpioPin gpio_back_display_spi_sclk;
71extern const GpioPin gpio_back_display_cs;
72extern const GpioPin gpio_back_display_dc;
73extern const GpioPin gpio_back_display_fr;
74extern const GpioPin gpio_back_display_vcc_en;
75
76extern const GpioPin gpio_i2c_scl;
77extern const GpioPin gpio_i2c_sda;
78
79extern const GpioPin gpio_front_display_power_en;
80extern const GpioPin gpio_front_display_scan_sdi;
81extern const GpioPin gpio_front_display_scan_clk;
82extern const GpioPin gpio_front_display_scan_latch;
83extern const GpioPin gpio_front_display_gclk;
84extern const GpioPin gpio_front_display_sdi_ospi_d0;
85extern const GpioPin gpio_front_display_le_ospi_d1;
86extern const GpioPin gpio_front_display_dclk_ospi_clk;
87
88extern const GpioPin gpio_i2s_fs;
89extern const GpioPin gpio_i2s_sck;
90extern const GpioPin gpio_i2s_sd;
91
92extern const GpioPin gpio_audio_en;
93extern const GpioPin gpio_fallback_confirm;
94
95extern const GpioPinRecord gpio_pins[];
96extern const size_t gpio_pins_count;
97
98void furi_hal_resources_init_early(void);
99
100void furi_hal_resources_deinit_early(void);
101
102void furi_hal_resources_init(void);
103
104#ifdef __cplusplus
105}
106#endif
InputKey
Definition f21/furi_hal/furi_hal_resources.h:14
@ InputKeyMAX
Special value, don't use it.
Definition f21/furi_hal/furi_hal_resources.h:27
Gpio structure.
Definition f21/furi_hal/furi_hal_gpio.h:209
Definition f21/furi_hal/furi_hal_resources.h:30