[update] update gpio
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
+4
-8
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user