gpio: rework of gpio - using open() for value_fp
* fixes maa_gpio_read by using simple posix file io * fixes blink sample to have much more error checking * blink sample now takes an argument Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -45,7 +45,7 @@ extern "C" {
|
||||
typedef struct {
|
||||
/*@{*/
|
||||
int pin; /**< the pin number, as known to the os. */
|
||||
FILE *value_fp; /**< the file pointer to the value of the gpio */
|
||||
int value_fp; /**< the file pointer to the value of the gpio */
|
||||
void (* isr)(); /**< the interupt service request */
|
||||
pthread_t thread_id; /**< the isr handler thread id */
|
||||
int isr_value_fp; /**< the isr file pointer on the value */
|
||||
|
||||
Reference in New Issue
Block a user