NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
Loading...
Searching...
No Matches
neorv32_slink.h
Go to the documentation of this file.
1// ================================================================================ //
2// The NEORV32 RISC-V Processor - https://github.com/stnolting/neorv32 //
3// Copyright (c) NEORV32 contributors. //
4// Copyright (c) 2020 - 2024 Stephan Nolting. All rights reserved. //
5// Licensed under the BSD-3-Clause license, see LICENSE for details. //
6// SPDX-License-Identifier: BSD-3-Clause //
7// ================================================================================ //
8
16#ifndef neorv32_slink_h
17#define neorv32_slink_h
18
19#include <stdint.h>
20
21
22/**********************************************************************/
27typedef volatile struct __attribute__((packed,aligned(4))) {
28 uint32_t CTRL;
29 uint32_t ROUTE;
30 uint32_t DATA;
31 uint32_t DATA_LAST;
33
35#define NEORV32_SLINK ((neorv32_slink_t*) (NEORV32_SLINK_BASE))
36
64
72
81/**********************************************************************/
86void neorv32_slink_setup(uint32_t rx_irq, uint32_t tx_irq);
87void neorv32_slink_rx_clear(void);
88void neorv32_slink_tx_clear(void);
91uint32_t neorv32_slink_get(void);
92uint32_t neorv32_slink_check_last(void);
93void neorv32_slink_set_dst(uint32_t dst);
94uint32_t neorv32_slink_get_src(void);
95void neorv32_slink_put(uint32_t tx_data);
96void neorv32_slink_put_last(uint32_t tx_data);
102#endif // neorv32_slink_h