Include Page |
---|
| css.uC-TCP-IP Wireless Device Driver APIs.css |
---|
| css.uC-TCP-IP Wireless Device Driver APIs.css |
---|
|
Include Page |
---|
| css.webworks.css |
---|
| css.webworks.css |
---|
|
Anchor |
---|
| 110719511417591107195 |
---|
| 1141759 |
---|
|
Device Driver BSP Functions
Anchor |
---|
| 109946711417631099467 |
---|
| 1141763 |
---|
|
NetDev
_WiFi_
CfgClkStart()
Anchor |
---|
| 110669611416801106696 |
---|
| 1141680 |
---|
|
This function is called by a device driver’s NetDev_
InitStart() to
configure a specific network device’s clocks on a specific interfacestart and power up the wireless hardware.
Files
...
HTML Table |
---|
|
Table Row (tr) |
---|
Table Cell (td) |
---|
| static void NetDev_CfgClk WiFi_Start (NET_IF *pifp_if, Anchor |
---|
| 113599111515421135991 |
---|
| 1151542 |
---|
| NET_ERR *perrp_err); |
|
|
Note: since NetDev_
CfgClkWiFi_Start() 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’.
Arguments
pif p_if Pointer to specific interface to
configure start device’s
clockshardware.
perr p_err Pointer to variable that will receive the return error code from this function:
NET_DEV_ERR_NONE
Anchor |
---|
| 113599211515431135992 |
---|
| 1151543 |
---|
|
NET_DEV_ERR_FAULT
Anchor |
---|
| 114935711519081149357 |
---|
| 1151908 |
---|
|
This is not an exclusive list of return errors and specific network device’s or device BSP functions may return any other specific errors as required.
...
Notes / Warnings
Each network device’s NetDev_CfgClk() should configure and enable all required clocks for the network device. For example, on some devices it may be necessary to enable clock gating for an embedded Ethernet MAC as well as various GPIO modules in order to configure Ethernet Phy pins for (R)MII mode and interrupts. |
Anchor |
---|
1106906 | 11069061142419 | | 1142419 |
---|
|
Since each network device requires a unique NetDev
_WiFi_
CfgClkStart(), it is recommended that each device’s NetDev
_WiFi_
CfgClkStart() function be named using the following convention:
Anchor |
---|
| 110690711424201106907 |
---|
| 1142420 |
---|
|
NetDev_
WiFi_[Device]
CfgClk_Start[Number]()
Anchor |
---|
| 113599311515441135993 |
---|
| 1151544 |
---|
|
Anchor |
---|
| 110690811424211106908 |
---|
| 1142421 |
---|
|
[Device]
Anchor |
---|
| 113230611424221132306 |
---|
| 1142422 |
---|
|
Network device name or type, e.g.
MACB RS9110 (optional if the development board does not support multiple devices)
Anchor |
---|
| 110690911424231106909 |
---|
| 1142423 |
---|
|
[Number]
Anchor |
---|
| 113230811424241132308 |
---|
| 1142424 |
---|
|
Network device number for each specific instance of device (optional if the development board does not support multiple instances of the specific device)
Anchor |
---|
| 110691011069051106910 |
---|
| 1106905 |
---|
|
For example, the NetDev
_WiFi_
CfgClkStart() function for the #2
MACB Ethernet controller on an Atmel AT91SAM9263-EK RS9110 wireless devie should be named NetDev_
MACBWiFi_RS9110_
CfgClk2Start2(), or NetDev
_WiFI_
MACBRS9110_
CfgClkStart_2() with additional underscore optional
. Anchor |
---|
1106914 | 1106914 | See also Chapter 6, “Network Board Support Package” on page 121.