diff --git a/libraries/mbed/common/pinmap_common.c b/libraries/mbed/common/pinmap_common.c index 736e8448fd..5aab0e6176 100644 --- a/libraries/mbed/common/pinmap_common.c +++ b/libraries/mbed/common/pinmap_common.c @@ -86,4 +86,4 @@ uint32_t pinmap_function(PinName pin, const PinMap* map) { if ((uint32_t)NC == function) // no mapping available error("pinmap not found for function"); return function; -} \ No newline at end of file +} diff --git a/libraries/mbed/targets/hal/TARGET_Maxim/TARGET_MAX32600/PeripheralPins.c b/libraries/mbed/targets/hal/TARGET_Maxim/TARGET_MAX32600/PeripheralPins.c index f32942d57f..fe9fccc2be 100644 --- a/libraries/mbed/targets/hal/TARGET_Maxim/TARGET_MAX32600/PeripheralPins.c +++ b/libraries/mbed/targets/hal/TARGET_Maxim/TARGET_MAX32600/PeripheralPins.c @@ -45,6 +45,10 @@ * the pointers to the "function" data members. */ +#ifdef TOOLCHAIN_ARM_STD +#pragma diag_suppress 1296 +#endif + /************I2C***************/ const PinMap PinMap_I2C_SDA[] = { { P2_4, I2C_0, (int)&((pin_function_t){&MXC_IOMAN->i2cm0_req, &MXC_IOMAN->i2cm0_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_A | MXC_F_IOMAN_I2CM_CORE_IO), (MXC_F_IOMAN_I2CM_MAPPING | MXC_F_IOMAN_I2CM_CORE_IO)}) }, diff --git a/libraries/mbed/targets/hal/TARGET_Maxim/TARGET_MAX32610/PeripheralPins.c b/libraries/mbed/targets/hal/TARGET_Maxim/TARGET_MAX32610/PeripheralPins.c index def88c99aa..65ca064048 100644 --- a/libraries/mbed/targets/hal/TARGET_Maxim/TARGET_MAX32610/PeripheralPins.c +++ b/libraries/mbed/targets/hal/TARGET_Maxim/TARGET_MAX32610/PeripheralPins.c @@ -45,6 +45,10 @@ * the pointers to the "function" data members. */ +#ifdef TOOLCHAIN_ARM_STD +#pragma diag_suppress 1296 +#endif + /************I2C***************/ const PinMap PinMap_I2C_SDA[] = { { P0_4, I2C_0, (int)&((pin_function_t){&MXC_IOMAN->i2cm0_req, &MXC_IOMAN->i2cm0_ack, ((uint32_t)MXC_E_IOMAN_MAPPING_D | MXC_F_IOMAN_I2CM_CORE_IO), (MXC_F_IOMAN_I2CM_MAPPING | MXC_F_IOMAN_I2CM_CORE_IO)}) },