8.10.2 GPIOs
To configure the GPIOs that are connected to the antenna switch, sysfs entry
/sys/wilc/antenna1
and /sys/wilc/antenna2
can be used as
follows.# echo GPIO_NUM > /sys/wilc/antenna1 ( for single antenna switch)
# echo GPIO_NUM > /sys/wilc/antenna2 ( for dual antenna switch)
where, GPIO_NUM is any valid GPIO for antenna diversity.
Valid GPIOs for the ATWILC1000 are 0, 1, 4 and 6.
Valid GPIOs for the ATWILC3000 are 3, 4, 17, 18, 19 and 20.