Changeset ca11e781 in rtems


Ignore:
Timestamp:
Dec 7, 2009, 7:12:20 AM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
596c6c10
Parents:
82292dc5
Message:

Eliminate various warnings.

Location:
c/src/lib/libbsp/arm/nds
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/nds/dswifi/arm7/source/wifi_arm7.c

    r82292dc5 rca11e781  
    116116}
    117117
    118 void GetWfcSettings() {
     118void GetWfcSettings(void) {
    119119   u8 data[256];
    120120   int i,n, c;
     
    518518}
    519519
    520 int Wifi_TxCheck() {
     520int Wifi_TxCheck(void) {
    521521        if(WIFI_REG(0xA8)&0x8000) return 0;
    522522        return 1;
     
    529529//
    530530
    531 void Wifi_Intr_RxEnd() {
     531void Wifi_Intr_RxEnd(void) {
    532532        int base;
    533533        int packetlen;
     
    571571        0x1B0, 0x1B2, 0x1B4, 0x1B6, 0x1B8, 0x1BA, 0x1BC, 0x1BE, 0x1C0, 0x1C4, 0x1D0, 0x1D2, 0x1D4, 0x1D6, 0x1D8, 0x1DA, 0x1DC, 0x1DE
    572572};
    573 void Wifi_Intr_CntOverflow() {
     573void Wifi_Intr_CntOverflow(void) {
    574574        int i;
    575575        int s,d;
     
    582582}
    583583
    584 void Wifi_Intr_StartTx() {
     584void Wifi_Intr_StartTx(void) {
    585585        if(WifiData->reqReqFlags&WFLAG_REQ_PROMISC) { // attempt to ensure packet is received
    586586
     
    588588}
    589589
    590 void Wifi_Intr_TxEnd() { // assume that we can now tx something new.
     590void Wifi_Intr_TxEnd(void) { // assume that we can now tx something new.
    591591        if(arm7qlen) {
    592592                Wifi_TxRaw(arm7q, arm7qlen);
     
    610610}
    611611
    612 void Wifi_Intr_TBTT() {
     612void Wifi_Intr_TBTT(void) {
    613613        if(WIFI_REG(0xA8)&0x8000) {
    614614                WIFI_REG(0xAE)=0x000D;
     
    616616}
    617617
    618 void Wifi_Intr_DoNothing() {
    619 }
    620 
    621 
    622 
    623 void Wifi_Interrupt() {
     618void Wifi_Intr_DoNothing(void) {
     619}
     620
     621
     622
     623void Wifi_Interrupt(void) {
    624624        int wIF;
    625625        if(!WifiData) return;
     
    654654
    655655
    656 void Wifi_Update() {
     656void Wifi_Update(void) {
    657657        int i;
    658658        if(!WifiData) return;
     
    11811181}
    11821182
    1183 int Wifi_SendSharedKeyAuthPacket() {
     1183int Wifi_SendSharedKeyAuthPacket(void) {
    11841184        // max size is 12+24+4+6 = 46
    11851185        u8 data[64];
  • c/src/lib/libbsp/arm/nds/dswifi/arm7/source/wifi_arm7.h

    r82292dc5 rca11e781  
    7575// Wifi Sync Handler function: Callback function that is called when the arm9 needs to be told to synchronize with new fifo data.
    7676// 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.
    77 typedef void (*WifiSyncHandler)();
     77typedef void (*WifiSyncHandler)(void);
    7878
    7979
     
    8585
    8686extern void Read_Flash(int address, char * destination, int length);
    87 extern void InitFlashData();
     87extern void InitFlashData(void);
    8888extern int ReadFlashByte(int address);
    8989extern int ReadFlashHWord(int address);
     
    9494extern void Wifi_RFWrite(int writedata);
    9595
    96 extern void Wifi_RFInit();
    97 extern void Wifi_BBInit();
    98 extern void Wifi_WakeUp();
    99 extern void Wifi_Shutdown();
    100 extern void Wifi_MacInit();
    101 extern void Wifi_Interrupt();
    102 extern void Wifi_Update();
     96extern void Wifi_RFInit(void);
     97extern void Wifi_BBInit(void);
     98extern void Wifi_WakeUp(void);
     99extern void Wifi_Shutdown(void);
     100extern void Wifi_MacInit(void);
     101extern void Wifi_Interrupt(void);
     102extern void Wifi_Update(void);
    103103
    104104extern void Wifi_CopyMacAddr(volatile void * dest, volatile void * src);
     
    106106
    107107extern void Wifi_Init(u32 WifiData);
    108 extern void Wifi_Deinit();
    109 extern void Wifi_Start();
    110 extern void Wifi_Stop();
     108extern void Wifi_Deinit(void);
     109extern void Wifi_Start(void);
     110extern void Wifi_Stop(void);
    111111extern void Wifi_SetChannel(int channel);
    112112extern void Wifi_SetWepKey(void * wepkey);
     
    115115extern void Wifi_SetMode(int wifimode);
    116116extern void Wifi_SetPreambleType(int preamble_type);
    117 extern void Wifi_TxSetup();
    118 extern void Wifi_RxSetup();
    119 extern void Wifi_DisableTempPowerSave();
     117extern void Wifi_TxSetup(void);
     118extern void Wifi_RxSetup(void);
     119extern void Wifi_DisableTempPowerSave(void);
    120120
    121 extern int Wifi_SendOpenSystemAuthPacket();
    122 extern int Wifi_SendAssocPacket();
    123 extern int Wifi_SendNullFrame();
    124 extern int Wifi_SendPSPollFrame();
     121extern int Wifi_SendOpenSystemAuthPacket(void);
     122extern int Wifi_SendAssocPacket(void);
     123extern int Wifi_SendNullFrame(void);
     124extern int Wifi_SendPSPollFrame(void);
    125125extern int Wifi_ProcessReceivedFrame(int macbase, int framelen);
    126126
    127 extern void Wifi_Sync();
     127extern void Wifi_Sync(void);
    128128extern void Wifi_SetSyncHandler(WifiSyncHandler sh);
    129129
  • c/src/lib/libbsp/arm/nds/dswifi/arm9/source/wifi_arm9.c

    r82292dc5 rca11e781  
    2525******************************************************************************/
    2626
     27#include <unistd.h>
    2728
    2829#include <nds.h>
  • c/src/lib/libbsp/arm/nds/libnds/include/nds/arm7/audio.h

    r82292dc5 rca11e781  
    9797        Read a byte from the microphone
    9898---------------------------------------------------------------------------------*/
    99 u8 MIC_ReadData();
     99u8 MIC_ReadData(void);
    100100
    101101/*---------------------------------------------------------------------------------
     
    109109        Stop recording data, and return the length of data recorded.
    110110---------------------------------------------------------------------------------*/
    111 int StopRecording();
     111int StopRecording(void);
    112112
    113113/* This must be called during IRQ_TIMER0 */
    114 void ProcessMicrophoneTimerIRQ();
     114void ProcessMicrophoneTimerIRQ(void);
    115115
    116116void PM_SetAmp(u8 control);
     
    119119// Turn the microphone on
    120120//---------------------------------------------------------------------------------
    121 static inline void MIC_On() {
     121static inline void MIC_On(void) {
    122122//---------------------------------------------------------------------------------
    123123  PM_SetAmp(PM_AMP_ON);
     
    128128// Turn the microphone off
    129129//---------------------------------------------------------------------------------
    130 static inline void MIC_Off() {
     130static inline void MIC_Off(void) {
    131131//---------------------------------------------------------------------------------
    132132  PM_SetAmp(PM_AMP_OFF);
  • c/src/lib/libbsp/arm/nds/libnds/include/nds/arm7/clock.h

    r82292dc5 rca11e781  
    131131void integerToBCD(uint8 * data, uint32 length);
    132132
    133 void initClockIRQ();
     133void initClockIRQ(void);
    134134
    135135#ifdef __cplusplus
  • c/src/lib/libbsp/arm/nds/libnds/include/nds/arm7/serial.h

    r82292dc5 rca11e781  
    142142
    143143static inline
    144 void SerialWaitBusy() {
     144void SerialWaitBusy(void) {
    145145        while (REG_SPICNT & SPI_BUSY)
    146146                swiDelay(1);
  • c/src/lib/libbsp/arm/nds/libnds/include/nds/arm7/touch.h

    r82292dc5 rca11e781  
    5858
    5959
    60 touchPosition touchReadXY();
     60touchPosition touchReadXY(void);
    6161
    6262uint16 touchRead(uint32 command);
  • c/src/lib/libbsp/arm/nds/libnds/source/arm7/clock.c

    r82292dc5 rca11e781  
    216216
    217217//---------------------------------------------------------------------------------
    218 void syncRTC() {
     218void syncRTC(void) {
    219219//---------------------------------------------------------------------------------
    220220        if (++IPC->time.rtc.seconds == 60 ) {
  • c/src/lib/libbsp/arm/nds/libnds/source/arm7/touch.c

    r82292dc5 rca11e781  
    4343
    4444//---------------------------------------------------------------------------------
    45 u8 CheckStylus(){
     45u8 CheckStylus(void){
    4646//---------------------------------------------------------------------------------
    4747
  • c/src/lib/libbsp/arm/nds/rtc/rtc.c

    r82292dc5 rca11e781  
    6666
    6767int
    68 nds_rtc_set_time (int minor, rtems_time_of_day * time)
     68nds_rtc_set_time (int minor, const rtems_time_of_day * time)
    6969{
    7070  return -1;
Note: See TracChangeset for help on using the changeset viewer.