m2m_hw_gpio_int_trigger_bms_sem

M2M_API_RESULT m2m_hw_gpio_int_trigger_bms_sem(INT32 io, M2M_INT_FRONT front,

void *sema)

Description: the function is used to unlock binary msSemaphore (bms_sem) when interrupt occurs on selected GPIO.

 

Parameters:
io:      GPIO port number
front:  specifies the GPIO edge that trigger the interrupt, refer to M2M_INT_FRONT enum. To

disable the interrupt the front must be set to M2M_NO_EDGE. sema:  binary msSemaphore handle

 

Return value:
         refer to M2M_API_RESULT enum. On failure the msSemaphore is not unlocked.

 

 

NOTE: for HE910/UE910 series, the GPIO port number 5 and 10 cannot generate interrupts.

For LE910 V2 series, the GPIO port number 5, 8, and 10, cannot generate interrupts.