有人做1105吗?
时间:10-02
整理:3721RD
点击:
请教一个问题,中断怎么注册的?
motion_sensor_state = (boolean)!motion_sensor_state;
if (motion_sensor_state)
{ gpio_int_set_handler (MOTION_SENSOR_EINT_NO, ACTIVE_HIGH, &bosch_motion_sensor_eint_hisr);// ACTIVE_HIGH
rex_clr_sigs( tcb, UI_GSENSOR_BMA250_EINT_SIG );
}
else
{
gpio_int_set_handler (MOTION_SENSOR_EINT_NO, ACTIVE_LOW, &bosch_motion_sensor_eint_hisr); // ACTIVE_LOW
rex_set_sigs( tcb, UI_GSENSOR_BMA250_EINT_SIG );
}这么设置有问题吗?怎么中断一直在高低变化的。