chore: snapshot before shared RS485 bus integration

This commit is contained in:
2026-07-22 15:36:04 +01:00
parent ef02e5c5f5
commit 2a803fcef1
167 changed files with 5749 additions and 1128 deletions

10
components/config/include/board_config.h Executable file → Normal file
View File

@@ -1,6 +1,9 @@
#ifndef BOARD_CONFIG_H_
#define BOARD_CONFIG_H_
#include <stdbool.h>
#include <stdint.h>
#include "hal/adc_types.h"
#include "hal/gpio_types.h"
#include "soc/soc_caps.h"
@@ -19,6 +22,12 @@ typedef enum
BOARD_CONFIG_SERIAL_RS485
} board_config_serial_t;
typedef enum
{
BOARD_CONFIG_PILOT_ADC_EXTERNAL_ADC121 = 0,
BOARD_CONFIG_PILOT_ADC_INTERNAL_ESP32 = 1
} board_config_pilot_adc_source_t;
typedef struct
{
char device_name[32];
@@ -36,6 +45,7 @@ typedef struct
gpio_num_t button_wifi_gpio;
gpio_num_t pilot_pwm_gpio;
board_config_pilot_adc_source_t pilot_adc_source;
adc_channel_t pilot_adc_channel;
uint16_t pilot_down_threshold_12;
uint16_t pilot_down_threshold_9;