OpenCores
URL https://opencores.org/ocsvn/neorv32/neorv32/trunk

Subversion Repositories neorv32

[/] [neorv32/] [trunk/] [sw/] [example/] [demo_gptmr/] [main.c] - Diff between revs 72 and 73

Show entire file | Details | Blame | View Log

Rev 72 Rev 73
Line 111... Line 111...
 *
 *
 * @warning This function has to be of type "void xyz(void)" and must not use any interrupt attributes!
 * @warning This function has to be of type "void xyz(void)" and must not use any interrupt attributes!
 **************************************************************************/
 **************************************************************************/
void gptmr_firq_handler(void) {
void gptmr_firq_handler(void) {
 
 
  neorv32_cpu_csr_write(CSR_MIP, 1<<GPTMR_FIRQ_PENDING); // clear/ack pending FIRQ
  neorv32_cpu_csr_write(CSR_MIP, ~(1<<GPTMR_FIRQ_PENDING)); // clear/ack pending FIRQ
 
 
  neorv32_uart0_putc('.'); // send tick symbol via UART0
  neorv32_uart0_putc('.'); // send tick symbol via UART0
  neorv32_gpio_pin_toggle(0); // toggle output port bit 0
  neorv32_gpio_pin_toggle(0); // toggle output port bit 0
}
}
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.