mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-29 10:32:10 +08:00
e59584fe7c
old-commit-hash: 210b52e622e5d326dbbf02b3706955cb8b71c4c6
24 lines
575 B
C
24 lines
575 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
// Pin definitions
|
|
#ifdef QCOM2
|
|
#define GPIO_HUB_RST_N 30
|
|
#define GPIO_UBLOX_RST_N 32
|
|
#define GPIO_UBLOX_SAFEBOOT_N 33
|
|
#define GPIO_UBLOX_PWR_EN 34
|
|
#define GPIO_STM_RST_N 124
|
|
#define GPIO_STM_BOOT0 134
|
|
#else
|
|
#define GPIO_HUB_RST_N 0
|
|
#define GPIO_UBLOX_RST_N 0
|
|
#define GPIO_UBLOX_SAFEBOOT_N 0
|
|
#define GPIO_UBLOX_PWR_EN 0
|
|
#define GPIO_STM_RST_N 0
|
|
#define GPIO_STM_BOOT0 0
|
|
#endif
|
|
|
|
int gpio_init(int pin_nr, bool output);
|
|
int gpio_set(int pin_nr, bool high);
|