This function is called by a device driver to
configure the SPI controller accordingly with device’s SPI setting.
Files
net_bsp.c
Prototype
Code Block |
---|
static CPU_INT32U NetDev_WiFi_SPI_Cfg (NET_IF *p_if,
NET_DEV_CFG_SPI_CLK_FREQ freq,
NET_DEV_CFG_SPI_CLK_POL pol,
NET_DEV_CFG_SPI_CLK_PHASE phase,
NET_DEV_CFG_SPI_XFER_UNIT_LEN xfer_unit_len,
NET_DEV_CFG_SPI_XFER_SHIFT_DIR xfer_shift_dir,
NET_ERR *p_err); |
Note that since NetDev_WiFi_SPI_Cfg()
is accessed only by function pointer via a BSP interface structure, it doesn’t need to be globally available and should therefore be declared as ‘static
’.
...