Minor update
This commit is contained in:
parent
447e2d08d8
commit
f3db27bbc6
@ -337,9 +337,12 @@ void app(void)
|
||||
gpio_configurePin(PIN2PORT(GREEN_LED), PIN2PIN(GREEN_LED), GPIO_OUTPUT_ENABLE, GPIO_PIN_OUTPUT_LOW);
|
||||
gpio_configurePin(PIN2PORT(BLUE_LED), PIN2PIN(BLUE_LED), GPIO_OUTPUT_ENABLE, GPIO_PIN_OUTPUT_LOW);
|
||||
gpio_configurePin(PIN2PORT(IOEXPAND_INT), PIN2PIN(IOEXPAND_INT), GPIO_INPUT_ENABLE | GPIO_PULL_UP | GPIO_EN_INT_FALLING_EDGE, GPIO_PIN_INPUT_HIGH);
|
||||
gpio_registerForInterrupt(NULL, ioexpand_int_handler, NULL);
|
||||
//gpio_registerForInterrupt(NULL, ioexpand_int_handler, NULL);
|
||||
//Buzzer config
|
||||
aclk_configure(512000, ACLK1, ACLK_FREQ_24_MHZ);
|
||||
//I2C Bus init
|
||||
i2cm_init();
|
||||
i2cm_setSpeed(I2CM_SPEED_400KHZ);
|
||||
|
||||
puart_print("App init done\r\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user