Loading...
Searching...
No Matches
furi_hal_bus.h
1#pragma once
2
3#ifdef __cplusplus
4extern "C" {
5#endif
6
7#include "stm32wbxx.h"
8#include "stdbool.h"
9
10typedef enum {
11 FuriHalBusAHB1_GRP1,
12 FuriHalBusDMA1,
13 FuriHalBusDMA2,
14 FuriHalBusDMAMUX1,
15 FuriHalBusCRC,
16 FuriHalBusTSC,
17
18 FuriHalBusAHB2_GRP1,
19 FuriHalBusGPIOA,
20 FuriHalBusGPIOB,
21 FuriHalBusGPIOC,
22 FuriHalBusGPIOD,
23 FuriHalBusGPIOE,
24 FuriHalBusGPIOH,
25#if defined(ADC_SUPPORT_5_MSPS)
26 FuriHalBusADC,
27#endif
28 FuriHalBusAES1,
29
30 FuriHalBusAHB3_GRP1,
31 FuriHalBusQUADSPI,
32 FuriHalBusPKA,
33 FuriHalBusAES2,
34 FuriHalBusRNG,
35 FuriHalBusHSEM,
36 FuriHalBusIPCC,
37 FuriHalBusFLASH,
38
39 FuriHalBusAPB1_GRP1,
40 FuriHalBusTIM2,
41 FuriHalBusLCD,
42 FuriHalBusSPI2,
43 FuriHalBusI2C1,
44 FuriHalBusI2C3,
45 FuriHalBusCRS,
46 FuriHalBusUSB,
47 FuriHalBusLPTIM1,
48
49 FuriHalBusAPB1_GRP2,
50 FuriHalBusLPUART1,
51 FuriHalBusLPTIM2,
52
53 FuriHalBusAPB2_GRP1,
54#if defined(ADC_SUPPORT_2_5_MSPS)
55 FuriHalBusADC,
56#endif
57 FuriHalBusTIM1,
58 FuriHalBusSPI1,
59 FuriHalBusUSART1,
60 FuriHalBusTIM16,
61 FuriHalBusTIM17,
62 FuriHalBusSAI1,
63
64 FuriHalBusAPB3_GRP1,
65 FuriHalBusRF,
66
67 FuriHalBusMAX,
68} FuriHalBus;
69
71void furi_hal_bus_init_early(void);
72
74void furi_hal_bus_deinit_early(void);
75
81void furi_hal_bus_enable(FuriHalBus bus);
82
88void furi_hal_bus_reset(FuriHalBus bus);
89
95void furi_hal_bus_disable(FuriHalBus bus);
96
108bool furi_hal_bus_is_enabled(FuriHalBus bus);
109
110#ifdef __cplusplus
111}
112#endif