add a .clang-format file (#9154)
This commit is contained in:
@@ -30,27 +30,26 @@ const uint32_t g_ADigitalPinMap[] = {
|
||||
// P1
|
||||
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47};
|
||||
|
||||
void initVariant()
|
||||
{
|
||||
// LEDs
|
||||
pinMode(PIN_LED1, OUTPUT);
|
||||
ledOff(PIN_LED1);
|
||||
void initVariant() {
|
||||
// LEDs
|
||||
pinMode(PIN_LED1, OUTPUT);
|
||||
ledOff(PIN_LED1);
|
||||
|
||||
pinMode(PIN_LED2, OUTPUT);
|
||||
ledOff(PIN_LED2);
|
||||
pinMode(PIN_LED2, OUTPUT);
|
||||
ledOff(PIN_LED2);
|
||||
|
||||
pinMode(PIN_LED3, OUTPUT);
|
||||
ledOff(PIN_LED3);
|
||||
pinMode(PIN_LED3, OUTPUT);
|
||||
ledOff(PIN_LED3);
|
||||
|
||||
// Turn on power to the GPS and LoRa
|
||||
pinMode(PIN_PWR_EN, OUTPUT);
|
||||
digitalWrite(PIN_PWR_EN, HIGH);
|
||||
// Turn on power to the GPS and LoRa
|
||||
pinMode(PIN_PWR_EN, OUTPUT);
|
||||
digitalWrite(PIN_PWR_EN, HIGH);
|
||||
|
||||
// Pull the GPS out of reset
|
||||
pinMode(GPS_RESET_PIN, OUTPUT);
|
||||
digitalWrite(GPS_RESET_PIN, HIGH);
|
||||
// Pull the GPS out of reset
|
||||
pinMode(GPS_RESET_PIN, OUTPUT);
|
||||
digitalWrite(GPS_RESET_PIN, HIGH);
|
||||
|
||||
// Pull the LoRa out of reset
|
||||
pinMode(LORA_RF_PWR, OUTPUT);
|
||||
digitalWrite(LORA_RF_PWR, HIGH);
|
||||
// Pull the LoRa out of reset
|
||||
pinMode(LORA_RF_PWR, OUTPUT);
|
||||
digitalWrite(LORA_RF_PWR, HIGH);
|
||||
}
|
||||
@@ -148,7 +148,8 @@ static const uint8_t A0 = PIN_A0;
|
||||
#define PIN_SPI_MOSI (GPIO_PORT0 + 22)
|
||||
#define PIN_SPI_SCK (GPIO_PORT0 + 19)
|
||||
|
||||
// #define PIN_SPI1_MISO (GPIO_PORT1 + 6) // FIXME not really needed, but for now the SPI code requires something to be defined,
|
||||
// #define PIN_SPI1_MISO (GPIO_PORT1 + 6) // FIXME not really needed, but for now the SPI code requires something to be
|
||||
// defined,
|
||||
// pick an used GPIO #define PIN_SPI1_MOSI (GPIO_PORT1 + 8) #define PIN_SPI1_SCK (GPIO_PORT1 + 9)
|
||||
|
||||
#define PIN_PWR_EN (GPIO_PORT0 + 12)
|
||||
|
||||
Reference in New Issue
Block a user