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

Subversion Repositories neorv32

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

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 67 Rev 69
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_gptmr_ack_irq(); // IRQ acknowledge / clear pending alarm interrupt
  neorv32_cpu_csr_write(CSR_MIP, 1<<GPTMR_FIRQ_PENDING); // clear/ack pending FIRQ
 
 
  neorv32_uart0_putc('.'); // send tick symbol via UART
  neorv32_uart0_putc('.'); // send tick symbol via UART
  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.