48#define CLK_PORT GPIO_PORT_TO_BASE(ETH_SPI_CLK_PORT)
49#define CLK_BIT GPIO_PIN_MASK(ETH_SPI_CLK_PIN)
50#define MOSI_PORT GPIO_PORT_TO_BASE(ETH_SPI_MOSI_PORT)
51#define MOSI_BIT GPIO_PIN_MASK(ETH_SPI_MOSI_PIN)
52#define MISO_PORT GPIO_PORT_TO_BASE(ETH_SPI_MISO_PORT)
53#define MISO_BIT GPIO_PIN_MASK(ETH_SPI_MISO_PIN)
54#define CSN_PORT GPIO_PORT_TO_BASE(ETH_SPI_CSN_PORT)
55#define CSN_BIT GPIO_PIN_MASK(ETH_SPI_CSN_PIN)
56#define RESET_PORT GPIO_PORT_TO_BASE(ETH_RESET_PORT)
57#define RESET_BIT GPIO_PIN_MASK(ETH_RESET_PIN)
69enc28j60_arch_spi_select(
void)
76enc28j60_arch_spi_deselect(
void)
82enc28j60_arch_spi_init(
void)
105 enc28j60_arch_spi_deselect();
112enc28j60_arch_spi_write(uint8_t
output)
118 for(i=0; i < 8; i++) {
145enc28j60_arch_spi_read(
void)
147 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.
static uint8_t output(const linkaddr_t *localdest)
Take an IP packet and format it to be sent on an 802.15.4 network using 6lowpan.
static void input(void)
Process a received 6lowpan packet.