⚡ Clean up macros
This commit is contained in:
@@ -38,6 +38,9 @@
|
|||||||
#error Target CONFIG_IDF_TARGET is not supported
|
#error Target CONFIG_IDF_TARGET is not supported
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* I2C software connection
|
||||||
|
*/
|
||||||
#if CONFIG_IDF_TARGET_ESP32P4
|
#if CONFIG_IDF_TARGET_ESP32P4
|
||||||
#ifndef SDA_PIN
|
#ifndef SDA_PIN
|
||||||
#define SDA_PIN 7
|
#define SDA_PIN 7
|
||||||
@@ -53,7 +56,6 @@
|
|||||||
#define SCL_PIN 22
|
#define SCL_PIN 22
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef I2C_FREQUENCY
|
#ifndef I2C_FREQUENCY
|
||||||
#define I2C_FREQUENCY 100000UL
|
#define I2C_FREQUENCY 1000000UL
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -3,28 +3,7 @@
|
|||||||
#include <template/state_result.h>
|
#include <template/state_result.h>
|
||||||
#include <sdkconfig.h>
|
#include <sdkconfig.h>
|
||||||
#include <platform_shared/api.pb.h>
|
#include <platform_shared/api.pb.h>
|
||||||
|
#include <global.h>
|
||||||
/*
|
|
||||||
* I2C software connection
|
|
||||||
*/
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32P4
|
|
||||||
#ifndef SDA_PIN
|
|
||||||
#define SDA_PIN 7
|
|
||||||
#endif
|
|
||||||
#ifndef SCL_PIN
|
|
||||||
#define SCL_PIN 8
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#ifndef SDA_PIN
|
|
||||||
#define SDA_PIN 21
|
|
||||||
#endif
|
|
||||||
#ifndef SCL_PIN
|
|
||||||
#define SCL_PIN 22
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#ifndef I2C_FREQUENCY
|
|
||||||
#define I2C_FREQUENCY 1000000UL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Use proto types directly
|
// Use proto types directly
|
||||||
using PinConfig = api_PinConfig;
|
using PinConfig = api_PinConfig;
|
||||||
|
|||||||
@@ -108,9 +108,7 @@ build_flags =
|
|||||||
-D MIPI_CSI_LANE_BITRATE_MBPS=400
|
-D MIPI_CSI_LANE_BITRATE_MBPS=400
|
||||||
-D MIPI_CSI_DATA_LANES=2
|
-D MIPI_CSI_DATA_LANES=2
|
||||||
-D CSI_JPEG_QUALITY=65
|
-D CSI_JPEG_QUALITY=65
|
||||||
-D WAKEUP_PIN_NUMBER=0
|
|
||||||
-D BOARD_HAS_PSRAM
|
-D BOARD_HAS_PSRAM
|
||||||
-D USE_BLE=0
|
|
||||||
-D SDA_PIN=7
|
-D SDA_PIN=7
|
||||||
-D SCL_PIN=8
|
-D SCL_PIN=8
|
||||||
-D WS2812_PIN=27
|
-D WS2812_PIN=27
|
||||||
|
|||||||
Reference in New Issue
Block a user