pikapython/package/ESP32/pika_hal_ESP32_common.h

23 lines
408 B
C
Raw Normal View History

2022-06-27 15:36:12 +08:00
#ifndef __STM32__COMMON__H
#define __STM32__COMMON__H
#include <stdint.h>
2023-01-18 12:33:02 +08:00
#include "PikaObj.h"
2022-06-27 15:36:12 +08:00
2023-01-18 12:33:02 +08:00
#include "../PikaStdDevice/pika_hal.h"
2022-06-27 15:36:12 +08:00
#include "driver/gpio.h"
2023-01-18 12:33:02 +08:00
#include "driver/uart.h"
2022-06-27 15:36:12 +08:00
// #if CONFIG_IDF_TARGET_ESP32
// #endif
2023-01-18 12:33:02 +08:00
typedef struct platform_data_GPIO {
gpio_num_t gpioPort;
gpio_config_t io_conf;
} platform_data_GPIO;
2022-06-27 15:36:12 +08:00
2023-01-18 12:33:02 +08:00
int getGpioPin(char* pin);
2022-06-27 15:36:12 +08:00
uint32_t getPinMode(char* mode);
#endif