Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
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.

Anchor
1106779
1106779
Files

...

HTML Table
summary
classCode_Listing
Table Row (tr)
Table Cell (td)
rowspan2

Anchor
1106794
1106794
static void NetDev_CfgClk WiFi_Start (NET_IF *pifp_if,

Anchor
113599111515421135991
1151542
NET_ERR *perrp_err);

Table Row (tr)

Anchor
1106737
1106737
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’.

Anchor
1106857
1106857
Arguments

Anchor
1106879
1106879
pif p_if

Anchor
1132276
1132276
Pointer to specific interface to configure start device’s clockshardware.

Anchor
1106880
1106880
perr p_err

Anchor
1132278
1132278
Pointer to variable that will receive the return error code from this function:

Anchor
1106881
1106881
NET_DEV_ERR_NONE

Anchor
113599211515431135992
1151543
NET_DEV_ERR_FAULT

Anchor
114935711519081149357
1151908
 

Anchor
1108113
1108113
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.

...

Anchor
1106904
1106904
Notes / Warnings

Anchor
11069051106905
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
110690611069061142419
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. Anchor11069141106914 See also Chapter 6, “Network Board Support Package” on page 121.