Closed stnolting closed 3 years ago
demo_gpio_irq uses firq channel 8. The following changes are needed in main.c to make it work:
//install_err += neorv32_rte_exception_install(RTE_TRAP_FIRQ_1, gpio_pin_change_irq_handler); install_err += neorv32_rte_exception_install(RTE_TRAP_FIRQ_8, gpio_pin_change_irq_handler);
//install_err += neorv32_cpu_irq_enable(CSR_MIE_FIRQ1E); install_err += neorv32_cpu_irq_enable(CSR_MIE_FIRQ8E);
Originally posted by @razzy34 in https://github.com/stnolting/neorv32/discussions/4#discussioncomment-434671
Fixed.
demo_gpio_irq uses firq channel 8. The following changes are needed in main.c to make it work:
//install_err += neorv32_rte_exception_install(RTE_TRAP_FIRQ_1, gpio_pin_change_irq_handler); install_err += neorv32_rte_exception_install(RTE_TRAP_FIRQ_8, gpio_pin_change_irq_handler);
//install_err += neorv32_cpu_irq_enable(CSR_MIE_FIRQ1E); install_err += neorv32_cpu_irq_enable(CSR_MIE_FIRQ8E);
Originally posted by @razzy34 in https://github.com/stnolting/neorv32/discussions/4#discussioncomment-434671