diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-12-07 07:12:20 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-12-07 07:12:20 +0000 |
commit | ca11e7817e707a68d7dee76dcba5a03c19b8717e (patch) | |
tree | 1ca5222d23691729e273980f5f71b4330ae39e9b /c/src/lib/libbsp/arm/nds/libnds/include/nds | |
parent | 2009-12-06 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-ca11e7817e707a68d7dee76dcba5a03c19b8717e.tar.bz2 |
Eliminate various warnings.
Diffstat (limited to 'c/src/lib/libbsp/arm/nds/libnds/include/nds')
4 files changed, 8 insertions, 8 deletions
diff --git a/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm7/audio.h b/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm7/audio.h index 124911e1b9..58aa82ec35 100644 --- a/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm7/audio.h +++ b/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm7/audio.h @@ -96,7 +96,7 @@ extern "C" { /*--------------------------------------------------------------------------------- Read a byte from the microphone ---------------------------------------------------------------------------------*/ -u8 MIC_ReadData(); +u8 MIC_ReadData(void); /*--------------------------------------------------------------------------------- Fill the buffer with data from the microphone. The buffer will be @@ -108,17 +108,17 @@ void StartRecording(u8* buffer, int length); /*--------------------------------------------------------------------------------- Stop recording data, and return the length of data recorded. ---------------------------------------------------------------------------------*/ -int StopRecording(); +int StopRecording(void); /* This must be called during IRQ_TIMER0 */ -void ProcessMicrophoneTimerIRQ(); +void ProcessMicrophoneTimerIRQ(void); void PM_SetAmp(u8 control); //--------------------------------------------------------------------------------- // Turn the microphone on //--------------------------------------------------------------------------------- -static inline void MIC_On() { +static inline void MIC_On(void) { //--------------------------------------------------------------------------------- PM_SetAmp(PM_AMP_ON); } @@ -127,7 +127,7 @@ static inline void MIC_On() { //--------------------------------------------------------------------------------- // Turn the microphone off //--------------------------------------------------------------------------------- -static inline void MIC_Off() { +static inline void MIC_Off(void) { //--------------------------------------------------------------------------------- PM_SetAmp(PM_AMP_OFF); } diff --git a/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm7/clock.h b/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm7/clock.h index 7de64292b9..57cba7c1ef 100644 --- a/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm7/clock.h +++ b/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm7/clock.h @@ -130,7 +130,7 @@ void rtcGetData(uint8 * data, uint32 size); void BCDToInteger(uint8 * data, uint32 length); void integerToBCD(uint8 * data, uint32 length); -void initClockIRQ(); +void initClockIRQ(void); #ifdef __cplusplus } diff --git a/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm7/serial.h b/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm7/serial.h index 1064226575..75bede8e13 100644 --- a/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm7/serial.h +++ b/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm7/serial.h @@ -141,7 +141,7 @@ static inline -void SerialWaitBusy() { +void SerialWaitBusy(void) { while (REG_SPICNT & SPI_BUSY) swiDelay(1); } diff --git a/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm7/touch.h b/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm7/touch.h index 9bf7a71556..3863adb586 100644 --- a/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm7/touch.h +++ b/c/src/lib/libbsp/arm/nds/libnds/include/nds/arm7/touch.h @@ -57,7 +57,7 @@ extern "C" { -touchPosition touchReadXY(); +touchPosition touchReadXY(void); uint16 touchRead(uint32 command); uint32 touchReadTemperature(int * t1, int * t2); |