Skip to content

Commit 4a1508b

Browse files
committed
application: sdp: mspi: remove obsolete nrf_vpr_csr_vio functions
They are now part of nrfx 3.10.0 release. Signed-off-by: Nikodem Kastelik <[email protected]>
1 parent ca17026 commit 4a1508b

File tree

2 files changed

+1
-51
lines changed

2 files changed

+1
-51
lines changed

applications/sdp/mspi/src/hrt/hrt.c

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -26,46 +26,6 @@
2626
*/
2727
#define CNT1_TOP_CALCULATE(cnt0_top) (2 * ((cnt0_top) + 1) - 1)
2828

29-
/** @brief Shift control configuration. */
30-
typedef struct {
31-
uint8_t shift_count;
32-
nrf_vpr_csr_vio_shift_t out_mode;
33-
uint8_t frame_width;
34-
nrf_vpr_csr_vio_mode_in_t in_mode;
35-
} nrf_vpr_csr_vio_shift_ctrl_t;
36-
37-
NRF_STATIC_INLINE void
38-
nrf_vpr_csr_vio_shift_ctrl_buffered_set(nrf_vpr_csr_vio_shift_ctrl_t const *p_shift_ctrl)
39-
{
40-
uint32_t reg =
41-
((p_shift_ctrl->shift_count << VPRCSR_NORDIC_SHIFTCTRLB_SHIFTCNTB_VALUE_Pos) &
42-
VPRCSR_NORDIC_SHIFTCTRLB_SHIFTCNTB_VALUE_Msk) |
43-
((p_shift_ctrl->out_mode << VPRCSR_NORDIC_SHIFTCTRLB_OUTMODEB_MODE_Pos) &
44-
VPRCSR_NORDIC_SHIFTCTRLB_OUTMODEB_MODE_Msk) |
45-
((p_shift_ctrl->frame_width << VPRCSR_NORDIC_SHIFTCTRLB_OUTMODEB_FRAMEWIDTH_Pos) &
46-
VPRCSR_NORDIC_SHIFTCTRLB_OUTMODEB_FRAMEWIDTH_Msk) |
47-
((p_shift_ctrl->in_mode << VPRCSR_NORDIC_SHIFTCTRLB_INMODEB_MODE_Pos) &
48-
VPRCSR_NORDIC_SHIFTCTRLB_INMODEB_MODE_Msk);
49-
50-
nrf_csr_write(VPRCSR_NORDIC_SHIFTCTRLB, reg);
51-
}
52-
53-
/* Temporary function definition until the one from nrfx has its return type fixed. */
54-
NRF_STATIC_INLINE uint32_t vpr_csr_vio_in_buffered_reversed_byte_get(void)
55-
{
56-
return nrf_csr_read(VPRCSR_NORDIC_INBRB);
57-
}
58-
59-
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_or_set(uint16_t value)
60-
{
61-
nrf_csr_set_bits(VPRCSR_NORDIC_OUT, value);
62-
}
63-
64-
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_clear_set(uint16_t value)
65-
{
66-
nrf_csr_clear_bits(VPRCSR_NORDIC_OUT, value);
67-
}
68-
6929
static const nrf_vpr_csr_vio_shift_ctrl_t write_final_shift_ctrl_cfg = {
7030
.shift_count = 1,
7131
.out_mode = NRF_VPR_CSR_VIO_SHIFT_NONE,
@@ -356,7 +316,7 @@ void hrt_read(volatile hrt_xfer_t *hrt_xfer_params)
356316

357317
for (uint8_t i = 0; i < hrt_xfer_params->xfer_data[HRT_FE_DATA].word_count; i++) {
358318
hrt_xfer_params->xfer_data[HRT_FE_DATA].data[i] =
359-
vpr_csr_vio_in_buffered_reversed_byte_get() >> INPUT_SHIFT_COUNT;
319+
nrf_vpr_csr_vio_in_buffered_reversed_byte_get() >> INPUT_SHIFT_COUNT;
360320
}
361321

362322
/* Stop counters */

applications/sdp/mspi/src/main.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,6 @@ static volatile uint8_t response_buffer[CONFIG_SDP_MSPI_MAX_RESPONSE_SIZE];
7777
static struct ipc_ept ep;
7878
static atomic_t ipc_atomic_sem = ATOMIC_INIT(0);
7979

80-
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_or_set(uint16_t value)
81-
{
82-
nrf_csr_set_bits(VPRCSR_NORDIC_OUT, value);
83-
}
84-
85-
NRF_STATIC_INLINE void nrf_vpr_csr_vio_out_clear_set(uint16_t value)
86-
{
87-
nrf_csr_clear_bits(VPRCSR_NORDIC_OUT, value);
88-
}
89-
9080
static void adjust_tail(volatile hrt_xfer_data_t *xfer_data, uint16_t frame_width,
9181
uint32_t data_length)
9282
{

0 commit comments

Comments
 (0)