#ifndef GPIO_CONTROL_H__
#define GPIO_CONTROL_H__

#include "pthrpoll.h"

typedef struct {
    int device_id;              // 设备ID (101, 102等)备名称
    void (*device_pwm_value)(int pin,int val);    // PWM初始化函数指针
    void (*device_pin_value)(int pin,int value);// 速度控制函数指针
    void (*device_gpio_pthread_create)(void);
} gpiocontrol_t;

void device_gpio_control(int device_id,int pin,int val);

extern ThreadPool_t *g_pool_device_gpio_control_t;

#endif