diff --git a/Anaren_uart_example/uart_example.c b/Anaren_uart_example/uart_example.c index bdf77a5..66ce08b 100644 --- a/Anaren_uart_example/uart_example.c +++ b/Anaren_uart_example/uart_example.c @@ -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"); }