#pragma once #include "driver/gpio.h" // --- Hardware Configuration --- #if defined(CONFIG_IDF_TARGET_ESP32S3) // ESP32-S3 #define RGB_LED_GPIO 48 #define HAS_RGB_LED 1 #define GPS_TX_PIN GPIO_NUM_5 #define GPS_RX_PIN GPIO_NUM_4 #define GPS_PPS_PIN GPIO_NUM_6 #elif defined(CONFIG_IDF_TARGET_ESP32C5) // ESP32-C5 #define RGB_LED_GPIO 27 #define HAS_RGB_LED 1 #define GPS_TX_PIN GPIO_NUM_24 #define GPS_RX_PIN GPIO_NUM_23 #define GPS_PPS_PIN GPIO_NUM_25 #elif defined(CONFIG_IDF_TARGET_ESP32) // ESP32 (Original) #define RGB_LED_GPIO 2 // Standard Blue LED #define HAS_RGB_LED 0 // Not RGB #define GPS_TX_PIN GPIO_NUM_17 #define GPS_RX_PIN GPIO_NUM_16 #define GPS_PPS_PIN GPIO_NUM_4 #else // Fallback #define RGB_LED_GPIO 8 #define HAS_RGB_LED 1 #define GPS_TX_PIN GPIO_NUM_1 #define GPS_RX_PIN GPIO_NUM_3 #define GPS_PPS_PIN GPIO_NUM_5 #endif