mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-18 16:53:45 +00:00
acc39a4bc0
* Api Symbols: replace asserts with checks * Api Symbols: replace asserts with checks part 2 * Update no args function signatures with void, to help compiler to track incorrect usage * More unavoidable void * Update PVS config and code to make it happy * Format sources * nfc: fix checks * dead code cleanup & include fixes Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: hedger <hedger@nanode.su>
29 lines
626 B
C
29 lines
626 B
C
#pragma once
|
|
|
|
#include <furi_hal_gpio.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct GPIOItems GPIOItems;
|
|
|
|
GPIOItems* gpio_items_alloc(void);
|
|
|
|
void gpio_items_free(GPIOItems* items);
|
|
|
|
uint8_t gpio_items_get_count(GPIOItems* items);
|
|
|
|
void gpio_items_configure_pin(GPIOItems* items, uint8_t index, GpioMode mode);
|
|
|
|
void gpio_items_configure_all_pins(GPIOItems* items, GpioMode mode);
|
|
|
|
void gpio_items_set_pin(GPIOItems* items, uint8_t index, bool level);
|
|
|
|
void gpio_items_set_all_pins(GPIOItems* items, bool level);
|
|
|
|
const char* gpio_items_get_pin_name(GPIOItems* items, uint8_t index);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|