Fixed and suppressed compiler warnings.

pull/1067/head
Jeremy Brodt 2015-04-23 12:36:07 -05:00
parent 809d8aa82b
commit 77d3559f88
3 changed files with 9 additions and 1 deletions

View File

@ -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;
}
}

View File

@ -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)}) },

View File

@ -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)}) },