52832模拟SPI(0模式)

说明:只写了SPI的0模式,其他三个模式没有调试

#include "software_spi.h"
#include "nrf_gpio.h"


static uint8_t software_spi_sclk = 0;
static uint8_t software_spi_si = 0;
static uint8_t software_spi_so = 0;

#define SOFTWARE_SPI_SCLK_SET()     NRF_GPIO->OUTSET=(1<OUTCLR=(1<OUTSET=(1<OUTCLR=(1<IN&(1<

你可能感兴趣的:(52832模拟SPI(0模式))