[update] update gpio

This commit is contained in:
ROY
2023-03-15 18:03:03 +08:00
parent 39dd62b0a0
commit dbb85e508a
2 changed files with 6 additions and 10 deletions
@@ -5,8 +5,8 @@
#define VERSION_DATE_YEAR 23
#define VERSION_DATE_MONTH 3
#define VERSION_DATE_DAY 15
#define VERSION_DATE_HOUR 16
#define VERSION_DATE_MINUTE 45
#define VERSION_DATE_HOUR 18
#define VERSION_DATE_MINUTE 3
// this is NOT the version hash !!
// it's the last version hash
@@ -1295,18 +1295,14 @@ uint8_t gpio_create(void)
static uint8_t pin_set(uint8_t pin, uint8_t set_value)
{
/*
* if status = 0: success
* else: fail
*/
//ret=0 -> success
// =2 -> no access
uint8_t p = pin;
uint8_t v = set_value;
PIN_Status status;
PIN_Handle *h = &eliteCtrlHandle;
status = PIN_setOutputValue(*h, p, v);
return (uint8_t)status;
return (uint8_t)(PIN_setOutputValue(*h, p, v));
}
static void adc_sel_set(uint8_t adc_sel)