#include "nrf.h"
#include "nrf_gpio.h"
#define SPIS_IRQ_LEVEL 7
#define SPIS_CSN_PIN 12
#define SPIS_SCK_PIN 11
#define SPIS_MOSI_PIN 13
#define SPIS_MISO_PIN 10
#define SPIS_BUF_SIZE 16
static uint8_t spis_tx_buf[SPIS_BUF_SIZE];
static uint8_t spis_rx_buf[SPIS_BUF_SIZE];
void SPI0_TWI0_IRQHandler(void)
{
if (NRF_SPIS0->EVENTS_ACQUIRED != 0)
{
NRF_SPIS0-
nRF52832 寄存器操作 SPI Slave
最新推荐文章于 2024-03-03 11:41:10 发布