Line 1... |
Line 1... |
// #################################################################################################
|
// #################################################################################################
|
// # << NEORV32 - SLINK Demo Program >> #
|
// # << NEORV32 - SLINK Demo Program >> #
|
// # ********************************************************************************************* #
|
// # ********************************************************************************************* #
|
// # BSD 3-Clause License #
|
// # BSD 3-Clause License #
|
// # #
|
// # #
|
// # Copyright (c) 2021, Stephan Nolting. All rights reserved. #
|
// # Copyright (c) 2022, Stephan Nolting. All rights reserved. #
|
// # #
|
// # #
|
// # Redistribution and use in source and binary forms, with or without modification, are #
|
// # Redistribution and use in source and binary forms, with or without modification, are #
|
// # permitted provided that the following conditions are met: #
|
// # permitted provided that the following conditions are met: #
|
// # #
|
// # #
|
// # 1. Redistributions of source code must retain the above copyright notice, this list of #
|
// # 1. Redistributions of source code must retain the above copyright notice, this list of #
|
Line 473... |
Line 473... |
/**********************************************************************//**
|
/**********************************************************************//**
|
* SLINK RX FIRQ handler
|
* SLINK RX FIRQ handler
|
**************************************************************************/
|
**************************************************************************/
|
void slink_rx_firq_handler(void) {
|
void slink_rx_firq_handler(void) {
|
|
|
neorv32_cpu_csr_write(CSR_MIP, 1 << SLINK_RX_FIRQ_PENDING); // ACK interrupt
|
neorv32_cpu_csr_write(CSR_MIP, ~(1 << SLINK_RX_FIRQ_PENDING)); // ACK interrupt
|
neorv32_uart0_printf("\n<SLINK_RX_IRQ>\n");
|
neorv32_uart0_printf("\n<SLINK_RX_IRQ>\n");
|
}
|
}
|
|
|
|
|
/**********************************************************************//**
|
/**********************************************************************//**
|
* SLINK TX FIRQ handler
|
* SLINK TX FIRQ handler
|
**************************************************************************/
|
**************************************************************************/
|
void slink_tx_firq_handler(void) {
|
void slink_tx_firq_handler(void) {
|
|
|
neorv32_cpu_csr_write(CSR_MIP, 1 << SLINK_TX_FIRQ_PENDING); // ACK interrupt
|
neorv32_cpu_csr_write(CSR_MIP, ~(1 << SLINK_TX_FIRQ_PENDING)); // ACK interrupt
|
neorv32_uart0_printf("\n<SLINK_TX_IRQ>\n");
|
neorv32_uart0_printf("\n<SLINK_TX_IRQ>\n");
|
}
|
}
|
|
|
|
|
/**********************************************************************//**
|
/**********************************************************************//**
|