Microchip® Advanced Software Framework

conf_wilc.h File Reference

WiFi Settings.

Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries.

#include "board.h"
#include "osprintf.h"
#include <FreeRTOSConfig.h>
#include <os/include/os_hook.h>

Macros

#define CONF_BT_MODE_BLE_ONLY   /* BLE Only mode */
 
#define CONF_DRIVER_LOCK   1
 
#define CONF_WILC_DEBUG   (1)
 
#define CONF_WILC_PIN_CHIP_ENABLE   IOPORT_CREATE_PIN(PIOC,13)
 
#define CONF_WILC_PIN_RESET   IOPORT_CREATE_PIN(PIOD, 26)
 
#define CONF_WILC_PIN_WAKE   IOPORT_CREATE_PIN(PIOB, 2)
 
#define CONF_WILC_PRINTF   osprintf
 
#define CONF_WILC_SPI   SPI0
 SPI pin and instance settings. More...
 
#define CONF_WILC_SPI_CLK_FLAGS   SPI0_SPCK_FLAGS
 
#define CONF_WILC_SPI_CLK_GPIO   SPI0_SPCK_GPIO
 
#define CONF_WILC_SPI_CLOCK   (40000000)
 SPI clock. More...
 
#define CONF_WILC_SPI_CS_FLAGS   SPI0_NPCS1_FLAGS
 
#define CONF_WILC_SPI_CS_GPIO   SPI0_NPCS1_GPIO
 
#define CONF_WILC_SPI_DLYBCT   (0)
 
#define CONF_WILC_SPI_DLYBS   (0)
 SPI delay before SPCK and between consecutive transfer. More...
 
#define CONF_WILC_SPI_ID   ID_SPI0
 
#define CONF_WILC_SPI_INT_MASK   (1 << 31)
 
#define CONF_WILC_SPI_INT_PIN   IOPORT_CREATE_PIN(PIOC, 31)
 SPI interrupt pin. More...
 
#define CONF_WILC_SPI_INT_PIO   PIOC
 
#define CONF_WILC_SPI_INT_PIO_ID   ID_PIOC
 
#define CONF_WILC_SPI_INT_PRIORITY   (configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY)
 Highest INT priority that can call FreeRTOS FromISR() functions. More...
 
#define CONF_WILC_SPI_MISO_FLAGS   SPI0_MISO_FLAGS
 
#define CONF_WILC_SPI_MISO_GPIO   SPI0_MISO_GPIO
 
#define CONF_WILC_SPI_MOSI_FLAGS   SPI0_MOSI_FLAGS
 
#define CONF_WILC_SPI_MOSI_GPIO   SPI0_MOSI_GPIO
 
#define CONF_WILC_SPI_NPCS   (1)
 
#define CONF_WILC_SPI_PHA   (1)
 
#define CONF_WILC_SPI_POL   (0)
 Clock polarity & phase. More...
 
#define CONF_WILC_USE_3000_REV_A
 Select WILC firmware to use. More...
 
#define CONF_WILC_USE_SPI
 
#define DRIVER_SIGNAL_ISR   os_hook_isr
 

#define CONF_BT_MODE_BLE_ONLY   /* BLE Only mode */
#define CONF_DRIVER_LOCK   1
#define CONF_WILC_DEBUG   (1)
#define CONF_WILC_PIN_CHIP_ENABLE   IOPORT_CREATE_PIN(PIOC,13)

Referenced by init_chip_pins(), and nm_bsp_reset().

#define CONF_WILC_PIN_RESET   IOPORT_CREATE_PIN(PIOD, 26)

Referenced by init_chip_pins(), and nm_bsp_reset().

#define CONF_WILC_PIN_WAKE   IOPORT_CREATE_PIN(PIOB, 2)
#define CONF_WILC_PRINTF   osprintf
#define CONF_WILC_SPI   SPI0

SPI pin and instance settings.

Referenced by nm_bus_init(), and spi_rw().

#define CONF_WILC_SPI_CLK_FLAGS   SPI0_SPCK_FLAGS

Referenced by nm_bus_init().

#define CONF_WILC_SPI_CLK_GPIO   SPI0_SPCK_GPIO

Referenced by nm_bus_init().

#define CONF_WILC_SPI_CLOCK   (40000000)

SPI clock.

Referenced by nm_bus_init().

#define CONF_WILC_SPI_CS_FLAGS   SPI0_NPCS1_FLAGS
#define CONF_WILC_SPI_CS_GPIO   SPI0_NPCS1_GPIO

Referenced by init_chip_pins(), and nm_bus_init().

#define CONF_WILC_SPI_DLYBCT   (0)

Referenced by nm_bus_init().

#define CONF_WILC_SPI_DLYBS   (0)

SPI delay before SPCK and between consecutive transfer.

Referenced by nm_bus_init().

#define CONF_WILC_SPI_ID   ID_SPI0
#define CONF_WILC_SPI_INT_MASK   (1 << 31)
#define CONF_WILC_SPI_INT_PIN   IOPORT_CREATE_PIN(PIOC, 31)

SPI interrupt pin.

Referenced by nm_bsp_register_isr().

#define CONF_WILC_SPI_INT_PIO   PIOC
#define CONF_WILC_SPI_INT_PIO_ID   ID_PIOC

Referenced by chip_isr(), and nm_bsp_register_isr().

#define CONF_WILC_SPI_INT_PRIORITY   (configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY)

Highest INT priority that can call FreeRTOS FromISR() functions.

Referenced by nm_bsp_register_isr().

#define CONF_WILC_SPI_MISO_FLAGS   SPI0_MISO_FLAGS

Referenced by nm_bus_init().

#define CONF_WILC_SPI_MISO_GPIO   SPI0_MISO_GPIO

Referenced by nm_bus_init().

#define CONF_WILC_SPI_MOSI_FLAGS   SPI0_MOSI_FLAGS

Referenced by nm_bus_init().

#define CONF_WILC_SPI_MOSI_GPIO   SPI0_MOSI_GPIO

Referenced by nm_bus_init().

#define CONF_WILC_SPI_NPCS   (1)

Referenced by nm_bus_init().

#define CONF_WILC_SPI_PHA   (1)

Referenced by nm_bus_init().

#define CONF_WILC_SPI_POL   (0)

Clock polarity & phase.

Referenced by nm_bus_init().

#define CONF_WILC_USE_3000_REV_A

Select WILC firmware to use.

#define CONF_WILC_USE_SPI
#define DRIVER_SIGNAL_ISR   os_hook_isr

Referenced by isr().