libnds
Loading...
Searching...
No Matches
Macros | Functions
gpio.h File Reference

DSi GPIO ARM7 definitions and helpers. More...

#include <nds/ndstypes.h>

Macros

#define GPIO_WIFI_MODE_NTR   BIT(8)
 NTR/NDS WiFi mode.
 
#define GPIO_WIFI_MODE_TWL   (0)
 TWL/DSi WiFi mode.
 

Functions

void gpioSetWifiMode (u16 mode)
 Set the GPIO Wi-Fi chipset mode.
 

Detailed Description

DSi GPIO ARM7 definitions and helpers.

Note that these are accessible in both DS and DSi mode.

Function Documentation

◆ gpioSetWifiMode()

void gpioSetWifiMode ( u16  mode)

Set the GPIO Wi-Fi chipset mode.

Using the NDS Wi-Fi chip requires GPIO_WIFI_MODE_NTR on DSi consoles. On DSi, DWM-W024 boards require GPIO_WIFI_MODE_TWL to correctly operate.

Parameters
modeRequested mode.
See also
GPIO_WIFI_MODE_TWL or
GPIO_WIFI_MODE_NTR