Merge pull request #150 from jboone/hotfix_compiler_warnings_20141110
Hotfix compiler warnings 20141110
This commit is contained in:
@ -24,6 +24,7 @@
|
||||
|
||||
#include <rffc5071.h>
|
||||
#include <max2837.h>
|
||||
#include <sgpio.h>
|
||||
|
||||
#define FREQ_ONE_MHZ (1000*1000)
|
||||
|
||||
|
@ -454,6 +454,7 @@ int xsvfInfoInit( SXsvfInfo* pXsvfInfo )
|
||||
*****************************************************************************/
|
||||
void xsvfInfoCleanup( SXsvfInfo* pXsvfInfo )
|
||||
{
|
||||
(void)pXsvfInfo;
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
@ -1559,16 +1560,18 @@ int xsvfDoXCOMMENT( SXsvfInfo* pXsvfInfo )
|
||||
{
|
||||
putchar( ' ' );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
do
|
||||
{
|
||||
readByte( &ucText );
|
||||
#ifdef DEBUG_MODE
|
||||
if ( xsvf_iDebugLevel > 0 )
|
||||
{
|
||||
putchar( ucText ? ucText : '\n' );
|
||||
}
|
||||
} while ( ucText );
|
||||
#endif
|
||||
} while ( ucText );
|
||||
|
||||
pXsvfInfo->iErrorCode = XSVF_ERROR_NONE;
|
||||
|
||||
|
@ -40,6 +40,8 @@ volatile bool cpld_wait = false;
|
||||
|
||||
static void cpld_buffer_refilled(void* user_data, unsigned int length)
|
||||
{
|
||||
(void)user_data;
|
||||
(void)length;
|
||||
cpld_wait = false;
|
||||
}
|
||||
|
||||
|
@ -30,17 +30,18 @@
|
||||
#include <max5864.h>
|
||||
#include <sgpio.h>
|
||||
|
||||
volatile uint32_t buffer[4096];
|
||||
|
||||
void tx_test() {
|
||||
sgpio_set_slice_mode(false);
|
||||
sgpio_configure(TRANSCEIVER_MODE_TX);
|
||||
|
||||
// LSB goes out first, samples are 0x<Q1><I1><Q0><I0>
|
||||
volatile uint32_t buffer[] = {
|
||||
0xda808080,
|
||||
0xda80ff80,
|
||||
0x26808080,
|
||||
0x26800180,
|
||||
};
|
||||
buffer[0] = 0xda808080;
|
||||
buffer[1] = 0xda80ff80;
|
||||
buffer[2] = 0x26808080;
|
||||
buffer[3] = 0x26800180;
|
||||
|
||||
uint32_t i = 0;
|
||||
|
||||
sgpio_cpld_stream_enable();
|
||||
@ -56,7 +57,6 @@ void rx_test() {
|
||||
sgpio_set_slice_mode(false);
|
||||
sgpio_configure(TRANSCEIVER_MODE_RX);
|
||||
|
||||
volatile uint32_t buffer[4096];
|
||||
uint32_t i = 0;
|
||||
|
||||
sgpio_cpld_stream_enable();
|
||||
|
Reference in New Issue
Block a user