diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-20 16:31:41 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-20 16:31:41 +0000 |
commit | 9a85541b388cf04ebaa897ca9281ef270653c982 (patch) | |
tree | c0e80e2164d991563f10f897c4b3ba927a25a670 /c/src/lib/libbsp/arm/nds/dswifi | |
parent | 2008-08-20 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-9a85541b388cf04ebaa897ca9281ef270653c982.tar.bz2 |
2008-08-20 Joel Sherrill <joel.sherrill@OARcorp.com>
* block/block.c, console/console.c, dswifi/arm9/source/sgIP.h,
dswifi/arm9/source/sgIP_ARP.h, dswifi/arm9/source/sgIP_Config.h,
dswifi/arm9/source/sgIP_DHCP.h, dswifi/arm9/source/sgIP_DNS.h,
dswifi/arm9/source/sgIP_Hub.h, dswifi/arm9/source/sgIP_ICMP.h,
dswifi/arm9/source/sgIP_IP.h, dswifi/arm9/source/sgIP_TCP.h,
dswifi/arm9/source/sgIP_UDP.h, dswifi/arm9/source/sgIP_memblock.h,
dswifi/arm9/source/wifi_arm9.c, dswifi/arm9/source/wifi_arm9.h,
dswifi/include/dswifi7.h, dswifi/include/dswifi9.h, fb/fb.c,
include/my_ipc.h, libfat/source/disc_io/disc_io.h,
libfat/source/disc_io/io_nmmc.c,
libnds/include/nds/arm9/exceptions.h,
libnds/include/nds/arm9/input.h, libnds/include/nds/arm9/ndsmotion.h,
libnds/include/nds/arm9/videoGL.h, libnds/source/arm9/console.c,
libnds/source/arm9/gurumeditation.c, libnds/source/arm9/ndsmotion.c,
libnds/source/common/card.c, libnds/source/common/interrupts.c,
sound/sound.c, startup/start.c, touchscreen/reco.h, wifi/compat.c,
wifi/compat.h: Fix most warnings.
Diffstat (limited to 'c/src/lib/libbsp/arm/nds/dswifi')
15 files changed, 56 insertions, 56 deletions
diff --git a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP.h b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP.h index 911e9ff482..e9b1a29672 100644 --- a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP.h +++ b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP.h @@ -44,7 +44,7 @@ extern unsigned long volatile sgIP_timems; extern "C" { #endif - void sgIP_Init(); + void sgIP_Init(void); void sgIP_Timer(int num_ms); diff --git a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_ARP.h b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_ARP.h index 0c56747527..9c9e9ffd55 100644 --- a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_ARP.h +++ b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_ARP.h @@ -58,8 +58,8 @@ typedef struct SGIP_HEADER_ARP { extern "C" { #endif - extern void sgIP_ARP_Init(); - extern void sgIP_ARP_Timer100ms(); + extern void sgIP_ARP_Init(void); + extern void sgIP_ARP_Timer100ms(void); extern void sgIP_ARP_FlushInterface(sgIP_Hub_HWInterface * hw); extern int sgIP_ARP_ProcessIPFrame(sgIP_Hub_HWInterface * hw, sgIP_memblock * mb); diff --git a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_Config.h b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_Config.h index 5be7166890..cfcdcf7050 100644 --- a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_Config.h +++ b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_Config.h @@ -228,9 +228,9 @@ extern int sgIP_errno; #ifdef __cplusplus extern "C" { #endif - extern int sgIP_DisableInterrupts(); + extern int sgIP_DisableInterrupts(void); extern void sgIP_RestoreInterrupts(int); - extern void sgIP_IntrWaitEvent(); + extern void sgIP_IntrWaitEvent(void); #ifdef __cplusplus }; #endif diff --git a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_DHCP.h b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_DHCP.h index 1f5f5f0b8b..505b700b23 100644 --- a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_DHCP.h +++ b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_DHCP.h @@ -69,14 +69,14 @@ enum SGIP_DHCP_STATUS { extern "C" { #endif - void sgIP_DHCP_Init(); + void sgIP_DHCP_Init(void); void sgIP_DHCP_SetHostName(char * s); // just for the fun of it. int sgIP_DHCP_IsDhcpIp(unsigned long ip); // check if the IP address was assigned via dhcp. void sgIP_DHCP_Start(sgIP_Hub_HWInterface * interface, int getDNS); // begin dhcp transaction to get IP and maybe DNS data. - void sgIP_DHCP_Release(); // call to dump our DHCP address and leave. - int sgIP_DHCP_Update(); // MUST be called periodicly after _Start; returns status - call until it returns something other than SGIP_DHCP_STATUS_WORKING - void sgIP_DHCP_Terminate(); // kill the process where it stands; deallocate all DHCP resources. + void sgIP_DHCP_Release(void); // call to dump our DHCP address and leave. + int sgIP_DHCP_Update(void); // MUST be called periodicly after _Start; returns status - call until it returns something other than SGIP_DHCP_STATUS_WORKING + void sgIP_DHCP_Terminate(void); // kill the process where it stands; deallocate all DHCP resources. #ifdef __cplusplus }; diff --git a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_DNS.h b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_DNS.h index 2922579a7f..3ccfed11ed 100644 --- a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_DNS.h +++ b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_DNS.h @@ -54,11 +54,11 @@ typedef struct SGIP_DNS_HOSTENT { extern "C" { #endif -extern void sgIP_DNS_Init(); -extern void sgIP_DNS_Timer1000ms(); +extern void sgIP_DNS_Init(void); +extern void sgIP_DNS_Timer1000ms(void); extern sgIP_DNS_Hostent * sgIP_DNS_gethostbyname(const char * name); -extern sgIP_DNS_Record * sgIP_DNS_GetUnusedRecord(); +extern sgIP_DNS_Record * sgIP_DNS_GetUnusedRecord(void); extern sgIP_DNS_Record * sgIP_DNS_FindDNSRecord(const char * name); #ifdef __cplusplus diff --git a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_Hub.h b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_Hub.h index edfa4472db..fd1305524f 100644 --- a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_Hub.h +++ b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_Hub.h @@ -81,7 +81,7 @@ extern "C" { #endif -extern void sgIP_Hub_Init(); +extern void sgIP_Hub_Init(void); extern sgIP_Hub_Protocol * sgIP_Hub_AddProtocolInterface(int protocolID, int (*ReceivePacket)(sgIP_memblock *), int (*InterfaceInit)(sgIP_Hub_Protocol *)); @@ -96,7 +96,7 @@ extern int sgIP_Hub_SendRawPacket(sgIP_Hub_HWInterface * hw, sgIP_memblock * pac extern int sgIP_Hub_IPMaxMessageSize(unsigned long ipaddr); unsigned long sgIP_Hub_GetCompatibleIP(unsigned long destIP); -extern sgIP_Hub_HWInterface * sgIP_Hub_GetDefaultInterface(); +extern sgIP_Hub_HWInterface * sgIP_Hub_GetDefaultInterface(void); unsigned short htons(unsigned short num); unsigned long htonl(unsigned long num); diff --git a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_ICMP.h b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_ICMP.h index 815b35ce5f..e934609510 100644 --- a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_ICMP.h +++ b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_ICMP.h @@ -38,7 +38,7 @@ typedef struct SGIP_HEADER_ICMP { extern "C" { #endif - extern void sgIP_ICMP_Init(); + extern void sgIP_ICMP_Init(void); extern int sgIP_ICMP_ReceivePacket(sgIP_memblock * mb, unsigned long srcip, unsigned long destip); diff --git a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_IP.h b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_IP.h index 4935acd846..4d579569cf 100644 --- a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_IP.h +++ b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_IP.h @@ -52,7 +52,7 @@ extern "C" { extern int sgIP_IP_ReceivePacket(sgIP_memblock * mb); extern int sgIP_IP_MaxContentsSize(unsigned long destip); - extern int sgIP_IP_RequiredHeaderSize(); + extern int sgIP_IP_RequiredHeaderSize(void); extern int sgIP_IP_SendViaIP(sgIP_memblock * mb, int protocol, unsigned long srcip, unsigned long destip); extern unsigned long sgIP_IP_GetLocalBindAddr(unsigned long srcip, unsigned long destip); diff --git a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_TCP.h b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_TCP.h index 2c84551e2b..3c5f8ac8ff 100644 --- a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_TCP.h +++ b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_TCP.h @@ -109,14 +109,14 @@ typedef struct SGIP_TCP_SYNCOOKIE { extern "C" { #endif - extern void sgIP_TCP_Init(); - extern void sgIP_TCP_Timer(); + extern void sgIP_TCP_Init(void); + extern void sgIP_TCP_Timer(void); extern int sgIP_TCP_ReceivePacket(sgIP_memblock * mb, unsigned long srcip, unsigned long destip); extern int sgIP_TCP_SendPacket(sgIP_Record_TCP * rec, int flags, int datalength); // data sent is taken directly from the TX fifo. extern int sgIP_TCP_SendSynReply(int flags,unsigned long seq, unsigned long ack, unsigned long srcip, unsigned long destip, int srcport, int destport, int windowlen); - extern sgIP_Record_TCP * sgIP_TCP_AllocRecord(); + extern sgIP_Record_TCP * sgIP_TCP_AllocRecord(void); extern void sgIP_TCP_FreeRecord(sgIP_Record_TCP * rec); extern int sgIP_TCP_Bind(sgIP_Record_TCP * rec, int srcport, unsigned long srcip); extern int sgIP_TCP_Listen(sgIP_Record_TCP * rec, int maxlisten); diff --git a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_UDP.h b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_UDP.h index 496cd0ada7..ea90adbca2 100644 --- a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_UDP.h +++ b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_UDP.h @@ -60,13 +60,13 @@ typedef struct SGIP_RECORD_UDP { extern "C" { #endif - void sgIP_UDP_Init(); + void sgIP_UDP_Init(void); int sgIP_UDP_CalcChecksum(sgIP_memblock * mb, unsigned long srcip, unsigned long destip, int totallength); int sgIP_UDP_ReceivePacket(sgIP_memblock * mb, unsigned long srcip, unsigned long destip); int sgIP_UDP_SendPacket(sgIP_Record_UDP * rec, const char * data, int datalen, unsigned long destip, int destport); - sgIP_Record_UDP * sgIP_UDP_AllocRecord(); + sgIP_Record_UDP * sgIP_UDP_AllocRecord(void); void sgIP_UDP_FreeRecord(sgIP_Record_UDP * rec); int sgIP_UDP_Bind(sgIP_Record_UDP * rec, int srcport, unsigned long srcip); diff --git a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_memblock.h b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_memblock.h index 3b262932a8..dfbf1bcbb5 100644 --- a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_memblock.h +++ b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_memblock.h @@ -46,7 +46,7 @@ typedef struct SGIP_MEMBLOCK { extern "C" { #endif - extern void sgIP_memblock_Init(); + extern void sgIP_memblock_Init(void); extern sgIP_memblock * sgIP_memblock_alloc(int packetsize); extern sgIP_memblock * sgIP_memblock_allocHW(int headersize, int packetsize); extern void sgIP_memblock_free(sgIP_memblock * mb); diff --git a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/wifi_arm9.c b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/wifi_arm9.c index 4fc5de963e..5ec5a4a6af 100644 --- a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/wifi_arm9.c +++ b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/wifi_arm9.c @@ -280,7 +280,7 @@ int Wifi_CmpMacAddr(volatile void * mac1,volatile void * mac2) { -u32 Wifi_TxBufferWordsAvailable() { +u32 Wifi_TxBufferWordsAvailable(void) { s32 size=WifiData->txbufIn-WifiData->txbufOut-1; if(size<0) size += WIFI_TXBUFFER_SIZE/2; return size; @@ -482,7 +482,7 @@ int Wifi_ConnectAP(Wifi_AccessPoint * apdata, int wepmode, int wepkeyid, u8 * we } return 0; } -void Wifi_AutoConnect() { +void Wifi_AutoConnect(void) { if(!(WifiData->wfc_enable[0]&0x80)) { wifi_connect_state=ASSOCSTATUS_CANNOTCONNECT; } else { @@ -492,7 +492,7 @@ void Wifi_AutoConnect() { } static -void sgIP_DNS_Record_Localhost() +void sgIP_DNS_Record_Localhost(void) { sgIP_DNS_Record *rec; const unsigned char * resdata_c = (unsigned char *)&(wifi_hw->ipaddr); @@ -955,7 +955,7 @@ void Wifi_SetIP(u32 IPaddr, u32 gateway, u32 subnetmask, u32 dns1, u32 dns2) { } } -void Wifi_SetDHCP() { +void Wifi_SetDHCP(void) { } @@ -989,7 +989,7 @@ u32 Wifi_GetStats(int statnum) { ////////////////////////////////////////////////////////////////////////// // sync functions -void Wifi_Sync() { +void Wifi_Sync(void) { Wifi_Update(); } diff --git a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/wifi_arm9.h b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/wifi_arm9.h index d975a01813..e8f351d07c 100644 --- a/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/wifi_arm9.h +++ b/c/src/lib/libbsp/arm/nds/dswifi/arm9/source/wifi_arm9.h @@ -69,7 +69,7 @@ typedef void (*WifiPacketHandler)(int, int); // Wifi Sync Handler function: Callback function that is called when the arm7 needs to be told to synchronize with new fifo data. // If this callback is used (see Wifi_SetSyncHandler()), it should send a message via the fifo to the arm7, which will call Wifi_Sync() on arm7. -typedef void (*WifiSyncHandler)(); +typedef void (*WifiSyncHandler)(void); #ifdef __cplusplus @@ -80,37 +80,37 @@ extern void Wifi_CopyMacAddr(volatile void * dest, volatile void * src); extern int Wifi_CmpMacAddr(volatile void * mac1, volatile void * mac2); extern unsigned long Wifi_Init(int initflags); -extern int Wifi_CheckInit(); +extern int Wifi_CheckInit(void); extern int Wifi_RawTxFrame(u16 datalen, u16 rate, u16 * data); extern void Wifi_SetSyncHandler(WifiSyncHandler wshfunc); extern void Wifi_RawSetPacketHandler(WifiPacketHandler wphfunc); extern int Wifi_RxRawReadPacket(s32 packetID, s32 readlength, u16 * data); -extern void Wifi_DisableWifi(); -extern void Wifi_EnableWifi(); +extern void Wifi_DisableWifi(void); +extern void Wifi_EnableWifi(void); extern void Wifi_SetPromiscuousMode(int enable); -extern void Wifi_ScanMode(); +extern void Wifi_ScanMode(void); extern void Wifi_SetChannel(int channel); -extern int Wifi_GetNumAP(); +extern int Wifi_GetNumAP(void); extern int Wifi_GetAPData(int apnum, Wifi_AccessPoint * apdata); extern int Wifi_FindMatchingAP(int numaps, Wifi_AccessPoint * apdata, Wifi_AccessPoint * match_dest); extern int Wifi_ConnectAP(Wifi_AccessPoint * apdata, int wepmode, int wepkeyid, u8 * wepkey); -extern void Wifi_AutoConnect(); +extern void Wifi_AutoConnect(void); -extern int Wifi_AssocStatus(); -extern int Wifi_DisconnectAP(); +extern int Wifi_AssocStatus(void); +extern int Wifi_DisconnectAP(void); extern int Wifi_GetData(int datatype, int bufferlen, unsigned char * buffer); -extern void Wifi_Update(); -extern void Wifi_Sync(); +extern void Wifi_Update(void); +extern void Wifi_Sync(void); #ifdef WIFI_USE_TCP_SGIP extern void Wifi_Timer(int num_ms); extern void Wifi_SetIP(u32 IPaddr, u32 gateway, u32 subnetmask, u32 dns1, u32 dns2); -extern u32 Wifi_GetIP(); +extern u32 Wifi_GetIP(void); #endif diff --git a/c/src/lib/libbsp/arm/nds/dswifi/include/dswifi7.h b/c/src/lib/libbsp/arm/nds/dswifi/include/dswifi7.h index 2f784ccf48..0c9e711495 100644 --- a/c/src/lib/libbsp/arm/nds/dswifi/include/dswifi7.h +++ b/c/src/lib/libbsp/arm/nds/dswifi/include/dswifi7.h @@ -30,7 +30,7 @@ SOFTWARE. // Wifi Sync Handler function: Callback function that is called when the arm9 needs to be told to synchronize with new fifo data. // If this callback is used (see Wifi_SetSyncHandler()), it should send a message via the fifo to the arm9, which will call Wifi_Sync() on arm9. -typedef void (*WifiSyncHandler)(); +typedef void (*WifiSyncHandler)(void); #ifdef __cplusplus @@ -51,11 +51,11 @@ extern int PowerChip_ReadWrite(int cmd, int data); // Wifi_Interrupt: Handler for the arm7 wifi interrupt. Should be called by the // interrupt handler on arm7, and should *not* have multiple interrupts enabled. -extern void Wifi_Interrupt(); +extern void Wifi_Interrupt(void); // Wifi_Update: Sync function to ensure data continues to flow between the two // CPUs smoothly. Should be called at a periodic interval, such as in vblank. -extern void Wifi_Update(); +extern void Wifi_Update(void); // Wifi_Init: Requires the data returned by the arm9 wifi init call. The arm9 // init call's returned data must be passed to the arm7 and then given to this @@ -69,11 +69,11 @@ extern void Wifi_Init(unsigned long WifiData); // Wifi_Deinit: In the case that it is necessary, this function cuts power to // the wifi system. After this the wifi will be unusable until Wifi_Init is // called again. -extern void Wifi_Deinit(); +extern void Wifi_Deinit(void); // Wifi_Sync: Call this function when requested to sync by the arm9 side of the // wifi lib -extern void Wifi_Sync(); +extern void Wifi_Sync(void); // Wifi_SetSyncHandler: Call this function to request notification of when the // ARM9-side Wifi_Sync function should be called. diff --git a/c/src/lib/libbsp/arm/nds/dswifi/include/dswifi9.h b/c/src/lib/libbsp/arm/nds/dswifi/include/dswifi9.h index 532169d39d..4b019d3783 100644 --- a/c/src/lib/libbsp/arm/nds/dswifi/include/dswifi9.h +++ b/c/src/lib/libbsp/arm/nds/dswifi/include/dswifi9.h @@ -175,7 +175,7 @@ typedef void (*WifiPacketHandler)(int, int); // Wifi Sync Handler function: Callback function that is called when the arm7 needs to be told to synchronize with new fifo data. // If this callback is used (see Wifi_SetSyncHandler()), it should send a message via the fifo to the arm7, which will call Wifi_Sync() on arm7. -typedef void (*WifiSyncHandler)(); +typedef void (*WifiSyncHandler)(void); #ifdef __cplusplus @@ -192,15 +192,15 @@ extern unsigned long Wifi_Init(int initflags); // Wifi_CheckInit: Verifies when the ARM7 has been successfully initialized // Returns: 1 if the arm7 is ready for wifi, 0 otherwise -extern int Wifi_CheckInit(); +extern int Wifi_CheckInit(void); // Wifi_DisableWifi: Instructs the ARM7 to disengage wireless and stop receiving or // transmitting. -extern void Wifi_DisableWifi(); +extern void Wifi_DisableWifi(void); // Wifi_EnableWifi: Instructs the ARM7 to go into a basic "active" mode, not actually // associated to an AP, but actively receiving and potentially transmitting -extern void Wifi_EnableWifi(); +extern void Wifi_EnableWifi(void); // Wifi_SetPromiscuousMode: Allows the DS to enter or leave a "promsicuous" mode, in which // all data that can be received is forwarded to the arm9 for user processing. @@ -211,7 +211,7 @@ extern void Wifi_SetPromiscuousMode(int enable); // Wifi_ScanMode: Instructs the ARM7 to periodically rotate through the channels to // pick up and record information from beacons given off by APs -extern void Wifi_ScanMode(); +extern void Wifi_ScanMode(void); // Wifi_SetChannel: If the wifi system is not connected or connecting to an access point, instruct // the chipset to change channel @@ -220,7 +220,7 @@ extern void Wifi_SetChannel(int channel); // Wifi_GetNumAP: // Returns: the current number of APs that are known about and tracked internally -extern int Wifi_GetNumAP(); +extern int Wifi_GetNumAP(void); // Wifi_GetAPData: Grabs data from internal structures for user code (always succeeds) // int apnum: the 0-based index of the access point record to fetch @@ -245,15 +245,15 @@ extern int Wifi_FindMatchingAP(int numaps, Wifi_AccessPoint * apdata, Wifi_Acces extern int Wifi_ConnectAP(Wifi_AccessPoint * apdata, int wepmode, int wepkeyid, unsigned char * wepkey); // Wifi_AutoConnect: Connect to an access point specified by the WFC data in the firmware -extern void Wifi_AutoConnect(); +extern void Wifi_AutoConnect(void); // Wifi_AssocStatus: Returns information about the status of connection to an AP // Returns: a value from the WIFI_ASSOCSTATUS enum, continue polling until you // receive ASSOCSTATUS_CONNECTED or ASSOCSTATUS_CANNOTCONNECT -extern int Wifi_AssocStatus(); +extern int Wifi_AssocStatus(void); // Wifi_DisconnectAP: Disassociate from the Access Point -extern int Wifi_DisconnectAP(); +extern int Wifi_DisconnectAP(void); // Wifi_Timer: This function should be called in a periodic interrupt. It serves as the basis // for all updating in the sgIP library, all retransmits, timeouts, and etc are based on this @@ -263,7 +263,7 @@ extern void Wifi_Timer(int num_ms); // Wifi_GetIP: // Returns: The current IP address of the DS (may not be valid before connecting to an AP, or setting the IP manually.) -extern unsigned long Wifi_GetIP(); // get local ip +extern unsigned long Wifi_GetIP(void); // get local ip // Wifi_GetIPInfo: (values may not be valid before connecting to an AP, or setting the IP manually.) // unsigned long * pGateway: pointer to receive the currently configured gateway IP @@ -317,11 +317,11 @@ extern int Wifi_RxRawReadPacket(long packetID, long readlength, unsigned short * // Wifi_Update: Checks for new data from the arm7 and initiates routing if data // is available. -extern void Wifi_Update(); +extern void Wifi_Update(void); // Wifi_Sync: Call this function when requested to sync by the arm7 side of the // wifi lib -extern void Wifi_Sync(); +extern void Wifi_Sync(void); // Wifi_SetSyncHandler: Call this function to request notification of when the // ARM7-side Wifi_Sync function should be called. |