forked from Imagelibrary/rtems
bsps/arm/include: Silence warning in CMSIS file
Avoid a warning about missing void. Co-authored-by: Christian Mauderer <christian.mauderer@embedded-brains.de>
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
/*
|
||||
* The file was modified by RTEMS contributors.
|
||||
*/
|
||||
/******************************************************************************
|
||||
* @file mpu_armv8.h
|
||||
* @brief CMSIS MPU API for Armv8-M and Armv8.1-M MPU
|
||||
@@ -190,7 +193,11 @@ typedef struct {
|
||||
\brief Read MPU Type Register
|
||||
\return Number of MPU regions
|
||||
*/
|
||||
#ifndef __rtems__
|
||||
__STATIC_INLINE uint32_t ARM_MPU_TYPE()
|
||||
#else /* __rtems__ */
|
||||
__STATIC_INLINE uint32_t ARM_MPU_TYPE(void)
|
||||
#endif /* __rtems__ */
|
||||
{
|
||||
return ((MPU->TYPE) >> 8);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user