From e68d51a71622581fb4a21e1a27b2e2bd6de4d7f6 Mon Sep 17 00:00:00 2001 From: huaweiwx Date: Sat, 9 Sep 2017 02:27:39 +0800 Subject: [PATCH] Update serial_w32.c for windows --- serial_w32.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/serial_w32.c b/serial_w32.c index b53a055..72ee4c4 100644 --- a/serial_w32.c +++ b/serial_w32.c @@ -360,3 +360,10 @@ struct port_interface port_serial = { .gpio = serial_w32_gpio, .get_cfg_str = serial_w32_get_cfg_str, }; + +int setGPIO(int n,unsigned short level) //add by huaweiwx@sina.com 2017.9.6 +{ + struct port_interface* port = &port_serial; + serial_w32_gpio(port,n, level); + return 1; +}