Zephyr API Documentation
4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
dsp_regs_arc.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2022, Synopsys.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
12
#ifndef _DSP_REGS_ARC_H
13
#define _DSP_REGS_ARC_H
14
15
#include <
zephyr/toolchain.h
>
16
#include "
dsp_context.h
"
17
34
void
_load_all_dsp_registers(
struct
dsp_register_set
*regs)
35
{
36
uint32_t
*temp = (
uint32_t
*)regs;
37
38
z_arc_v2_aux_reg_write(_ARC_V2_DSP_BFLY0, *temp++);
39
z_arc_v2_aux_reg_write(_ARC_V2_AGU_AP0, *temp++);
40
z_arc_v2_aux_reg_write(_ARC_V2_AGU_OS0, *temp++);
41
}
42
54
void
_store_all_dsp_registers(
struct
dsp_register_set
*regs)
55
{
56
uint32_t
*temp = (
uint32_t
*)regs;
57
58
*temp++ = z_arc_v2_aux_reg_read(_ARC_V2_DSP_BFLY0);
59
*temp++ = z_arc_v2_aux_reg_read(_ARC_V2_AGU_AP0);
60
*temp++ = z_arc_v2_aux_reg_read(_ARC_V2_AGU_OS0);
61
}
62
76
void
_load_then_store_all_dsp_registers(
struct
dsp_register_set
*regs)
77
{
78
_load_all_dsp_registers(regs);
79
_store_all_dsp_registers(regs);
80
}
81
#endif
/* _DSP_REGS_ARC_H */
dsp_context.h
common definitions for the DSP sharing test application
uint32_t
__UINT32_TYPE__ uint32_t
Definition
stdint.h:90
dsp_register_set
Definition
dsp_context.h:34
toolchain.h
Macros to abstract toolchain specific capabilities.
tests
arch
arc
arc_dsp_sharing
src
dsp_regs_arc.h
Generated on Mon Apr 21 2025 11:55:49 for Zephyr API Documentation by
1.12.0