forked from xiaozhi/xiaozhi-esp32
Feat sscma camera (#770)
* feat: add sscma camera * fix: 修复sscma camera 无法使用等问题 * feat: update README.md * style: optimize styles * style: fix styles * Update sscma_camera.h --------- Co-authored-by: Xiaoxia <terrence@tenclass.com>
This commit is contained in:
@@ -2,8 +2,29 @@
|
||||
#define _BOARD_CONFIG_H_
|
||||
|
||||
#include <driver/gpio.h>
|
||||
#include "driver/spi_common.h"
|
||||
#include "esp_io_expander.h"
|
||||
|
||||
// SSCMA Client Configuration
|
||||
#define CONFIG_SSCMA_EVENT_QUEUE_SIZE 1
|
||||
#define CONFIG_SSCMA_TX_BUFFER_SIZE 8192
|
||||
#define CONFIG_SSCMA_RX_BUFFER_SIZE 98304
|
||||
|
||||
// SSCMA Client Process Task
|
||||
#define CONFIG_SSCMA_PROCESS_TASK_STACK_SIZE 10240
|
||||
#define CONFIG_SSCMA_PROCESS_TASK_PRIORITY 5
|
||||
#define CONFIG_SSCMA_PROCESS_TASK_AFFINITY_CPU1 1
|
||||
#define CONFIG_SSCMA_PROCESS_TASK_AFFINITY 1
|
||||
#define CONFIG_SSCMA_PROCESS_TASK_STACK_ALLOC_EXTERNAL 1
|
||||
|
||||
// SSCMA Client Monitor Task
|
||||
#define CONFIG_SSCMA_MONITOR_TASK_STACK_SIZE 10240
|
||||
#define CONFIG_SSCMA_MONITOR_TASK_PRIORITY 4
|
||||
#define CONFIG_SSCMA_MONITOR_TASK_AFFINITY_CPU1 1
|
||||
#define CONFIG_SSCMA_MONITOR_TASK_AFFINITY 1
|
||||
#define CONFIG_SSCMA_MONITOR_TASK_STACK_ALLOC_EXTERNAL 1
|
||||
#define CONFIG_SSCMA_ALLOC_SMALL_SHORTTERM_MEM_EXTERNALLY 1
|
||||
|
||||
/* General I2C */
|
||||
#define BSP_GENERAL_I2C_NUM (I2C_NUM_0)
|
||||
#define BSP_GENERAL_I2C_SDA (GPIO_NUM_47)
|
||||
@@ -57,6 +78,16 @@
|
||||
#define BSP_KNOB_A_PIN GPIO_NUM_41
|
||||
#define BSP_KNOB_B_PIN GPIO_NUM_42
|
||||
|
||||
/* SPI */
|
||||
#define BSP_SPI2_HOST_SCLK (GPIO_NUM_4)
|
||||
#define BSP_SPI2_HOST_MOSI (GPIO_NUM_5)
|
||||
#define BSP_SPI2_HOST_MISO (GPIO_NUM_6)
|
||||
|
||||
/* SD Card */
|
||||
#define BSP_SD_SPI_NUM (SPI2_HOST)
|
||||
#define BSP_SD_SPI_CS (GPIO_NUM_46)
|
||||
#define BSP_SD_GPIO_DET (IO_EXPANDER_PIN_NUM_4)
|
||||
|
||||
/* QSPI */
|
||||
#define BSP_SPI3_HOST_PCLK (GPIO_NUM_7)
|
||||
#define BSP_SPI3_HOST_DATA0 (GPIO_NUM_9)
|
||||
@@ -103,4 +134,19 @@
|
||||
#define BSP_BAT_ADC_ATTEN (ADC_ATTEN_DB_2_5) // 0 ~ 1100 mV
|
||||
#define BSP_BAT_VOL_RATIO ((62 + 20) / 20)
|
||||
|
||||
/* Himax */
|
||||
#define BSP_SSCMA_CLIENT_RST (IO_EXPANDER_PIN_NUM_7)
|
||||
#define BSP_SSCMA_CLIENT_RST_USE_EXPANDER (true)
|
||||
|
||||
#define BSP_SSCMA_CLIENT_SPI_NUM (SPI2_HOST)
|
||||
#define BSP_SSCMA_CLIENT_SPI_CS (GPIO_NUM_21)
|
||||
#define BSP_SSCMA_CLIENT_SPI_SYNC (IO_EXPANDER_PIN_NUM_6)
|
||||
#define BSP_SSCMA_CLIENT_SPI_SYNC_USE_EXPANDER (true)
|
||||
#define BSP_SSCMA_CLIENT_SPI_CLK (12 * 1000 * 1000)
|
||||
|
||||
#define BSP_SSCMA_FLASHER_UART_NUM (UART_NUM_1)
|
||||
#define BSP_SSCMA_FLASHER_UART_TX (GPIO_NUM_17)
|
||||
#define BSP_SSCMA_FLASHER_UART_RX (GPIO_NUM_18)
|
||||
#define BSP_SSCMA_FLASHER_UART_BAUD_RATE (921600)
|
||||
|
||||
#endif // _BOARD_CONFIG_H_
|
||||
|
||||
Reference in New Issue
Block a user