NetBurner 3.1
nbWifiWilcConfig.h
1 /*NB_REVISION*/
2 
3 /*NB_COPYRIGHT*/
4 
5 #ifndef CONFIGNBWIFI_H_
6 #define CONFIGNBWIFI_H_
7 
8 #include <wifi/wifiDriver.h>
9 
10 
11 /*
12  * These WiFi settings only apply the NBWFIFIAT.
13  */
14 
15 /*
16  ---------------------------------
17  ------- NBWIFIWILC settings -------
18  ---------------------------------
19 */
20 #define NM_EDGE_INTERRUPT (1)
21 // #define NM_LEVEL_INTERRUPT (1)
22 
23 
24 /*
25  ---------------------------------
26  ---------- SPI settings ---------
27  ---------------------------------
28 */
29 #define SPI_TRANSFER_SIZE (8) // in bits
30 #define SPI_CHIP_SELECT (0x00)
31 #define SPI_CHIP_SELECT_POLARITY (0xFF)
32 #define SPI_CLOCK_POLARITY (0)
33 #define SPI_CLOCK_PHASE (0)
34 #define SPI_POLL_THRESHOLD (50)
35 #define SPI_CS_MASK (1 << (16 + wifiInit.csNum) )
36 #if (defined NANO54415 || defined MOD5441X || defined SB800EX)
37 #define PUSHR_CTCNT_BIT 0x04000000
38  // #define PUSHR_EOQ_BIT 0x08000000
39 #define SPI_ASSERT_CMD (PUSHR_CONT_BIT | SPI_CS_MASK)
40 #define SPI_DEASSERT_CMD (PUSHR_EOQ_BIT | PUSHR_CTCNT_BIT | SPI_CS_MASK)
41 #endif
42 
43 
44 /*
45  ---------------------------------
46  --------- Dev/Dbg Pins ----------
47  ---------------------------------
48 */
49 #if (defined NANO54415)
50 #define DBG_GPIO (27)
51 #define DBG_GPIO2 (16)
52 #elif (defined MOD5441X)
53 #define DBG_GPIO (24)
54 #define DBG_GPIO2 (16)
55 #else
56 #define DBG_GPIO (24)
57 #define DBG_GPIO2 (16)
58 #endif
59 
60 #define NM_DEBUG CONF_WIFI_DEBUG
61 #define NM_BSP_PRINTF CONF_WIFI_PRINTF
62 
63 
64 #endif /* CONFIGNBWIFI_H_ */
NetBurner Wifi API.