stnolting / neorv32

:desktop_computer: A small, customizable and extensible MCU-class 32-bit RISC-V soft-core CPU and microcontroller-like SoC written in platform-independent VHDL.
https://neorv32.org
BSD 3-Clause "New" or "Revised" License
1.61k stars 228 forks source link

demo_gpio_irq uses firq channel 8. The following changes are needed in main.c to make it work: #14

Closed stnolting closed 3 years ago

stnolting commented 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

stnolting commented 3 years ago

Fixed.