Hello,
I want to use SPIS peripheral in nrf7002-DK on the net core. I cannot compile (error 'NRFX_SPIS0_INST_IDX' undeclared (first use in this function))
here is my firmware:
prj.conf
CONFIG_GPIO=y CONFIG_NRFX_TIMER0=y CONFIG_LOG=y CONFIG_NRFX_SPIS0=y
main.c
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(app_core, CONFIG_LOG_DEFAULT_LEVEL);
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/ipc/ipc_service.h>
#include <hal/nrf_gpio.h>
#include <nrfx_timer.h>
#include <nrfx_spis.h>
int main(void)
{
#if defined(__ZEPHYR__)
IRQ_CONNECT(NRFX_IRQ_NUMBER_GET(NRF_TIMER_INST_GET(TIMER_INST_IDX)), IRQ_PRIO_LOWEST, NRFX_TIMER_INST_HANDLER_GET(TIMER_INST_IDX), 0, 0);
#endif
init_hfclk();
init_gpio();
init_timer();
nrfx_spis_t spis_inst = NRFX_SPIS_INSTANCE(0);
while(1)
{
//
}
return 0;