Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions targets/TARGET_ARM_FM/TARGET_FVP_MPS2/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
* limitations under the License.
*/
#include "i2c_api.h"

#if DEVICE_I2C

#include "cmsis.h"
#include "pinmap.h"
#include "mbed_error.h"
Expand Down Expand Up @@ -607,3 +610,5 @@ const PinMap *i2c_slave_scl_pinmap()
{
return PinMap_I2C_SCL;
}

#endif // #if DEVICE_I2C
5 changes: 5 additions & 0 deletions targets/TARGET_ARM_SSG/TARGET_CM3DS_MPS2/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
* limitations under the License.
*/
#include "i2c_api.h"

#if DEVICE_I2C

#include "cmsis.h"
#include "mbed_error.h"
#include "mbed_wait_api.h"
Expand Down Expand Up @@ -291,3 +294,5 @@ const PinMap *i2c_slave_scl_pinmap()
{
return PinMap_I2C_SCL;
}

#endif // #if DEVICE_I2C
5 changes: 5 additions & 0 deletions targets/TARGET_ARM_SSG/TARGET_IOTSS/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
* limitations under the License.
*/
#include "i2c_api.h"

#if DEVICE_I2C

#include "cmsis.h"
#include "pinmap.h"
#include "mbed_error.h"
Expand Down Expand Up @@ -541,3 +544,5 @@ const PinMap *i2c_slave_scl_pinmap()
{
return PinMap_I2C_SCL;
}

#endif // #if DEVICE_I2C
5 changes: 5 additions & 0 deletions targets/TARGET_ARM_SSG/TARGET_MPS2/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
* limitations under the License.
*/
#include "i2c_api.h"

#if DEVICE_I2C

#include "cmsis.h"
#include "pinmap.h"
#include "mbed_error.h"
Expand Down Expand Up @@ -551,3 +554,5 @@ const PinMap *i2c_slave_scl_pinmap()
{
return PinMap_I2C_SCL;
}

#endif // #if DEVICE_I2C
4 changes: 4 additions & 0 deletions targets/TARGET_Atmel/TARGET_SAM_CortexM0P/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include "mbed_assert.h"
#include "i2c_api.h"

#if DEVICE_I2C

#include <math.h>

#include "cmsis.h"
Expand Down Expand Up @@ -1013,3 +1015,5 @@ void i2c_abort_asynch(i2c_t *obj)
}

#endif

#endif // #if DEVICE_I2C
6 changes: 5 additions & 1 deletion targets/TARGET_Atmel/TARGET_SAM_CortexM4/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "i2c_api.h"

#if DEVICE_I2C

#include "device.h"
#include "buffer.h"
#include "dma_api.h"
#include "i2c_api.h"
#include "PeripheralPins.h"
#include "twi.h"
#include "pdc.h"
Expand Down Expand Up @@ -733,3 +735,5 @@ void i2c_abort_asynch(i2c_t *obj)
}

#endif

#endif // #if DEVICE_I2C
9 changes: 7 additions & 2 deletions targets/TARGET_Cypress/TARGET_PSOC6/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "mbed_assert.h"
#include "i2c_api.h"

#if DEVICE_I2C

#include "cmsis.h"
#include "mbed_assert.h"
#include "mbed_error.h"
#include "PeripheralPins.h"
#include "pinmap.h"
#include "i2c_api.h"

#include "psoc6_utils.h"

#include "cy_sysclk.h"
Expand Down Expand Up @@ -652,3 +655,5 @@ void i2c_abort_asynch(i2c_t *obj_in)
}

#endif // DEVICE_ASYNCH

#endif // #if DEVICE_I2C
8 changes: 6 additions & 2 deletions targets/TARGET_Cypress/TARGET_PSOC6_FUTURE/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "mbed_assert.h"
#include "i2c_api.h"

#if DEVICE_I2C

#include "cmsis.h"
#include "mbed_assert.h"
#include "mbed_error.h"
#include "PeripheralPins.h"
#include "pinmap.h"
#include "i2c_api.h"
#include "psoc6_utils.h"

#include "cy_sysclk.h"
Expand Down Expand Up @@ -566,3 +568,5 @@ void i2c_abort_asynch(i2c_t *obj_in)
}

#endif // DEVICE_ASYNCH

#endif // #if DEVICE_I2C
4 changes: 4 additions & 0 deletions targets/TARGET_Freescale/TARGET_K20XX/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include "mbed_assert.h"
#include "i2c_api.h"

#if DEVICE_I2C

#include "cmsis.h"
#include "pinmap.h"
#include "clk_freqs.h"
Expand Down Expand Up @@ -390,3 +392,5 @@ void i2c_slave_address(i2c_t *obj, int idx, uint32_t address, uint32_t mask) {
obj->i2c->A1 = address & 0xfe;
}
#endif

#endif // #if DEVICE_I2C
3 changes: 3 additions & 0 deletions targets/TARGET_Freescale/TARGET_KLXX/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include "mbed_assert.h"
#include "i2c_api.h"

#if DEVICE_I2C

#include "cmsis.h"
#include "pinmap.h"
#include "clk_freqs.h"
Expand Down Expand Up @@ -401,3 +403,4 @@ void i2c_slave_address(i2c_t *obj, int idx, uint32_t address, uint32_t mask) {
}
#endif

#endif // #if DEVICE_I2C
5 changes: 5 additions & 0 deletions targets/TARGET_Maxim/TARGET_MAX32600/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@

#include "mbed_assert.h"
#include "i2c_api.h"

#if DEVICE_I2C

#include "cmsis.h"
#include "i2cm_regs.h"
#include "clkman_regs.h"
Expand Down Expand Up @@ -446,3 +449,5 @@ const PinMap *i2c_slave_scl_pinmap()
{
return PinMap_I2C_SCL;
}

#endif // #if DEVICE_I2C
5 changes: 5 additions & 0 deletions targets/TARGET_Maxim/TARGET_MAX32610/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@

#include "mbed_assert.h"
#include "i2c_api.h"

#if DEVICE_I2C

#include "cmsis.h"
#include "i2cm_regs.h"
#include "clkman_regs.h"
Expand Down Expand Up @@ -446,3 +449,5 @@ const PinMap *i2c_slave_scl_pinmap()
{
return PinMap_I2C_SCL;
}

#endif // #if DEVICE_I2C
5 changes: 5 additions & 0 deletions targets/TARGET_Maxim/TARGET_MAX32620/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@

#include "mbed_assert.h"
#include "i2c_api.h"

#if DEVICE_I2C

#include "cmsis.h"
#include "i2cm_regs.h"
#include "clkman_regs.h"
Expand Down Expand Up @@ -450,3 +453,5 @@ const PinMap *i2c_slave_scl_pinmap()
{
return PinMap_I2C_SCL;
}

#endif // #if DEVICE_I2C
5 changes: 5 additions & 0 deletions targets/TARGET_Maxim/TARGET_MAX32620C/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@

#include "mbed_assert.h"
#include "i2c_api.h"

#if DEVICE_I2C

#include "i2cm_regs.h"
#include "i2cm.h"
#include "pinmap.h"
Expand Down Expand Up @@ -225,3 +228,5 @@ const PinMap *i2c_slave_scl_pinmap()
{
return PinMap_I2C_SCL;
}

#endif // #if DEVICE_I2C
5 changes: 5 additions & 0 deletions targets/TARGET_Maxim/TARGET_MAX32625/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@

#include "mbed_assert.h"
#include "i2c_api.h"

#if DEVICE_I2C

#include "i2cm_regs.h"
#include "i2cm.h"
#include "pinmap.h"
Expand Down Expand Up @@ -226,3 +229,5 @@ const PinMap *i2c_slave_scl_pinmap()
{
return PinMap_I2C_SCL;
}

#endif // #if DEVICE_I2C
5 changes: 5 additions & 0 deletions targets/TARGET_Maxim/TARGET_MAX32630/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@

#include "mbed_assert.h"
#include "i2c_api.h"

#if DEVICE_I2C

#include "i2cm_regs.h"
#include "i2cm.h"
#include "pinmap.h"
Expand Down Expand Up @@ -225,3 +228,5 @@ const PinMap *i2c_slave_scl_pinmap()
{
return PinMap_I2C_SCL;
}

#endif // #if DEVICE_I2C
5 changes: 5 additions & 0 deletions targets/TARGET_NORDIC/TARGET_MCU_NRF51822/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
*/
#include "mbed_assert.h"
#include "i2c_api.h"

#if DEVICE_I2C

#include "cmsis.h"
#include "pinmap.h"
#include "twi_master.h"
Expand Down Expand Up @@ -361,3 +364,5 @@ const PinMap *i2c_slave_scl_pinmap()
{
return PinMap_I2C_testing;
}

#endif // #if DEVICE_I2C
5 changes: 5 additions & 0 deletions targets/TARGET_NXP/TARGET_LPC11UXX/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
*/
#include "mbed_assert.h"
#include "i2c_api.h"

#if DEVICE_I2C

#include "cmsis.h"
#include "pinmap.h"
#include "PeripheralPins.h" // For the Peripheral to Pin Definitions found in the individual Target's Platform
Expand Down Expand Up @@ -399,3 +402,5 @@ const PinMap *i2c_slave_scl_pinmap()
{
return PinMap_I2C_SCL;
}

#endif // #if DEVICE_I2C
5 changes: 5 additions & 0 deletions targets/TARGET_NXP/TARGET_LPC11XX_11CXX/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
*/
#include "mbed_assert.h"
#include "i2c_api.h"

#if DEVICE_I2C

#include "cmsis.h"
#include "pinmap.h"
#include "mbed_error.h"
Expand Down Expand Up @@ -411,3 +414,5 @@ const PinMap *i2c_slave_scl_pinmap()
{
return PinMap_I2C_SCL;
}

#endif // #if DEVICE_I2C
5 changes: 5 additions & 0 deletions targets/TARGET_NXP/TARGET_LPC13XX/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
*/
#include "mbed_assert.h"
#include "i2c_api.h"

#if DEVICE_I2C

#include "cmsis.h"
#include "pinmap.h"
#include "mbed_error.h"
Expand Down Expand Up @@ -410,3 +413,5 @@ const PinMap *i2c_slave_scl_pinmap()
{
return PinMap_I2C_SCL;
}

#endif // #if DEVICE_I2C
5 changes: 5 additions & 0 deletions targets/TARGET_NXP/TARGET_LPC15XX/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
*/
#include "mbed_assert.h"
#include "i2c_api.h"

#if DEVICE_I2C

#include "cmsis.h"
#include "pinmap.h"

Expand Down Expand Up @@ -247,3 +250,5 @@ const PinMap *i2c_slave_scl_pinmap()
{
return PinMap_I2C_SCL;
}

#endif // #if DEVICE_I2C
5 changes: 5 additions & 0 deletions targets/TARGET_NXP/TARGET_LPC176X/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
*/
#include "mbed_assert.h"
#include "i2c_api.h"

#if DEVICE_I2C

#include "cmsis.h"
#include "pinmap.h"

Expand Down Expand Up @@ -425,3 +428,5 @@ const PinMap *i2c_slave_scl_pinmap()
{
return PinMap_I2C_SCL;
}

#endif // #if DEVICE_I2C
5 changes: 5 additions & 0 deletions targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/i2c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
*/
#include "mbed_assert.h"
#include "i2c_api.h"

#if DEVICE_I2C

#include "cmsis.h"
#include "pinmap.h"

Expand Down Expand Up @@ -440,3 +443,5 @@ const PinMap *i2c_slave_scl_pinmap()
{
return PinMap_I2C_SCL;
}

#endif // #if DEVICE_I2C
Loading