pikapython/package/ESP32/pika_hal_ESP32_common.h
2023-01-18 12:33:02 +08:00

23 lines
408 B
C

#ifndef __STM32__COMMON__H
#define __STM32__COMMON__H
#include <stdint.h>
#include "PikaObj.h"
#include "../PikaStdDevice/pika_hal.h"
#include "driver/gpio.h"
#include "driver/uart.h"
// #if CONFIG_IDF_TARGET_ESP32
// #endif
typedef struct platform_data_GPIO {
gpio_num_t gpioPort;
gpio_config_t io_conf;
} platform_data_GPIO;
int getGpioPin(char* pin);
uint32_t getPinMode(char* mode);
#endif