STA모드 추가
This commit is contained in:
21
config.h
21
config.h
@@ -21,22 +21,31 @@
|
||||
#define DEFAULT_BAUD_RATE 115200
|
||||
#define DEFAULT_RX_BUFFER 4096
|
||||
|
||||
// --- HSPI SD Card Pin Configuration ---
|
||||
#define SD_HSPI_CLK 14
|
||||
#define SD_HSPI_MISO 26 // Remapped from GPIO12 (strapping pin)
|
||||
#define SD_HSPI_MOSI 13
|
||||
#define SD_HSPI_CS 15
|
||||
// --- VSPI SD Card Pin Configuration ---
|
||||
#define SD_VSPI_MISO 19
|
||||
#define SD_VSPI_MOSI 23
|
||||
#define SD_VSPI_SCLK 18
|
||||
#define SD_VSPI_CS 5
|
||||
|
||||
// --- DS3231 RTC I2C Configuration (SoftWire) ---
|
||||
// 소프트웨어 I2C → 임의 GPIO 사용 가능
|
||||
#define RTC_SDA_PIN 25 // I2C SDA
|
||||
#define RTC_SCL_PIN 26 // I2C SCL
|
||||
#define DS3231_ADDRESS 0x68 // DS3231 I2C Address
|
||||
#define RTC_SYNC_INTERVAL_MS 60000 // RTC → System clock 보정 주기 (60초)
|
||||
|
||||
// --- FreeRTOS Task Priorities ---
|
||||
#define TASK_PRIORITY_SERIAL 5 // Highest - must not miss data
|
||||
#define TASK_PRIORITY_SD_LOG 3 // Medium-high - buffered writes
|
||||
#define TASK_PRIORITY_WEB 2 // Medium - user interface
|
||||
#define TASK_PRIORITY_NTP 1 // Lowest - periodic sync
|
||||
#define TASK_PRIORITY_RTC 1 // Low - periodic RTC sync
|
||||
#define TASK_PRIORITY_NTP 1 // Lowest - periodic NTP sync
|
||||
|
||||
// --- FreeRTOS Task Stack Sizes ---
|
||||
#define TASK_STACK_SERIAL 4096
|
||||
#define TASK_STACK_SD_LOG 8192
|
||||
#define TASK_STACK_WEB 8192
|
||||
#define TASK_STACK_RTC 3072
|
||||
#define TASK_STACK_NTP 4096
|
||||
|
||||
// --- Queue Configuration ---
|
||||
|
||||
Reference in New Issue
Block a user