mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
bsps/include: Fix old style declaration
Newer C versions require that the storage-class specifier like static or _Thread_Local be the first thing in a declaration.
This commit is contained in:
@@ -122,37 +122,37 @@ extern unsigned int gradcdac_get_cfg(void *cookie);
|
|||||||
|
|
||||||
extern unsigned int gradcdac_get_status(void *cookie);
|
extern unsigned int gradcdac_get_status(void *cookie);
|
||||||
|
|
||||||
static int __inline__ gradcdac_DAC_ReqRej(unsigned int status)
|
static __inline__ int gradcdac_DAC_ReqRej(unsigned int status)
|
||||||
{
|
{
|
||||||
return (status & GRADCDAC_STATUS_DACNO);
|
return (status & GRADCDAC_STATUS_DACNO);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __inline__ gradcdac_DAC_isCompleted(unsigned int status)
|
static __inline__ int gradcdac_DAC_isCompleted(unsigned int status)
|
||||||
{
|
{
|
||||||
return (status & GRADCDAC_STATUS_DACRDY);
|
return (status & GRADCDAC_STATUS_DACRDY);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __inline__ gradcdac_DAC_isOngoing(unsigned int status)
|
static __inline__ int gradcdac_DAC_isOngoing(unsigned int status)
|
||||||
{
|
{
|
||||||
return (status & GRADCDAC_STATUS_DACON);
|
return (status & GRADCDAC_STATUS_DACON);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __inline__ gradcdac_ADC_isTimeouted(unsigned int status)
|
static __inline__ int gradcdac_ADC_isTimeouted(unsigned int status)
|
||||||
{
|
{
|
||||||
return (status & GRADCDAC_STATUS_ADCTO);
|
return (status & GRADCDAC_STATUS_ADCTO);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __inline__ gradcdac_ADC_ReqRej(unsigned int status)
|
static __inline__ int gradcdac_ADC_ReqRej(unsigned int status)
|
||||||
{
|
{
|
||||||
return (status & GRADCDAC_STATUS_ADCNO);
|
return (status & GRADCDAC_STATUS_ADCNO);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __inline__ gradcdac_ADC_isCompleted(unsigned int status)
|
static __inline__ int gradcdac_ADC_isCompleted(unsigned int status)
|
||||||
{
|
{
|
||||||
return (status & GRADCDAC_STATUS_ADCRDY);
|
return (status & GRADCDAC_STATUS_ADCRDY);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __inline__ gradcdac_ADC_isOngoing(unsigned int status)
|
static __inline__ int gradcdac_ADC_isOngoing(unsigned int status)
|
||||||
{
|
{
|
||||||
return (status & GRADCDAC_STATUS_ADCON);
|
return (status & GRADCDAC_STATUS_ADCON);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ static inline uint64_t grlib_read_uncached64(uint64_t *address)
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
static unsigned char __inline__ grlib_read_uncached8(unsigned int address)
|
static __inline__ unsigned char grlib_read_uncached8(unsigned int address)
|
||||||
{
|
{
|
||||||
unsigned char tmp = (*(volatile unsigned char *)(address));
|
unsigned char tmp = (*(volatile unsigned char *)(address));
|
||||||
return tmp;
|
return tmp;
|
||||||
|
|||||||
Reference in New Issue
Block a user