From f3db27bbc6f011c96c16e9879bd77c7745c38dc5 Mon Sep 17 00:00:00 2001 From: Th3maz1ng Date: Sun, 29 May 2022 20:19:43 +0200 Subject: [PATCH] Minor update --- Anaren_uart_example/uart_example.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"); }