47#define CLK_PORT GPIO_PORT_TO_BASE(ETH_SPI_CLK_PORT)
48#define CLK_BIT GPIO_PIN_MASK(ETH_SPI_CLK_PIN)
49#define MOSI_PORT GPIO_PORT_TO_BASE(ETH_SPI_MOSI_PORT)
50#define MOSI_BIT GPIO_PIN_MASK(ETH_SPI_MOSI_PIN)
51#define MISO_PORT GPIO_PORT_TO_BASE(ETH_SPI_MISO_PORT)
52#define MISO_BIT GPIO_PIN_MASK(ETH_SPI_MISO_PIN)
53#define CSN_PORT GPIO_PORT_TO_BASE(ETH_SPI_CSN_PORT)
54#define CSN_BIT GPIO_PIN_MASK(ETH_SPI_CSN_PIN)
55#define RESET_PORT GPIO_PORT_TO_BASE(ETH_RESET_PORT)
56#define RESET_BIT GPIO_PIN_MASK(ETH_RESET_PIN)
68enc28j60_arch_spi_select(
void)
75enc28j60_arch_spi_deselect(
void)
81enc28j60_arch_spi_init(
void)
104 enc28j60_arch_spi_deselect();
111enc28j60_arch_spi_write(uint8_t output)
117 for(i=0; i < 8; i++) {
144enc28j60_arch_spi_read(
void)
146 return enc28j60_arch_spi_write(0);
Header file with register and macro declarations for the cc2538 GPIO module.
void clock_delay_usec(uint16_t dt)
Delay a given number of microseconds.
#define GPIO_SOFTWARE_CONTROL(PORT_BASE, PIN_MASK)
Configure the pin to be software controlled with PIN_MASK of port with PORT_BASE.
#define GPIO_SET_INPUT(PORT_BASE, PIN_MASK)
Set pins with PIN_MASK of port with PORT_BASE to input.
#define GPIO_SET_PIN(PORT_BASE, PIN_MASK)
Set pins with PIN_MASK of port with PORT_BASE high.
#define GPIO_CLR_PIN(PORT_BASE, PIN_MASK)
Set pins with PIN_MASK of port with PORT_BASE low.
#define GPIO_SET_OUTPUT(PORT_BASE, PIN_MASK)
Set pins with PIN_MASK of port with PORT_BASE to output.
#define GPIO_READ_PIN(PORT_BASE, PIN_MASK)
Read pins with PIN_MASK of port with PORT_BASE.