mirror of
https://github.com/m5stack/M5HAL.git
synced 2026-05-20 11:27:38 -07:00
Add preparation for ESP32P4
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#define M5HAL_PLATFORM_NUMBER_ESP32_S3 313
|
||||
#define M5HAL_PLATFORM_NUMBER_ESP32_C3 314
|
||||
#define M5HAL_PLATFORM_NUMBER_ESP32_C6 315
|
||||
#define M5HAL_PLATFORM_NUMBER_ESP32_P4 316
|
||||
#define M5HAL_PLATFORM_NUMBER_RP2040 400
|
||||
#define M5HAL_PLATFORM_NUMBER_SAMD21 500
|
||||
#define M5HAL_PLATFORM_NUMBER_SAMD51 510
|
||||
@@ -29,6 +30,7 @@
|
||||
#if __has_include(<sdkconfig.h>)
|
||||
#include <sdkconfig.h>
|
||||
#endif
|
||||
|
||||
// clang-format off
|
||||
#if defined(CONFIG_IDF_TARGET)
|
||||
#if defined(CONFIG_IDF_TARGET_ESP32C3)
|
||||
@@ -40,10 +42,12 @@
|
||||
#elif defined(CONFIG_IDF_TARGET_ESP32)
|
||||
#define M5HAL_TARGET_PLATFORM_NUMBER M5HAL_PLATFORM_NUMBER_ESP32_1st
|
||||
#define M5HAL_TARGET_PLATFORM_PATH m5_hal/platforms/espressif/esp32
|
||||
|
||||
#elif defined(CONFIG_IDF_TARGET_ESP32C6)
|
||||
#define M5HAL_TARGET_PLATFORM_NUMBER M5HAL_PLATFORM_NUMBER_ESP32_C6
|
||||
#define M5HAL_TARGET_PLATFORM_PATH m5_hal/platforms/espressif/esp32c6
|
||||
#elif defined(CONFIG_IDF_TARGET_ESP32P4)
|
||||
#define M5HAL_TARGET_PLATFORM_NUMBER M5HAL_PLATFORM_NUMBER_ESP32_P4
|
||||
#define M5HAL_TARGET_PLATFORM_PATH m5_hal/platforms/espressif/esp32p4
|
||||
#else
|
||||
#define M5HAL_TARGET_PLATFORM_NUMBER M5HAL_PLATFORM_NUMBER_ESP32_UNKNOWN
|
||||
#define M5HAL_TARGET_PLATFORM_PATH m5_hal/platforms/espressif/esp32_unknown
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
#ifndef M5_HAL_PLATFORMS_ESPRESSIF_ESP32P4_HEADER_HPP
|
||||
#define M5_HAL_PLATFORMS_ESPRESSIF_ESP32P4_HEADER_HPP
|
||||
|
||||
#include "../../../interface/gpio.hpp"
|
||||
// #include "../../../interface/bus.hpp"
|
||||
|
||||
namespace m5 {
|
||||
namespace hal {
|
||||
namespace platforms {
|
||||
namespace esp32 {
|
||||
namespace gpio {
|
||||
interface::gpio::GPIO* getGPIO(void);
|
||||
} // namespace gpio
|
||||
namespace bus {
|
||||
namespace i2c {
|
||||
} // namespace i2c
|
||||
} // namespace bus
|
||||
} // namespace esp32
|
||||
} // namespace platforms
|
||||
} // namespace hal
|
||||
} // namespace m5
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
Reference in New Issue
Block a user