CMSIS. Fixed warnings (hate them!).
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4250 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
96156a229f
commit
72ecead37c
|
@ -5898,7 +5898,9 @@ extern "C"
|
||||||
/* Iniatilize output for below specified range as least output value of table */
|
/* Iniatilize output for below specified range as least output value of table */
|
||||||
y = pYData[0];
|
y = pYData[0];
|
||||||
}
|
}
|
||||||
else if(i >= S->nValues)
|
/* CHIBIOS FIX BEGIN */
|
||||||
|
else if(i >= (int32_t)S->nValues)
|
||||||
|
/* CHIBIOS FIX END */
|
||||||
{
|
{
|
||||||
/* Iniatilize output for above specified range as last output value of table */
|
/* Iniatilize output for above specified range as last output value of table */
|
||||||
y = pYData[S->nValues - 1];
|
y = pYData[S->nValues - 1];
|
||||||
|
@ -5951,8 +5953,9 @@ extern "C"
|
||||||
/* 12 bits for the table index */
|
/* 12 bits for the table index */
|
||||||
/* Index value calculation */
|
/* Index value calculation */
|
||||||
index = ((x & 0xFFF00000) >> 20);
|
index = ((x & 0xFFF00000) >> 20);
|
||||||
|
/* CHIBIOS FIX BEGIN */
|
||||||
if(index >= (nValues - 1))
|
if(index >= ((int32_t)nValues - 1))
|
||||||
|
/* CHIBIOS FIX END */
|
||||||
{
|
{
|
||||||
return (pYData[nValues - 1]);
|
return (pYData[nValues - 1]);
|
||||||
}
|
}
|
||||||
|
@ -6014,7 +6017,9 @@ extern "C"
|
||||||
/* Index value calculation */
|
/* Index value calculation */
|
||||||
index = ((x & 0xFFF00000) >> 20u);
|
index = ((x & 0xFFF00000) >> 20u);
|
||||||
|
|
||||||
if(index >= (nValues - 1))
|
/* CHIBIOS FIX BEGIN */
|
||||||
|
if(index >= ((int32_t)nValues - 1))
|
||||||
|
/* CHIBIOS FIX END */
|
||||||
{
|
{
|
||||||
return (pYData[nValues - 1]);
|
return (pYData[nValues - 1]);
|
||||||
}
|
}
|
||||||
|
@ -6074,8 +6079,9 @@ extern "C"
|
||||||
/* Index value calculation */
|
/* Index value calculation */
|
||||||
index = ((x & 0xFFF00000) >> 20u);
|
index = ((x & 0xFFF00000) >> 20u);
|
||||||
|
|
||||||
|
/* CHIBIOS FIX BEGIN */
|
||||||
if(index >= (nValues - 1))
|
if(index >= ((int32_t)nValues - 1))
|
||||||
|
/* CHIBIOS FIX END */
|
||||||
{
|
{
|
||||||
return (pYData[nValues - 1]);
|
return (pYData[nValues - 1]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -593,6 +593,10 @@ __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FPSCR(uint32_t fps
|
||||||
{
|
{
|
||||||
#if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
|
#if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
|
||||||
__ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) );
|
__ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) );
|
||||||
|
/* CHIBIOS FIX BEGIN */
|
||||||
|
#else
|
||||||
|
(void)fpscr;
|
||||||
|
/* CHIBIOS FIX END */
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue