forked from PAWPAW-Mirror/lib_xua
Added cast to remove build warning
This commit is contained in:
@@ -11,7 +11,7 @@ static inline void TransferAdatTxSamples(chanend c_adat_out, const unsigned samp
|
|||||||
/* Do some re-arranging for SMUX.. */
|
/* Do some re-arranging for SMUX.. */
|
||||||
unsafe
|
unsafe
|
||||||
{
|
{
|
||||||
unsigned * unsafe samplesFromHostAdat = &samplesFromHost[ADAT_TX_INDEX];
|
unsigned * unsafe samplesFromHostAdat = (unsigned * unsafe) &samplesFromHost[ADAT_TX_INDEX];
|
||||||
|
|
||||||
/* Note, when smux == 1 this loop just does a straight 1:1 copy */
|
/* Note, when smux == 1 this loop just does a straight 1:1 copy */
|
||||||
//if(smux != 1)
|
//if(smux != 1)
|
||||||
@@ -38,7 +38,7 @@ static inline void TransferAdatTxSamples(chanend c_adat_out, const unsigned samp
|
|||||||
inuint(c_adat_out);
|
inuint(c_adat_out);
|
||||||
|
|
||||||
/* Send buffer pointer over to ADAT core */
|
/* Send buffer pointer over to ADAT core */
|
||||||
volatile unsigned * unsafe samplePtr = &adatSamples;
|
volatile unsigned * unsafe samplePtr = (unsigned * unsafe) &adatSamples;
|
||||||
outuint(c_adat_out, (unsigned) samplePtr);
|
outuint(c_adat_out, (unsigned) samplePtr);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user