Changeset 9a85541 in rtems


Ignore:
Timestamp:
Aug 20, 2008, 4:31:41 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
bbbb8f0
Parents:
19b9991
Message:

2008-08-20 Joel Sherrill <joel.sherrill@…>

  • 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.
Location:
c/src/lib/libbsp/arm/nds
Files:
36 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/nds/ChangeLog

    r19b9991 r9a85541  
     12008-08-20      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * block/block.c, console/console.c, dswifi/arm9/source/sgIP.h,
     4        dswifi/arm9/source/sgIP_ARP.h, dswifi/arm9/source/sgIP_Config.h,
     5        dswifi/arm9/source/sgIP_DHCP.h, dswifi/arm9/source/sgIP_DNS.h,
     6        dswifi/arm9/source/sgIP_Hub.h, dswifi/arm9/source/sgIP_ICMP.h,
     7        dswifi/arm9/source/sgIP_IP.h, dswifi/arm9/source/sgIP_TCP.h,
     8        dswifi/arm9/source/sgIP_UDP.h, dswifi/arm9/source/sgIP_memblock.h,
     9        dswifi/arm9/source/wifi_arm9.c, dswifi/arm9/source/wifi_arm9.h,
     10        dswifi/include/dswifi7.h, dswifi/include/dswifi9.h, fb/fb.c,
     11        include/my_ipc.h, libfat/source/disc_io/disc_io.h,
     12        libfat/source/disc_io/io_nmmc.c,
     13        libnds/include/nds/arm9/exceptions.h,
     14        libnds/include/nds/arm9/input.h, libnds/include/nds/arm9/ndsmotion.h,
     15        libnds/include/nds/arm9/videoGL.h, libnds/source/arm9/console.c,
     16        libnds/source/arm9/gurumeditation.c, libnds/source/arm9/ndsmotion.c,
     17        libnds/source/common/card.c, libnds/source/common/interrupts.c,
     18        sound/sound.c, startup/start.c, touchscreen/reco.h, wifi/compat.c,
     19        wifi/compat.h: Fix most warnings.
     20
    1212008-08-19      Joel Sherrill <joel.sherrill@OARcorp.com>
    222
  • c/src/lib/libbsp/arm/nds/block/block.c

    r19b9991 r9a85541  
    7878{
    7979  printk ("nds_flash_control\n");
     80  return 0;
    8081}
    8182
  • c/src/lib/libbsp/arm/nds/console/console.c

    r19b9991 r9a85541  
    3333 */
    3434
     35/* from NDS support library */
     36extern void consolePrintChar(char c);
    3537void
    3638nds_putch (char c)
  • c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP.h

    r19b9991 r9a85541  
    4545#endif
    4646
    47    void sgIP_Init();
     47   void sgIP_Init(void);
    4848   void sgIP_Timer(int num_ms);
    4949
  • c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_ARP.h

    r19b9991 r9a85541  
    5959#endif
    6060
    61         extern void     sgIP_ARP_Init();
    62         extern void sgIP_ARP_Timer100ms();
     61        extern void     sgIP_ARP_Init(void);
     62        extern void sgIP_ARP_Timer100ms(void);
    6363        extern void sgIP_ARP_FlushInterface(sgIP_Hub_HWInterface * hw);
    6464
  • c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_Config.h

    r19b9991 r9a85541  
    229229extern "C" {
    230230#endif
    231         extern int sgIP_DisableInterrupts();
     231        extern int sgIP_DisableInterrupts(void);
    232232        extern void sgIP_RestoreInterrupts(int);
    233    extern void sgIP_IntrWaitEvent();
     233   extern void sgIP_IntrWaitEvent(void);
    234234#ifdef __cplusplus
    235235};
  • c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_DHCP.h

    r19b9991 r9a85541  
    7070#endif
    7171
    72    void sgIP_DHCP_Init();
     72   void sgIP_DHCP_Init(void);
    7373
    7474   void sgIP_DHCP_SetHostName(char * s); // just for the fun of it.
    7575   int sgIP_DHCP_IsDhcpIp(unsigned long ip); // check if the IP address was assigned via dhcp.
    7676   void sgIP_DHCP_Start(sgIP_Hub_HWInterface * interface, int getDNS); // begin dhcp transaction to get IP and maybe DNS data.
    77    void sgIP_DHCP_Release(); // call to dump our DHCP address and leave.
    78    int  sgIP_DHCP_Update(); // MUST be called periodicly after _Start; returns status - call until it returns something other than SGIP_DHCP_STATUS_WORKING
    79    void sgIP_DHCP_Terminate(); // kill the process where it stands; deallocate all DHCP resources.
     77   void sgIP_DHCP_Release(void); // call to dump our DHCP address and leave.
     78   int  sgIP_DHCP_Update(void); // MUST be called periodicly after _Start; returns status - call until it returns something other than SGIP_DHCP_STATUS_WORKING
     79   void sgIP_DHCP_Terminate(void); // kill the process where it stands; deallocate all DHCP resources.
    8080
    8181#ifdef __cplusplus
  • c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_DNS.h

    r19b9991 r9a85541  
    5555#endif
    5656
    57 extern void sgIP_DNS_Init();
    58 extern void sgIP_DNS_Timer1000ms();
     57extern void sgIP_DNS_Init(void);
     58extern void sgIP_DNS_Timer1000ms(void);
    5959
    6060extern sgIP_DNS_Hostent * sgIP_DNS_gethostbyname(const char * name);
    61 extern sgIP_DNS_Record  * sgIP_DNS_GetUnusedRecord();
     61extern sgIP_DNS_Record  * sgIP_DNS_GetUnusedRecord(void);
    6262extern sgIP_DNS_Record  * sgIP_DNS_FindDNSRecord(const char * name);
    6363
  • c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_Hub.h

    r19b9991 r9a85541  
    8282
    8383
    84 extern void sgIP_Hub_Init();
     84extern void sgIP_Hub_Init(void);
    8585
    8686
     
    9797unsigned long sgIP_Hub_GetCompatibleIP(unsigned long destIP);
    9898
    99 extern sgIP_Hub_HWInterface * sgIP_Hub_GetDefaultInterface();
     99extern sgIP_Hub_HWInterface * sgIP_Hub_GetDefaultInterface(void);
    100100
    101101unsigned short htons(unsigned short num);
  • c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_ICMP.h

    r19b9991 r9a85541  
    3939#endif
    4040
    41    extern void sgIP_ICMP_Init();
     41   extern void sgIP_ICMP_Init(void);
    4242
    4343   extern int sgIP_ICMP_ReceivePacket(sgIP_memblock * mb, unsigned long srcip, unsigned long destip);
  • c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_IP.h

    r19b9991 r9a85541  
    5353        extern int sgIP_IP_ReceivePacket(sgIP_memblock * mb);
    5454        extern int sgIP_IP_MaxContentsSize(unsigned long destip);
    55         extern int sgIP_IP_RequiredHeaderSize();
     55        extern int sgIP_IP_RequiredHeaderSize(void);
    5656        extern int sgIP_IP_SendViaIP(sgIP_memblock * mb, int protocol, unsigned long srcip, unsigned long destip);
    5757        extern unsigned long sgIP_IP_GetLocalBindAddr(unsigned long srcip, unsigned long destip);
  • c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_TCP.h

    r19b9991 r9a85541  
    110110#endif
    111111
    112         extern void sgIP_TCP_Init();
    113    extern void sgIP_TCP_Timer();
     112        extern void sgIP_TCP_Init(void);
     113   extern void sgIP_TCP_Timer(void);
    114114
    115115        extern int sgIP_TCP_ReceivePacket(sgIP_memblock * mb, unsigned long srcip, unsigned long destip);
     
    117117   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);
    118118
    119         extern sgIP_Record_TCP * sgIP_TCP_AllocRecord();
     119        extern sgIP_Record_TCP * sgIP_TCP_AllocRecord(void);
    120120        extern void sgIP_TCP_FreeRecord(sgIP_Record_TCP * rec);
    121121        extern int sgIP_TCP_Bind(sgIP_Record_TCP * rec, int srcport, unsigned long srcip);
  • c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_UDP.h

    r19b9991 r9a85541  
    6161#endif
    6262
    63         void sgIP_UDP_Init();
     63        void sgIP_UDP_Init(void);
    6464
    6565        int sgIP_UDP_CalcChecksum(sgIP_memblock * mb, unsigned long srcip, unsigned long destip, int totallength);
     
    6767        int sgIP_UDP_SendPacket(sgIP_Record_UDP * rec, const char * data, int datalen, unsigned long destip, int destport);
    6868
    69         sgIP_Record_UDP * sgIP_UDP_AllocRecord();
     69        sgIP_Record_UDP * sgIP_UDP_AllocRecord(void);
    7070        void sgIP_UDP_FreeRecord(sgIP_Record_UDP * rec);
    7171
  • c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_memblock.h

    r19b9991 r9a85541  
    4747#endif
    4848
    49         extern void sgIP_memblock_Init();
     49        extern void sgIP_memblock_Init(void);
    5050        extern sgIP_memblock * sgIP_memblock_alloc(int packetsize);
    5151        extern sgIP_memblock * sgIP_memblock_allocHW(int headersize, int packetsize);
  • c/src/lib/libbsp/arm/nds/dswifi/arm9/source/wifi_arm9.c

    r19b9991 r9a85541  
    281281
    282282
    283 u32 Wifi_TxBufferWordsAvailable() {
     283u32 Wifi_TxBufferWordsAvailable(void) {
    284284        s32 size=WifiData->txbufIn-WifiData->txbufOut-1;
    285285        if(size<0) size += WIFI_TXBUFFER_SIZE/2;
     
    483483        return 0;
    484484}
    485 void Wifi_AutoConnect() {
     485void Wifi_AutoConnect(void) {
    486486        if(!(WifiData->wfc_enable[0]&0x80)) {
    487487                wifi_connect_state=ASSOCSTATUS_CANNOTCONNECT;
     
    493493
    494494static
    495 void sgIP_DNS_Record_Localhost()
     495void sgIP_DNS_Record_Localhost(void)
    496496{
    497497    sgIP_DNS_Record *rec;
     
    956956}
    957957
    958 void Wifi_SetDHCP() {
     958void Wifi_SetDHCP(void) {
    959959
    960960
     
    990990// sync functions
    991991
    992 void Wifi_Sync() {
     992void Wifi_Sync(void) {
    993993   Wifi_Update();
    994994}
  • c/src/lib/libbsp/arm/nds/dswifi/arm9/source/wifi_arm9.h

    r19b9991 r9a85541  
    7070// Wifi Sync Handler function: Callback function that is called when the arm7 needs to be told to synchronize with new fifo data.
    7171// 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.
    72 typedef void (*WifiSyncHandler)();
     72typedef void (*WifiSyncHandler)(void);
    7373
    7474
     
    8181
    8282extern unsigned long Wifi_Init(int initflags);
    83 extern int Wifi_CheckInit();
     83extern int Wifi_CheckInit(void);
    8484
    8585extern int Wifi_RawTxFrame(u16 datalen, u16 rate, u16 * data);
     
    8888extern int Wifi_RxRawReadPacket(s32 packetID, s32 readlength, u16 * data);
    8989
    90 extern void Wifi_DisableWifi();
    91 extern void Wifi_EnableWifi();
     90extern void Wifi_DisableWifi(void);
     91extern void Wifi_EnableWifi(void);
    9292extern void Wifi_SetPromiscuousMode(int enable);
    93 extern void Wifi_ScanMode();
     93extern void Wifi_ScanMode(void);
    9494extern void Wifi_SetChannel(int channel);
    9595
    96 extern int Wifi_GetNumAP();
     96extern int Wifi_GetNumAP(void);
    9797extern int Wifi_GetAPData(int apnum, Wifi_AccessPoint * apdata);
    9898extern int Wifi_FindMatchingAP(int numaps, Wifi_AccessPoint * apdata, Wifi_AccessPoint * match_dest);
    9999extern int Wifi_ConnectAP(Wifi_AccessPoint * apdata, int wepmode, int wepkeyid, u8 * wepkey);
    100 extern void Wifi_AutoConnect();
     100extern void Wifi_AutoConnect(void);
    101101
    102 extern int Wifi_AssocStatus();
    103 extern int Wifi_DisconnectAP();
     102extern int Wifi_AssocStatus(void);
     103extern int Wifi_DisconnectAP(void);
    104104extern int Wifi_GetData(int datatype, int bufferlen, unsigned char * buffer);
    105105
    106106
    107 extern void Wifi_Update();
    108 extern void Wifi_Sync();
     107extern void Wifi_Update(void);
     108extern void Wifi_Sync(void);
    109109
    110110#ifdef WIFI_USE_TCP_SGIP
    111111extern void Wifi_Timer(int num_ms);
    112112extern void Wifi_SetIP(u32 IPaddr, u32 gateway, u32 subnetmask, u32 dns1, u32 dns2);
    113 extern u32 Wifi_GetIP();
     113extern u32 Wifi_GetIP(void);
    114114
    115115#endif
  • c/src/lib/libbsp/arm/nds/dswifi/include/dswifi7.h

    r19b9991 r9a85541  
    3131// Wifi Sync Handler function: Callback function that is called when the arm9 needs to be told to synchronize with new fifo data.
    3232// 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.
    33 typedef void (*WifiSyncHandler)();
     33typedef void (*WifiSyncHandler)(void);
    3434
    3535
     
    5252// Wifi_Interrupt: Handler for the arm7 wifi interrupt. Should be called by the
    5353//   interrupt handler on arm7, and should *not* have multiple interrupts enabled.
    54 extern void Wifi_Interrupt();
     54extern void Wifi_Interrupt(void);
    5555
    5656// Wifi_Update: Sync function to ensure data continues to flow between the two
    5757//   CPUs smoothly.  Should be called at a periodic interval, such as in vblank.
    58 extern void Wifi_Update();
     58extern void Wifi_Update(void);
    5959
    6060// Wifi_Init: Requires the data returned by the arm9 wifi init call. The arm9
     
    7070//   the wifi system.  After this the wifi will be unusable until Wifi_Init is
    7171//   called again.
    72 extern void Wifi_Deinit();
     72extern void Wifi_Deinit(void);
    7373
    7474// Wifi_Sync: Call this function when requested to sync by the arm9 side of the
    7575//   wifi lib
    76 extern void Wifi_Sync();
     76extern void Wifi_Sync(void);
    7777
    7878// Wifi_SetSyncHandler: Call this function to request notification of when the
  • c/src/lib/libbsp/arm/nds/dswifi/include/dswifi9.h

    r19b9991 r9a85541  
    176176// Wifi Sync Handler function: Callback function that is called when the arm7 needs to be told to synchronize with new fifo data.
    177177// 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.
    178 typedef void (*WifiSyncHandler)();
     178typedef void (*WifiSyncHandler)(void);
    179179
    180180
     
    193193// Wifi_CheckInit: Verifies when the ARM7 has been successfully initialized
    194194//  Returns: 1 if the arm7 is ready for wifi, 0 otherwise
    195 extern int Wifi_CheckInit();
     195extern int Wifi_CheckInit(void);
    196196
    197197// Wifi_DisableWifi: Instructs the ARM7 to disengage wireless and stop receiving or
    198198//   transmitting.
    199 extern void Wifi_DisableWifi();
     199extern void Wifi_DisableWifi(void);
    200200
    201201// Wifi_EnableWifi: Instructs the ARM7 to go into a basic "active" mode, not actually
    202202//   associated to an AP, but actively receiving and potentially transmitting
    203 extern void Wifi_EnableWifi();
     203extern void Wifi_EnableWifi(void);
    204204
    205205// Wifi_SetPromiscuousMode: Allows the DS to enter or leave a "promsicuous" mode, in which
     
    212212// Wifi_ScanMode: Instructs the ARM7 to periodically rotate through the channels to
    213213//   pick up and record information from beacons given off by APs
    214 extern void Wifi_ScanMode();
     214extern void Wifi_ScanMode(void);
    215215
    216216// Wifi_SetChannel: If the wifi system is not connected or connecting to an access point, instruct
     
    221221// Wifi_GetNumAP:
    222222//  Returns: the current number of APs that are known about and tracked internally
    223 extern int Wifi_GetNumAP();
     223extern int Wifi_GetNumAP(void);
    224224
    225225// Wifi_GetAPData: Grabs data from internal structures for user code (always succeeds)
     
    246246
    247247// Wifi_AutoConnect: Connect to an access point specified by the WFC data in the firmware
    248 extern void Wifi_AutoConnect();
     248extern void Wifi_AutoConnect(void);
    249249
    250250// Wifi_AssocStatus: Returns information about the status of connection to an AP
    251251//  Returns: a value from the WIFI_ASSOCSTATUS enum, continue polling until you
    252252//            receive ASSOCSTATUS_CONNECTED or ASSOCSTATUS_CANNOTCONNECT
    253 extern int Wifi_AssocStatus();
     253extern int Wifi_AssocStatus(void);
    254254
    255255// Wifi_DisconnectAP: Disassociate from the Access Point
    256 extern int Wifi_DisconnectAP();
     256extern int Wifi_DisconnectAP(void);
    257257
    258258// Wifi_Timer: This function should be called in a periodic interrupt. It serves as the basis
     
    264264// Wifi_GetIP:
    265265//  Returns:  The current IP address of the DS (may not be valid before connecting to an AP, or setting the IP manually.)
    266 extern unsigned long Wifi_GetIP(); // get local ip
     266extern unsigned long Wifi_GetIP(void); // get local ip
    267267
    268268// Wifi_GetIPInfo: (values may not be valid before connecting to an AP, or setting the IP manually.)
     
    318318// Wifi_Update: Checks for new data from the arm7 and initiates routing if data
    319319//   is available.
    320 extern void Wifi_Update();
     320extern void Wifi_Update(void);
    321321
    322322// Wifi_Sync: Call this function when requested to sync by the arm7 side of the
    323323//   wifi lib
    324 extern void Wifi_Sync();
     324extern void Wifi_Sync(void);
    325325
    326326// Wifi_SetSyncHandler: Call this function to request notification of when the
  • c/src/lib/libbsp/arm/nds/fb/fb.c

    r19b9991 r9a85541  
    167167          videoSetMode (MODE_FB0);
    168168          vramSetBankA (VRAM_A_LCD);
    169           memset (fb_info.smem_start, 0, fb_info.smem_len);
     169          memset ((void *)fb_info.smem_start, 0, fb_info.smem_len);
    170170        } else {
    171171          videoSetModeSub (MODE_FB0);
    172172          vramSetBankB (VRAM_B_LCD);
    173           memset (fb_info2.smem_start, 0, fb_info2.smem_len);
     173          memset ((void *)fb_info2.smem_start, 0, fb_info2.smem_len);
    174174        }
    175175        break;
     
    179179        printk ("[#] leaving graphic mode on fb%d\n", minor);
    180180        if (!minor) {
    181           memset (fb_info.smem_start, 0, fb_info.smem_len);
     181          memset ((void *)fb_info.smem_start, 0, fb_info.smem_len);
    182182        } else {
    183           memset (fb_info2.smem_start, 0, fb_info2.smem_len);
     183          memset ((void *)fb_info2.smem_start, 0, fb_info2.smem_len);
    184184          /* back to console */
    185185          videoSetModeSub (MODE_0_2D | DISPLAY_BG0_ACTIVE);
  • c/src/lib/libbsp/arm/nds/include/my_ipc.h

    r19b9991 r9a85541  
    2626
    2727static inline my_TransferRegion volatile *
    28 getmy_IPC ()
     28getmy_IPC (void)
    2929{
    3030  return (my_TransferRegion volatile *) (0x027FF000 +
  • c/src/lib/libbsp/arm/nds/libfat/source/disc_io/disc_io.h

    r19b9991 r9a85541  
    5151
    5252#if defined _IO_USE_DMA && defined _IO_ALLOW_UNALIGNED
    53  #error You can't use both DMA and unaligned memory
     53 #error "You cannot use both DMA and unaligned memory"
    5454#endif
    5555
  • c/src/lib/libbsp/arm/nds/libfat/source/disc_io/io_nmmc.c

    r19b9991 r9a85541  
    6161}
    6262
    63 static inline void _Neo_MK2GameMode()   {
     63static inline void _Neo_MK2GameMode(void)       {
    6464        _Neo_OpenSPI(_NMMC_spi_freq);                           // Enable DS Card's SPI port
    6565        _Neo_SPI(0xF1);                         // Switch to game mode
     
    148148// Neo MMC functions
    149149
    150 static bool _Neo_InitMMC()      {
     150static bool _Neo_InitMMC(void)  {
    151151        _Neo_MK2GameMode();
    152152        _Neo_WriteMK2Config( MK2_CONFIG_ZIP_RAM_CLOSE | MK2_CONFIG_GAME_FLASH_CLOSE);
  • c/src/lib/libbsp/arm/nds/libnds/include/nds/arm9/exceptions.h

    r19b9991 r9a85541  
    2323
    2424  $Log$
     25  Revision 1.1  2008/04/16 18:37:32  joel
     26  2008-04-16    Matthieu Bucchianeri <mbucchia@gmail.com>
     27
     28        * ChangeLog, Makefile.am, README, bsp_specs, configure.ac,
     29        mk_libnds.sh, patch.libnds, preinstall.am, block/block.c,
     30        clock/clock.c, console/console.c, coproc/coproc.S, coproc/coproc.c,
     31        coproc/coproc.ld, dswifi/dswifi_license.txt, dswifi/makefile,
     32        dswifi/arm7/makefile, dswifi/arm7/source/wifi_arm7.c,
     33        dswifi/arm7/source/wifi_arm7.h, dswifi/arm9/makefile,
     34        dswifi/arm9/source/sgIP.c, dswifi/arm9/source/sgIP.h,
     35        dswifi/arm9/source/sgIP_ARP.c, dswifi/arm9/source/sgIP_ARP.h,
     36        dswifi/arm9/source/sgIP_Config.h, dswifi/arm9/source/sgIP_DHCP.c,
     37        dswifi/arm9/source/sgIP_DHCP.h, dswifi/arm9/source/sgIP_DNS.c,
     38        dswifi/arm9/source/sgIP_DNS.h, dswifi/arm9/source/sgIP_Hub.c,
     39        dswifi/arm9/source/sgIP_Hub.h, dswifi/arm9/source/sgIP_ICMP.c,
     40        dswifi/arm9/source/sgIP_ICMP.h, dswifi/arm9/source/sgIP_IP.c,
     41        dswifi/arm9/source/sgIP_IP.h, dswifi/arm9/source/sgIP_TCP.c,
     42        dswifi/arm9/source/sgIP_TCP.h, dswifi/arm9/source/sgIP_UDP.c,
     43        dswifi/arm9/source/sgIP_UDP.h, dswifi/arm9/source/sgIP_memblock.c,
     44        dswifi/arm9/source/sgIP_memblock.h,
     45        dswifi/arm9/source/sgIP_sockets.c, dswifi/arm9/source/sgIP_sockets.h,
     46        dswifi/arm9/source/wifi_arm9.c, dswifi/arm9/source/wifi_arm9.h,
     47        dswifi/common/source/dsregs.h, dswifi/common/source/spinlock.h,
     48        dswifi/common/source/spinlock.s, dswifi/common/source/wifi_shared.h,
     49        dswifi/include/dswifi7.h, dswifi/include/dswifi9.h,
     50        dswifi/include/dswifi_version.h, dswifi/include/netdb.h,
     51        dswifi/include/sgIP_errno.h, dswifi/include/netinet/in.h, fb/fb.c,
     52        fb/fb.h, include/bsp.h, include/my_ipc.h, include/tm27.h,
     53        include/types.h, include/sys/iosupport.h, irq/irq.c, irq/irq.h,
     54        libfat/gba/include/fat.h, libfat/include/fat.h,
     55        libfat/nds/include/fat.h, libfat/source/bit_ops.h,
     56        libfat/source/cache.c, libfat/source/cache.h, libfat/source/common.h,
     57        libfat/source/directory.c, libfat/source/directory.h,
     58        libfat/source/fatdir.c, libfat/source/fatdir.h,
     59        libfat/source/fatfile.c, libfat/source/fatfile.h,
     60        libfat/source/file_allocation_table.c,
     61        libfat/source/file_allocation_table.h, libfat/source/filetime.c,
     62        libfat/source/filetime.h, libfat/source/libfat.c,
     63        libfat/source/mem_allocate.h, libfat/source/partition.c,
     64        libfat/source/partition.h, libfat/source/disc_io/disc.c,
     65        libfat/source/disc_io/disc.h, libfat/source/disc_io/disc_io.h,
     66        libfat/source/disc_io/io_cf_common.c,
     67        libfat/source/disc_io/io_cf_common.h,
     68        libfat/source/disc_io/io_dldi.h, libfat/source/disc_io/io_dldi.s,
     69        libfat/source/disc_io/io_efa2.c, libfat/source/disc_io/io_efa2.h,
     70        libfat/source/disc_io/io_fcsr.c, libfat/source/disc_io/io_fcsr.h,
     71        libfat/source/disc_io/io_m3_common.c,
     72        libfat/source/disc_io/io_m3_common.h,
     73        libfat/source/disc_io/io_m3cf.c, libfat/source/disc_io/io_m3cf.h,
     74        libfat/source/disc_io/io_m3sd.c, libfat/source/disc_io/io_m3sd.h,
     75        libfat/source/disc_io/io_mpcf.c, libfat/source/disc_io/io_mpcf.h,
     76        libfat/source/disc_io/io_njsd.c, libfat/source/disc_io/io_njsd.h,
     77        libfat/source/disc_io/io_nmmc.c, libfat/source/disc_io/io_nmmc.h,
     78        libfat/source/disc_io/io_sc_common.c,
     79        libfat/source/disc_io/io_sc_common.h,
     80        libfat/source/disc_io/io_sccf.c, libfat/source/disc_io/io_sccf.h,
     81        libfat/source/disc_io/io_scsd.c, libfat/source/disc_io/io_scsd.h,
     82        libfat/source/disc_io/io_scsd_s.s,
     83        libfat/source/disc_io/io_sd_common.c,
     84        libfat/source/disc_io/io_sd_common.h, libnds/Makefile.arm7,
     85        libnds/Makefile.arm9, libnds/libnds_license.txt,
     86        libnds/basicARM7/source/defaultARM7.c,
     87        libnds/include/default_font_bin.h, libnds/include/gbfs.h,
     88        libnds/include/nds.h, libnds/include/nds/bios.h,
     89        libnds/include/nds/card.h, libnds/include/nds/dma.h,
     90        libnds/include/nds/interrupts.h, libnds/include/nds/ipc.h,
     91        libnds/include/nds/jtypes.h, libnds/include/nds/memory.h,
     92        libnds/include/nds/registers_alt.h, libnds/include/nds/reload.h,
     93        libnds/include/nds/system.h, libnds/include/nds/timers.h,
     94        libnds/include/nds/arm7/audio.h, libnds/include/nds/arm7/clock.h,
     95        libnds/include/nds/arm7/serial.h, libnds/include/nds/arm7/touch.h,
     96        libnds/include/nds/arm9/background.h,
     97        libnds/include/nds/arm9/boxtest.h, libnds/include/nds/arm9/cache.h,
     98        libnds/include/nds/arm9/console.h,
     99        libnds/include/nds/arm9/exceptions.h,
     100        libnds/include/nds/arm9/image.h, libnds/include/nds/arm9/input.h,
     101        libnds/include/nds/arm9/math.h, libnds/include/nds/arm9/ndsmotion.h,
     102        libnds/include/nds/arm9/pcx.h, libnds/include/nds/arm9/postest.h,
     103        libnds/include/nds/arm9/rumble.h, libnds/include/nds/arm9/sound.h,
     104        libnds/include/nds/arm9/sprite.h, libnds/include/nds/arm9/trig_lut.h,
     105        libnds/include/nds/arm9/video.h, libnds/include/nds/arm9/videoGL.h,
     106        libnds/source/arm7/audio.c, libnds/source/arm7/clock.c,
     107        libnds/source/arm7/microphone.c, libnds/source/arm7/spi.c,
     108        libnds/source/arm7/touch.c, libnds/source/arm7/userSettings.c,
     109        libnds/source/arm9/COS.bin, libnds/source/arm9/COS.s,
     110        libnds/source/arm9/SIN.bin, libnds/source/arm9/SIN.s,
     111        libnds/source/arm9/TAN.bin, libnds/source/arm9/TAN.s,
     112        libnds/source/arm9/boxtest.c, libnds/source/arm9/console.c,
     113        libnds/source/arm9/dcache.s, libnds/source/arm9/default_font.bin,
     114        libnds/source/arm9/default_font.s,
     115        libnds/source/arm9/exceptionHandler.S,
     116        libnds/source/arm9/exceptionHandler.s,
     117        libnds/source/arm9/exceptions.c, libnds/source/arm9/gurumeditation.c,
     118        libnds/source/arm9/icache.s, libnds/source/arm9/image.c,
     119        libnds/source/arm9/initSystem.c, libnds/source/arm9/keys.c,
     120        libnds/source/arm9/ndsmotion.c, libnds/source/arm9/pcx.c,
     121        libnds/source/arm9/rumble.c, libnds/source/arm9/sound.c,
     122        libnds/source/arm9/system.c, libnds/source/arm9/touch.c,
     123        libnds/source/arm9/video.c, libnds/source/arm9/videoGL.c,
     124        libnds/source/common/biosCalls.s, libnds/source/common/card.c,
     125        libnds/source/common/gbfs.c,
     126        libnds/source/common/interruptDispatcher.s,
     127        libnds/source/common/interrupts.c, rtc/rtc.c, sound/sound.c,
     128        sound/sound.h, start/start.S, startup/linkcmds, startup/start.c,
     129        timer/timer.c, tools/Makefile.am, tools/bin2s, tools/bin2s.c,
     130        tools/configure.ac, tools/runtest,
     131        tools/ndstool/include/arm7_sha1_homebrew.h,
     132        tools/ndstool/include/arm7_sha1_nintendo.h,
     133        tools/ndstool/include/banner.h, tools/ndstool/include/bigint.h,
     134        tools/ndstool/include/crc.h, tools/ndstool/include/default_icon.h,
     135        tools/ndstool/include/encryption.h, tools/ndstool/include/header.h,
     136        tools/ndstool/include/hook.h, tools/ndstool/include/little.h,
     137        tools/ndstool/include/loadme.h, tools/ndstool/include/logo.h,
     138        tools/ndstool/include/ndscreate.h,
     139        tools/ndstool/include/ndsextract.h, tools/ndstool/include/ndstool.h,
     140        tools/ndstool/include/ndstree.h, tools/ndstool/include/overlay.h,
     141        tools/ndstool/include/passme.h, tools/ndstool/include/passme_sram.h,
     142        tools/ndstool/include/passme_vhd1.h,
     143        tools/ndstool/include/passme_vhd2.h, tools/ndstool/include/raster.h,
     144        tools/ndstool/include/sha1.h, tools/ndstool/include/types.h,
     145        tools/ndstool/source/arm7_sha1_homebrew.c,
     146        tools/ndstool/source/arm7_sha1_nintendo.c,
     147        tools/ndstool/source/banner.cpp, tools/ndstool/source/bigint.cpp,
     148        tools/ndstool/source/compile_date.c, tools/ndstool/source/crc.cpp,
     149        tools/ndstool/source/default_icon.c,
     150        tools/ndstool/source/encryption.cpp, tools/ndstool/source/header.cpp,
     151        tools/ndstool/source/hook.cpp, tools/ndstool/source/loadme.c,
     152        tools/ndstool/source/logo.cpp, tools/ndstool/source/ndscodes.cpp,
     153        tools/ndstool/source/ndscreate.cpp,
     154        tools/ndstool/source/ndsextract.cpp,
     155        tools/ndstool/source/ndstool.cpp, tools/ndstool/source/ndstree.cpp,
     156        tools/ndstool/source/passme.cpp, tools/ndstool/source/passme_sram.c,
     157        tools/ndstool/source/raster.cpp, tools/ndstool/source/sha1.cpp,
     158        touchscreen/README.reco, touchscreen/parser.c, touchscreen/reco.c,
     159        touchscreen/reco.h, touchscreen/touchscreen.c,
     160        touchscreen/touchscreen.h, wifi/compat.c, wifi/compat.h, wifi/wifi.c:
     161        New files.
     162
    25163  Revision 1.6  2006/06/26 02:04:27  wntrmute
    26164  correct header guard
     
    58196void enterException(void);
    59197void setExceptionHandler(VoidFunctionPointer handler);
    60 void defaultExceptionHandler();
    61 
    62 u32 getCPSR();
     198void defaultExceptionHandler(void);
     199
     200u32 getCPSR(void);
    63201
    64202//---------------------------------------------------------------------------------
  • c/src/lib/libbsp/arm/nds/libnds/include/nds/arm9/input.h

    r19b9991 r9a85541  
    2828
    2929        $Log$
     30        Revision 1.1  2008/04/16 18:37:32  joel
     31        2008-04-16      Matthieu Bucchianeri <mbucchia@gmail.com>
     32       
     33                * ChangeLog, Makefile.am, README, bsp_specs, configure.ac,
     34                mk_libnds.sh, patch.libnds, preinstall.am, block/block.c,
     35                clock/clock.c, console/console.c, coproc/coproc.S, coproc/coproc.c,
     36                coproc/coproc.ld, dswifi/dswifi_license.txt, dswifi/makefile,
     37                dswifi/arm7/makefile, dswifi/arm7/source/wifi_arm7.c,
     38                dswifi/arm7/source/wifi_arm7.h, dswifi/arm9/makefile,
     39                dswifi/arm9/source/sgIP.c, dswifi/arm9/source/sgIP.h,
     40                dswifi/arm9/source/sgIP_ARP.c, dswifi/arm9/source/sgIP_ARP.h,
     41                dswifi/arm9/source/sgIP_Config.h, dswifi/arm9/source/sgIP_DHCP.c,
     42                dswifi/arm9/source/sgIP_DHCP.h, dswifi/arm9/source/sgIP_DNS.c,
     43                dswifi/arm9/source/sgIP_DNS.h, dswifi/arm9/source/sgIP_Hub.c,
     44                dswifi/arm9/source/sgIP_Hub.h, dswifi/arm9/source/sgIP_ICMP.c,
     45                dswifi/arm9/source/sgIP_ICMP.h, dswifi/arm9/source/sgIP_IP.c,
     46                dswifi/arm9/source/sgIP_IP.h, dswifi/arm9/source/sgIP_TCP.c,
     47                dswifi/arm9/source/sgIP_TCP.h, dswifi/arm9/source/sgIP_UDP.c,
     48                dswifi/arm9/source/sgIP_UDP.h, dswifi/arm9/source/sgIP_memblock.c,
     49                dswifi/arm9/source/sgIP_memblock.h,
     50                dswifi/arm9/source/sgIP_sockets.c, dswifi/arm9/source/sgIP_sockets.h,
     51                dswifi/arm9/source/wifi_arm9.c, dswifi/arm9/source/wifi_arm9.h,
     52                dswifi/common/source/dsregs.h, dswifi/common/source/spinlock.h,
     53                dswifi/common/source/spinlock.s, dswifi/common/source/wifi_shared.h,
     54                dswifi/include/dswifi7.h, dswifi/include/dswifi9.h,
     55                dswifi/include/dswifi_version.h, dswifi/include/netdb.h,
     56                dswifi/include/sgIP_errno.h, dswifi/include/netinet/in.h, fb/fb.c,
     57                fb/fb.h, include/bsp.h, include/my_ipc.h, include/tm27.h,
     58                include/types.h, include/sys/iosupport.h, irq/irq.c, irq/irq.h,
     59                libfat/gba/include/fat.h, libfat/include/fat.h,
     60                libfat/nds/include/fat.h, libfat/source/bit_ops.h,
     61                libfat/source/cache.c, libfat/source/cache.h, libfat/source/common.h,
     62                libfat/source/directory.c, libfat/source/directory.h,
     63                libfat/source/fatdir.c, libfat/source/fatdir.h,
     64                libfat/source/fatfile.c, libfat/source/fatfile.h,
     65                libfat/source/file_allocation_table.c,
     66                libfat/source/file_allocation_table.h, libfat/source/filetime.c,
     67                libfat/source/filetime.h, libfat/source/libfat.c,
     68                libfat/source/mem_allocate.h, libfat/source/partition.c,
     69                libfat/source/partition.h, libfat/source/disc_io/disc.c,
     70                libfat/source/disc_io/disc.h, libfat/source/disc_io/disc_io.h,
     71                libfat/source/disc_io/io_cf_common.c,
     72                libfat/source/disc_io/io_cf_common.h,
     73                libfat/source/disc_io/io_dldi.h, libfat/source/disc_io/io_dldi.s,
     74                libfat/source/disc_io/io_efa2.c, libfat/source/disc_io/io_efa2.h,
     75                libfat/source/disc_io/io_fcsr.c, libfat/source/disc_io/io_fcsr.h,
     76                libfat/source/disc_io/io_m3_common.c,
     77                libfat/source/disc_io/io_m3_common.h,
     78                libfat/source/disc_io/io_m3cf.c, libfat/source/disc_io/io_m3cf.h,
     79                libfat/source/disc_io/io_m3sd.c, libfat/source/disc_io/io_m3sd.h,
     80                libfat/source/disc_io/io_mpcf.c, libfat/source/disc_io/io_mpcf.h,
     81                libfat/source/disc_io/io_njsd.c, libfat/source/disc_io/io_njsd.h,
     82                libfat/source/disc_io/io_nmmc.c, libfat/source/disc_io/io_nmmc.h,
     83                libfat/source/disc_io/io_sc_common.c,
     84                libfat/source/disc_io/io_sc_common.h,
     85                libfat/source/disc_io/io_sccf.c, libfat/source/disc_io/io_sccf.h,
     86                libfat/source/disc_io/io_scsd.c, libfat/source/disc_io/io_scsd.h,
     87                libfat/source/disc_io/io_scsd_s.s,
     88                libfat/source/disc_io/io_sd_common.c,
     89                libfat/source/disc_io/io_sd_common.h, libnds/Makefile.arm7,
     90                libnds/Makefile.arm9, libnds/libnds_license.txt,
     91                libnds/basicARM7/source/defaultARM7.c,
     92                libnds/include/default_font_bin.h, libnds/include/gbfs.h,
     93                libnds/include/nds.h, libnds/include/nds/bios.h,
     94                libnds/include/nds/card.h, libnds/include/nds/dma.h,
     95                libnds/include/nds/interrupts.h, libnds/include/nds/ipc.h,
     96                libnds/include/nds/jtypes.h, libnds/include/nds/memory.h,
     97                libnds/include/nds/registers_alt.h, libnds/include/nds/reload.h,
     98                libnds/include/nds/system.h, libnds/include/nds/timers.h,
     99                libnds/include/nds/arm7/audio.h, libnds/include/nds/arm7/clock.h,
     100                libnds/include/nds/arm7/serial.h, libnds/include/nds/arm7/touch.h,
     101                libnds/include/nds/arm9/background.h,
     102                libnds/include/nds/arm9/boxtest.h, libnds/include/nds/arm9/cache.h,
     103                libnds/include/nds/arm9/console.h,
     104                libnds/include/nds/arm9/exceptions.h,
     105                libnds/include/nds/arm9/image.h, libnds/include/nds/arm9/input.h,
     106                libnds/include/nds/arm9/math.h, libnds/include/nds/arm9/ndsmotion.h,
     107                libnds/include/nds/arm9/pcx.h, libnds/include/nds/arm9/postest.h,
     108                libnds/include/nds/arm9/rumble.h, libnds/include/nds/arm9/sound.h,
     109                libnds/include/nds/arm9/sprite.h, libnds/include/nds/arm9/trig_lut.h,
     110                libnds/include/nds/arm9/video.h, libnds/include/nds/arm9/videoGL.h,
     111                libnds/source/arm7/audio.c, libnds/source/arm7/clock.c,
     112                libnds/source/arm7/microphone.c, libnds/source/arm7/spi.c,
     113                libnds/source/arm7/touch.c, libnds/source/arm7/userSettings.c,
     114                libnds/source/arm9/COS.bin, libnds/source/arm9/COS.s,
     115                libnds/source/arm9/SIN.bin, libnds/source/arm9/SIN.s,
     116                libnds/source/arm9/TAN.bin, libnds/source/arm9/TAN.s,
     117                libnds/source/arm9/boxtest.c, libnds/source/arm9/console.c,
     118                libnds/source/arm9/dcache.s, libnds/source/arm9/default_font.bin,
     119                libnds/source/arm9/default_font.s,
     120                libnds/source/arm9/exceptionHandler.S,
     121                libnds/source/arm9/exceptionHandler.s,
     122                libnds/source/arm9/exceptions.c, libnds/source/arm9/gurumeditation.c,
     123                libnds/source/arm9/icache.s, libnds/source/arm9/image.c,
     124                libnds/source/arm9/initSystem.c, libnds/source/arm9/keys.c,
     125                libnds/source/arm9/ndsmotion.c, libnds/source/arm9/pcx.c,
     126                libnds/source/arm9/rumble.c, libnds/source/arm9/sound.c,
     127                libnds/source/arm9/system.c, libnds/source/arm9/touch.c,
     128                libnds/source/arm9/video.c, libnds/source/arm9/videoGL.c,
     129                libnds/source/common/biosCalls.s, libnds/source/common/card.c,
     130                libnds/source/common/gbfs.c,
     131                libnds/source/common/interruptDispatcher.s,
     132                libnds/source/common/interrupts.c, rtc/rtc.c, sound/sound.c,
     133                sound/sound.h, start/start.S, startup/linkcmds, startup/start.c,
     134                timer/timer.c, tools/Makefile.am, tools/bin2s, tools/bin2s.c,
     135                tools/configure.ac, tools/runtest,
     136                tools/ndstool/include/arm7_sha1_homebrew.h,
     137                tools/ndstool/include/arm7_sha1_nintendo.h,
     138                tools/ndstool/include/banner.h, tools/ndstool/include/bigint.h,
     139                tools/ndstool/include/crc.h, tools/ndstool/include/default_icon.h,
     140                tools/ndstool/include/encryption.h, tools/ndstool/include/header.h,
     141                tools/ndstool/include/hook.h, tools/ndstool/include/little.h,
     142                tools/ndstool/include/loadme.h, tools/ndstool/include/logo.h,
     143                tools/ndstool/include/ndscreate.h,
     144                tools/ndstool/include/ndsextract.h, tools/ndstool/include/ndstool.h,
     145                tools/ndstool/include/ndstree.h, tools/ndstool/include/overlay.h,
     146                tools/ndstool/include/passme.h, tools/ndstool/include/passme_sram.h,
     147                tools/ndstool/include/passme_vhd1.h,
     148                tools/ndstool/include/passme_vhd2.h, tools/ndstool/include/raster.h,
     149                tools/ndstool/include/sha1.h, tools/ndstool/include/types.h,
     150                tools/ndstool/source/arm7_sha1_homebrew.c,
     151                tools/ndstool/source/arm7_sha1_nintendo.c,
     152                tools/ndstool/source/banner.cpp, tools/ndstool/source/bigint.cpp,
     153                tools/ndstool/source/compile_date.c, tools/ndstool/source/crc.cpp,
     154                tools/ndstool/source/default_icon.c,
     155                tools/ndstool/source/encryption.cpp, tools/ndstool/source/header.cpp,
     156                tools/ndstool/source/hook.cpp, tools/ndstool/source/loadme.c,
     157                tools/ndstool/source/logo.cpp, tools/ndstool/source/ndscodes.cpp,
     158                tools/ndstool/source/ndscreate.cpp,
     159                tools/ndstool/source/ndsextract.cpp,
     160                tools/ndstool/source/ndstool.cpp, tools/ndstool/source/ndstree.cpp,
     161                tools/ndstool/source/passme.cpp, tools/ndstool/source/passme_sram.c,
     162                tools/ndstool/source/raster.cpp, tools/ndstool/source/sha1.cpp,
     163                touchscreen/README.reco, touchscreen/parser.c, touchscreen/reco.c,
     164                touchscreen/reco.h, touchscreen/touchscreen.c,
     165                touchscreen/touchscreen.h, wifi/compat.c, wifi/compat.h, wifi/wifi.c:
     166                New files.
     167       
    30168        Revision 1.14  2006/02/25 02:18:53  wntrmute
    31169        doxygenation updates
     
    126264/*!     Call this function once per main loop in order to use the keypad functions.
    127265*/
    128 void scanKeys();
     266void scanKeys(void);
    129267
    130268//!     Obtains the current keypad held state.
     
    147285
    148286//!     Obtains the current touchscreen co-ordinates.
    149 touchPosition touchReadXY();
     287touchPosition touchReadXY(void);
    150288
    151289#ifdef __cplusplus
  • c/src/lib/libbsp/arm/nds/libnds/include/nds/arm9/ndsmotion.h

    r19b9991 r9a85541  
    4848#endif
    4949
    50 /*! \fn int motion_init()
     50/*! \fn int motion_init(void)
    5151\brief  Initializes the DS Motion Sensor.
    5252Run this before using any of the DS Motion Sensor functions
    5353save the return value and pass it to the other motion_ functions
    5454*/
    55 int motion_init();
     55int motion_init(void);
    5656
    57 /*! \fn int motion_deinit()
     57/*! \fn int motion_deinit(void)
    5858\brief  Deinitializes the DS Motion Sensor
    5959*/
    60 void motion_deinit();
     60void motion_deinit(void);
    6161
    62 /*! \fn signed int motion_read_x()
     62/*! \fn signed int motion_read_x(void)
    6363\brief  read the X acceleration
    6464*/
    65 signed int motion_read_x();
     65signed int motion_read_x(void);
    6666
    67 /*! \fn signed int motion_read_y()
     67/*! \fn signed int motion_read_y(void)
    6868\brief  read the Y acceleration
    6969*/
    70 signed int motion_read_y();
     70signed int motion_read_y(void);
    7171
    72 /*! \fn signed int motion_read_z()
     72/*! \fn signed int motion_read_z(void)
    7373\brief  read the Z acceleration
    7474*/
    75 signed int motion_read_z();
     75signed int motion_read_z(void);
    7676
    77 /*! \fn signed int motion_read_gyro()
     77/*! \fn signed int motion_read_gyro(void)
    7878\brief  read the Z rotational speed
    7979*/
    80 signed int motion_read_gyro();
     80signed int motion_read_gyro(void);
    8181
    82 /*! \fn int motion_acceleration_x()
     82/*! \fn int motion_acceleration_x(void)
    8383\brief gets acceleration value to mili G (where g is 9.8 m/s*s)
    8484*/
    85 int motion_acceleration_x();
     85int motion_acceleration_x(void);
    8686
    87 /*! \fn int motion_acceleration_y()
     87/*! \fn int motion_acceleration_y(void)
    8888\brief gets acceleration value to mili G (where g is 9.8 m/s*s)
    8989*/
    90 int motion_acceleration_y();
     90int motion_acceleration_y(void);
    9191
    92 /*! \fn int motion_acceleration_z()
     92/*! \fn int motion_acceleration_z(void)
    9393\brief gets acceleration value to mili G (where g is 9.8 m/s*s)
    9494*/
    95 int motion_acceleration_z();
     95int motion_acceleration_z(void);
    9696
    9797/*! \fn void motion_set_sens_x(int sens)
     
    119119void motion_set_sens_gyro(int sens);
    120120
    121 /*! \fn void motion_set_offs_x()
     121/*! \fn void motion_set_offs_x(void)
    122122\brief this should be called when the axis is under no acceleration
    123123default is 2048
    124124*/
    125 void motion_set_offs_x();
     125void motion_set_offs_x(void);
    126126
    127 /*! \fn void motion_set_offs_y()
     127/*! \fn void motion_set_offs_y(void)
    128128\brief this should be called when the axis is under no acceleration
    129129default is 2048
    130130*/
    131 void motion_set_offs_y();
     131void motion_set_offs_y(void);
    132132
    133 /*! \fn void motion_set_offs_z()
     133/*! \fn void motion_set_offs_z(void)
    134134\brief this should be called when the axis is under no acceleration
    135135default is 2048
    136136*/
    137 void motion_set_offs_z();
     137void motion_set_offs_z(void);
    138138
    139 /*! \fn void motion_set_offs_gyro()
     139/*! \fn void motion_set_offs_gyro(void)
    140140\brief this should be called when the axis is under no rotation
    141141default is 1680
    142142*/
    143 void motion_set_offs_gyro();
     143void motion_set_offs_gyro(void);
    144144
    145 /*! \fn int motion_rotation()
     145/*! \fn int motion_rotation(void)
    146146\brief converts raw rotation value to degrees per second
    147147*/
    148 int motion_rotation();
     148int motion_rotation(void);
    149149
    150 /*! \fn MotionCalibration* motion_get_calibration()
     150/*! \fn MotionCalibration* motion_get_calibration(void)void
    151151\brief This returns the current calibration settings for saving
    152152*/
    153 MotionCalibration* motion_get_calibration();
     153MotionCalibration* motion_get_calibration(void);
    154154
    155155/*! \fn void motion_set_calibration(MotionCalibration* cal)
     
    159159void motion_set_calibration(MotionCalibration* cal);
    160160
    161 /*! \fn MotionCalibration* motion_enable_ain_1()
     161/*! \fn MotionCalibration* motion_enable_ain_1(void)
    162162\brief This enables the analog input number 1.
    163163Required before reading analog input number 1.
    164164*/
    165 void motion_enable_ain_1();
     165void motion_enable_ain_1(void);
    166166
    167 /*! \fn MotionCalibration* motion_enable_ain_2()
     167/*! \fn MotionCalibration* motion_enable_ain_2(void)
    168168\brief This enables the analog input number 2.
    169169Required before reading analog input number 2.
    170170*/
    171 void motion_enable_ain_2();
     171void motion_enable_ain_2(void);
    172172
    173 /*! \fn MotionCalibration* motion_read_ain_1()
     173/*! \fn MotionCalibration* motion_read_ain_1(void)
    174174\brief This reads the analog input number 1.
    175175analog input number 1 needs to be enabled before reading.
    176176*/
    177 int motion_read_ain_1();
     177int motion_read_ain_1(void);
    178178
    179 /*! \fn MotionCalibration* motion_read_ain_2()
     179/*! \fn MotionCalibration* motion_read_ain_2(void)
    180180\brief This reads the analog input number 2.
    181181analog input number 2 needs to be enabled before reading.
    182182*/
    183 int motion_read_ain_2();
     183int motion_read_ain_2(void);
    184184
    185185#ifdef __cplusplus
  • c/src/lib/libbsp/arm/nds/libnds/include/nds/arm9/videoGL.h

    r19b9991 r9a85541  
    379379
    380380/*! \brief Returns the active texture parameter (constructed from internal call to glTexParameter) */
    381 u32 glGetTexParameter();
     381u32 glGetTexParameter(void);
    382382
    383383/*! \brief returns the address alocated to the texure named by name
     
    416416
    417417// This returns a pointer to the globals for videoGL
    418 gl_hidden_globals* glGetGlobals();
     418gl_hidden_globals* glGetGlobals(void);
    419419
    420420
     
    10861086
    10871087/*! \brief Initializes the gl state machine (must be called once before using gl calls) */
    1088 GL_STATIC_INL void glInit() {
     1088GL_STATIC_INL void glInit(void) {
    10891089        glGlob = glGetGlobals(); // make sure globals are synced between compilation units
    10901090        glInit_C(); // actually does the initialization
  • c/src/lib/libbsp/arm/nds/libnds/source/arm9/console.c

    r19b9991 r9a85541  
    279279const devoptab_t dotab_stdout = {
    280280        "con",
    281         0,
    282281        NULL,
    283282        NULL,
     
    402401
    403402//---------------------------------------------------------------------------------
    404 static void newRow() {
     403static void newRow(void) {
    405404//---------------------------------------------------------------------------------
    406405        int i;
  • c/src/lib/libbsp/arm/nds/libnds/source/arm9/gurumeditation.c

    r19b9991 r9a85541  
    3333
    3434#include <stdio.h>
     35#include <inttypes.h>
    3536
    3637//---------------------------------------------------------------------------------
     
    207208extern const char __itcm_start[];
    208209//---------------------------------------------------------------------------------
    209 static void defaultHandler() {
     210static void defaultHandler(void) {
    210211//---------------------------------------------------------------------------------
    211212        videoSetMode(0);
     
    247248        }
    248249
    249         iprintf("  pc: %08X addr: %08X\n\n",codeAddress,exceptionAddress);
     250        iprintf("  pc: %08" PRIX32 " addr: %08" PRIX32 "\n\n",codeAddress,exceptionAddress);
    250251
    251252        int i;
    252253        for ( i=0; i < 8; i++ ) {
    253                 iprintf(        "  %s: %08X   %s: %08X\n",
     254                iprintf(        "  %s: %08" PRIX32 "   %s: %08" PRIX32 "\n",
    254255                                        registerNames[i], exceptionRegisters[i],
    255256                                        registerNames[i+8],exceptionRegisters[i+8]);
     
    258259        u32 *stack = (u32 *)exceptionRegisters[13];
    259260        for ( i=0; i<10; i++ ) {
    260                 iprintf( "\x1b[%d;2H%08X: %08X %08X", i + 14, (u32)&stack[i*2],stack[i*2], stack[(i*2)+1] );
     261                iprintf( "\x1b[%d;2H%08" PRIX32 ": %08" PRIX32 " %08" PRIX32 "", i + 14, (u32)&stack[i*2],stack[i*2], stack[(i*2)+1] );
    261262        }
    262263        while(1);
  • c/src/lib/libbsp/arm/nds/libnds/source/arm9/ndsmotion.c

    r19b9991 r9a85541  
    6565
    6666
    67 void motion_MK6_sensor_mode() {
     67void motion_MK6_sensor_mode(void) {
    6868        // send some commands on the SPI bus
    6969        SPI_On()
     
    8181}
    8282
    83 void motion_MK6_EEPROM_mode() {
     83void motion_MK6_EEPROM_mode(void) {
    8484        // send some commands on the SPI bus
    8585        SPI_On()
     
    9898
    9999// checks whether a DS Motion Pak is plugged in
    100 int motion_pak_is_inserted(){
     100int motion_pak_is_inserted(void){
    101101    int motion_pak = 0;
    102102        unsigned char return_byte = V_SRAM[10]; // read first byte of DS Motion Pak check
     
    117117// this only works after motion_init()
    118118// it will return false if it is run before motion_init()
    119 int motion_card_is_inserted(){
     119int motion_card_is_inserted(void){
    120120        // send 0x03 to read from DS Motion Card control register
    121121        SPI_On()
     
    168168// Turns it on
    169169// Does not require knowing which type is present
    170 int motion_init() {
     170int motion_init(void) {
    171171        sysSetBusOwners(true, true);
    172172        // first, check for the DS Motion Pak - type 1
     
    196196// In the case of a DS Motion Card, turns off the accelerometer
    197197// In the case of an MK6, turns off accelerometer and switches out of sensor mode into EEPROM mode
    198 void motion_deinit() {
     198void motion_deinit(void) {
    199199        // DS Motion Card - turn off accelerometer
    200200        SPI_On()
     
    246246
    247247// read the Y acceleration
    248 signed int motion_read_y() {
     248signed int motion_read_y(void) {
    249249        unsigned char High_byte = 0;
    250250        unsigned char Low_byte = 0;
     
    433433}
    434434
    435 MotionCalibration* motion_get_calibration(){
     435MotionCalibration* motion_get_calibration(void){
    436436        return &calibration;
    437437}
     
    449449
    450450// enable analog input number 1 (ain_1)
    451 void motion_enable_ain_1(){
     451void motion_enable_ain_1(void){
    452452        unsigned char return_byte;
    453453    return_byte = V_SRAM[16];
     
    456456
    457457// enable analog input number 2 (ain_2)
    458 void motion_enable_ain_2(){
     458void motion_enable_ain_2(void){
    459459        unsigned char return_byte;
    460460    return_byte = V_SRAM[18];
     
    463463
    464464// read from the analog input number 1 - requires enabling ain_1 first
    465 int motion_read_ain_1(){
     465int motion_read_ain_1(void){
    466466        unsigned char High_byte = V_SRAM[12]; // Command to load AIN_1 High onto bus
    467467        swiDelay(WAIT_CYCLES); // wait for data ready
     
    475475
    476476// read from the analog input number 2 - requires enabling ain_2 first
    477 int motion_read_ain_2(){
     477int motion_read_ain_2(void){
    478478        unsigned char High_byte = V_SRAM[14]; // Command to load AIN_1 High onto bus
    479479        swiDelay(WAIT_CYCLES); // wait for data ready
  • c/src/lib/libbsp/arm/nds/libnds/source/common/card.c

    r19b9991 r9a85541  
    119119
    120120//---------------------------------------------------------------------------------
    121 static inline void EepromWaitBusy()     {
     121static inline void EepromWaitBusy(void) {
    122122//---------------------------------------------------------------------------------
    123123        while (CARD_CR1 & /*BUSY*/0x80);
  • c/src/lib/libbsp/arm/nds/libnds/source/common/interrupts.c

    r19b9991 r9a85541  
    2323
    2424        $Log$
     25        Revision 1.1  2008/04/16 18:37:33  joel
     26        2008-04-16      Matthieu Bucchianeri <mbucchia@gmail.com>
     27       
     28                * ChangeLog, Makefile.am, README, bsp_specs, configure.ac,
     29                mk_libnds.sh, patch.libnds, preinstall.am, block/block.c,
     30                clock/clock.c, console/console.c, coproc/coproc.S, coproc/coproc.c,
     31                coproc/coproc.ld, dswifi/dswifi_license.txt, dswifi/makefile,
     32                dswifi/arm7/makefile, dswifi/arm7/source/wifi_arm7.c,
     33                dswifi/arm7/source/wifi_arm7.h, dswifi/arm9/makefile,
     34                dswifi/arm9/source/sgIP.c, dswifi/arm9/source/sgIP.h,
     35                dswifi/arm9/source/sgIP_ARP.c, dswifi/arm9/source/sgIP_ARP.h,
     36                dswifi/arm9/source/sgIP_Config.h, dswifi/arm9/source/sgIP_DHCP.c,
     37                dswifi/arm9/source/sgIP_DHCP.h, dswifi/arm9/source/sgIP_DNS.c,
     38                dswifi/arm9/source/sgIP_DNS.h, dswifi/arm9/source/sgIP_Hub.c,
     39                dswifi/arm9/source/sgIP_Hub.h, dswifi/arm9/source/sgIP_ICMP.c,
     40                dswifi/arm9/source/sgIP_ICMP.h, dswifi/arm9/source/sgIP_IP.c,
     41                dswifi/arm9/source/sgIP_IP.h, dswifi/arm9/source/sgIP_TCP.c,
     42                dswifi/arm9/source/sgIP_TCP.h, dswifi/arm9/source/sgIP_UDP.c,
     43                dswifi/arm9/source/sgIP_UDP.h, dswifi/arm9/source/sgIP_memblock.c,
     44                dswifi/arm9/source/sgIP_memblock.h,
     45                dswifi/arm9/source/sgIP_sockets.c, dswifi/arm9/source/sgIP_sockets.h,
     46                dswifi/arm9/source/wifi_arm9.c, dswifi/arm9/source/wifi_arm9.h,
     47                dswifi/common/source/dsregs.h, dswifi/common/source/spinlock.h,
     48                dswifi/common/source/spinlock.s, dswifi/common/source/wifi_shared.h,
     49                dswifi/include/dswifi7.h, dswifi/include/dswifi9.h,
     50                dswifi/include/dswifi_version.h, dswifi/include/netdb.h,
     51                dswifi/include/sgIP_errno.h, dswifi/include/netinet/in.h, fb/fb.c,
     52                fb/fb.h, include/bsp.h, include/my_ipc.h, include/tm27.h,
     53                include/types.h, include/sys/iosupport.h, irq/irq.c, irq/irq.h,
     54                libfat/gba/include/fat.h, libfat/include/fat.h,
     55                libfat/nds/include/fat.h, libfat/source/bit_ops.h,
     56                libfat/source/cache.c, libfat/source/cache.h, libfat/source/common.h,
     57                libfat/source/directory.c, libfat/source/directory.h,
     58                libfat/source/fatdir.c, libfat/source/fatdir.h,
     59                libfat/source/fatfile.c, libfat/source/fatfile.h,
     60                libfat/source/file_allocation_table.c,
     61                libfat/source/file_allocation_table.h, libfat/source/filetime.c,
     62                libfat/source/filetime.h, libfat/source/libfat.c,
     63                libfat/source/mem_allocate.h, libfat/source/partition.c,
     64                libfat/source/partition.h, libfat/source/disc_io/disc.c,
     65                libfat/source/disc_io/disc.h, libfat/source/disc_io/disc_io.h,
     66                libfat/source/disc_io/io_cf_common.c,
     67                libfat/source/disc_io/io_cf_common.h,
     68                libfat/source/disc_io/io_dldi.h, libfat/source/disc_io/io_dldi.s,
     69                libfat/source/disc_io/io_efa2.c, libfat/source/disc_io/io_efa2.h,
     70                libfat/source/disc_io/io_fcsr.c, libfat/source/disc_io/io_fcsr.h,
     71                libfat/source/disc_io/io_m3_common.c,
     72                libfat/source/disc_io/io_m3_common.h,
     73                libfat/source/disc_io/io_m3cf.c, libfat/source/disc_io/io_m3cf.h,
     74                libfat/source/disc_io/io_m3sd.c, libfat/source/disc_io/io_m3sd.h,
     75                libfat/source/disc_io/io_mpcf.c, libfat/source/disc_io/io_mpcf.h,
     76                libfat/source/disc_io/io_njsd.c, libfat/source/disc_io/io_njsd.h,
     77                libfat/source/disc_io/io_nmmc.c, libfat/source/disc_io/io_nmmc.h,
     78                libfat/source/disc_io/io_sc_common.c,
     79                libfat/source/disc_io/io_sc_common.h,
     80                libfat/source/disc_io/io_sccf.c, libfat/source/disc_io/io_sccf.h,
     81                libfat/source/disc_io/io_scsd.c, libfat/source/disc_io/io_scsd.h,
     82                libfat/source/disc_io/io_scsd_s.s,
     83                libfat/source/disc_io/io_sd_common.c,
     84                libfat/source/disc_io/io_sd_common.h, libnds/Makefile.arm7,
     85                libnds/Makefile.arm9, libnds/libnds_license.txt,
     86                libnds/basicARM7/source/defaultARM7.c,
     87                libnds/include/default_font_bin.h, libnds/include/gbfs.h,
     88                libnds/include/nds.h, libnds/include/nds/bios.h,
     89                libnds/include/nds/card.h, libnds/include/nds/dma.h,
     90                libnds/include/nds/interrupts.h, libnds/include/nds/ipc.h,
     91                libnds/include/nds/jtypes.h, libnds/include/nds/memory.h,
     92                libnds/include/nds/registers_alt.h, libnds/include/nds/reload.h,
     93                libnds/include/nds/system.h, libnds/include/nds/timers.h,
     94                libnds/include/nds/arm7/audio.h, libnds/include/nds/arm7/clock.h,
     95                libnds/include/nds/arm7/serial.h, libnds/include/nds/arm7/touch.h,
     96                libnds/include/nds/arm9/background.h,
     97                libnds/include/nds/arm9/boxtest.h, libnds/include/nds/arm9/cache.h,
     98                libnds/include/nds/arm9/console.h,
     99                libnds/include/nds/arm9/exceptions.h,
     100                libnds/include/nds/arm9/image.h, libnds/include/nds/arm9/input.h,
     101                libnds/include/nds/arm9/math.h, libnds/include/nds/arm9/ndsmotion.h,
     102                libnds/include/nds/arm9/pcx.h, libnds/include/nds/arm9/postest.h,
     103                libnds/include/nds/arm9/rumble.h, libnds/include/nds/arm9/sound.h,
     104                libnds/include/nds/arm9/sprite.h, libnds/include/nds/arm9/trig_lut.h,
     105                libnds/include/nds/arm9/video.h, libnds/include/nds/arm9/videoGL.h,
     106                libnds/source/arm7/audio.c, libnds/source/arm7/clock.c,
     107                libnds/source/arm7/microphone.c, libnds/source/arm7/spi.c,
     108                libnds/source/arm7/touch.c, libnds/source/arm7/userSettings.c,
     109                libnds/source/arm9/COS.bin, libnds/source/arm9/COS.s,
     110                libnds/source/arm9/SIN.bin, libnds/source/arm9/SIN.s,
     111                libnds/source/arm9/TAN.bin, libnds/source/arm9/TAN.s,
     112                libnds/source/arm9/boxtest.c, libnds/source/arm9/console.c,
     113                libnds/source/arm9/dcache.s, libnds/source/arm9/default_font.bin,
     114                libnds/source/arm9/default_font.s,
     115                libnds/source/arm9/exceptionHandler.S,
     116                libnds/source/arm9/exceptionHandler.s,
     117                libnds/source/arm9/exceptions.c, libnds/source/arm9/gurumeditation.c,
     118                libnds/source/arm9/icache.s, libnds/source/arm9/image.c,
     119                libnds/source/arm9/initSystem.c, libnds/source/arm9/keys.c,
     120                libnds/source/arm9/ndsmotion.c, libnds/source/arm9/pcx.c,
     121                libnds/source/arm9/rumble.c, libnds/source/arm9/sound.c,
     122                libnds/source/arm9/system.c, libnds/source/arm9/touch.c,
     123                libnds/source/arm9/video.c, libnds/source/arm9/videoGL.c,
     124                libnds/source/common/biosCalls.s, libnds/source/common/card.c,
     125                libnds/source/common/gbfs.c,
     126                libnds/source/common/interruptDispatcher.s,
     127                libnds/source/common/interrupts.c, rtc/rtc.c, sound/sound.c,
     128                sound/sound.h, start/start.S, startup/linkcmds, startup/start.c,
     129                timer/timer.c, tools/Makefile.am, tools/bin2s, tools/bin2s.c,
     130                tools/configure.ac, tools/runtest,
     131                tools/ndstool/include/arm7_sha1_homebrew.h,
     132                tools/ndstool/include/arm7_sha1_nintendo.h,
     133                tools/ndstool/include/banner.h, tools/ndstool/include/bigint.h,
     134                tools/ndstool/include/crc.h, tools/ndstool/include/default_icon.h,
     135                tools/ndstool/include/encryption.h, tools/ndstool/include/header.h,
     136                tools/ndstool/include/hook.h, tools/ndstool/include/little.h,
     137                tools/ndstool/include/loadme.h, tools/ndstool/include/logo.h,
     138                tools/ndstool/include/ndscreate.h,
     139                tools/ndstool/include/ndsextract.h, tools/ndstool/include/ndstool.h,
     140                tools/ndstool/include/ndstree.h, tools/ndstool/include/overlay.h,
     141                tools/ndstool/include/passme.h, tools/ndstool/include/passme_sram.h,
     142                tools/ndstool/include/passme_vhd1.h,
     143                tools/ndstool/include/passme_vhd2.h, tools/ndstool/include/raster.h,
     144                tools/ndstool/include/sha1.h, tools/ndstool/include/types.h,
     145                tools/ndstool/source/arm7_sha1_homebrew.c,
     146                tools/ndstool/source/arm7_sha1_nintendo.c,
     147                tools/ndstool/source/banner.cpp, tools/ndstool/source/bigint.cpp,
     148                tools/ndstool/source/compile_date.c, tools/ndstool/source/crc.cpp,
     149                tools/ndstool/source/default_icon.c,
     150                tools/ndstool/source/encryption.cpp, tools/ndstool/source/header.cpp,
     151                tools/ndstool/source/hook.cpp, tools/ndstool/source/loadme.c,
     152                tools/ndstool/source/logo.cpp, tools/ndstool/source/ndscodes.cpp,
     153                tools/ndstool/source/ndscreate.cpp,
     154                tools/ndstool/source/ndsextract.cpp,
     155                tools/ndstool/source/ndstool.cpp, tools/ndstool/source/ndstree.cpp,
     156                tools/ndstool/source/passme.cpp, tools/ndstool/source/passme_sram.c,
     157                tools/ndstool/source/raster.cpp, tools/ndstool/source/sha1.cpp,
     158                touchscreen/README.reco, touchscreen/parser.c, touchscreen/reco.c,
     159                touchscreen/reco.h, touchscreen/touchscreen.c,
     160                touchscreen/touchscreen.h, wifi/compat.c, wifi/compat.h, wifi/wifi.c:
     161                New files.
     162       
    25163        Revision 1.10  2007/02/06 12:00:32  wntrmute
    26164        use uint32 for irqEnable
     
    56194#include <nds/system.h>
    57195
    58 void IntrMain();        // Prototype for assembly interrupt dispatcher
     196void IntrMain(void);    // Prototype for assembly interrupt dispatcher
    59197
    60198//---------------------------------------------------------------------------------
  • c/src/lib/libbsp/arm/nds/sound/sound.c

    r19b9991 r9a85541  
    5656  /* reset IPCs structs */
    5757  IPC->soundData = NULL;
    58   memset (my_IPC, 0, sizeof (*my_IPC));
     58  memset ((void *)my_IPC, 0, sizeof (*my_IPC));
    5959  DC_FlushAll ();
    6060
     
    103103
    104104  /* read buffer */
    105   memcpy (rw_args->buffer, my_IPC->record_buffer + offset, rw_args->count);
     105  memcpy ((void *)rw_args->buffer, (void *)my_IPC->record_buffer + offset, rw_args->count);
    106106  offset += rw_args->count;
    107107  rw_args->bytes_moved = rw_args->count;
  • c/src/lib/libbsp/arm/nds/startup/start.c

    r19b9991 r9a85541  
    2222
    2323/*
     24 *  These are from the linker script.
     25 */
     26extern uint8_t _end;
     27extern uint8_t __ewram_end;
     28
     29/*
    2430 *  This method returns the base address and size of the area which
    2531 *  is to be allocated between the RTEMS Workspace and the C Program
     
    3339)
    3440{
    35   extern uint8_t _end;
    36   extern uint8_t __ewram_end;
    37 
    3841  *work_area_start       = &_end;
    3942  *work_area_size       = (void *)&__ewram_end - (void *)&_end;
  • c/src/lib/libbsp/arm/nds/touchscreen/reco.h

    r19b9991 r9a85541  
    135135
    136136
    137 #endif RECO_H
     137#endif /* RECO_H */
  • c/src/lib/libbsp/arm/nds/wifi/compat.c

    r19b9991 r9a85541  
    4545
    4646void
    47 sgIP_Init ()
     47sgIP_Init (void)
    4848{
    4949}
     
    8181 */
    8282
     83extern void wifi_signal (struct mbuf *);
    8384int
    8485sgIP_Hub_ReceiveHardwarePacket (sgIP_Hub_HWInterface * hw,
     
    8788  struct mbuf *m;
    8889  unsigned char *p;
    89   extern void wifi_signal (struct mbuf *);
    9090
    9191  /* reserve the mbuf */
     
    115115{
    116116  sgIP_memblock *packet;
    117   unsigned char *p;
    118117  size_t size = 0;
    119118  struct mbuf *l;
     
    192191
    193192int
    194 sgIP_DHCP_Update ()
     193sgIP_DHCP_Update (void)
    195194{
    196195  return SGIP_DHCP_STATUS_SUCCESS;
     
    215214
    216215sgIP_DNS_Record *
    217 sgIP_DNS_GetUnusedRecord ()
     216sgIP_DNS_GetUnusedRecord (void)
    218217{
    219218  static sgIP_DNS_Record rec;
  • c/src/lib/libbsp/arm/nds/wifi/compat.h

    r19b9991 r9a85541  
    9494/* prototypes */
    9595
    96 sgIP_DNS_Record *sgIP_DNS_GetUnusedRecord ();
     96sgIP_DNS_Record *sgIP_DNS_GetUnusedRecord (void);
    9797void sgIP_DHCP_Start (sgIP_Hub_HWInterface * interface, int getDNS);
    98 int sgIP_DHCP_Update ();
     98int sgIP_DHCP_Update (void);
    9999int sgIP_ARP_SendGratARP (sgIP_Hub_HWInterface * hw);
    100 void sgIP_Init ();
     100void sgIP_Init (void);
    101101void sgIP_Timer (int num_ms);
    102102sgIP_Hub_HWInterface
Note: See TracChangeset for help on using the changeset viewer.