The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: TARGET_MTS_MDOT_F411RE/TARGET_STM/TARGET_STM32F4/common_objects.h
- Revision:
- 127:25aea2a3f4e3
- Parent:
- 124:2241e3a39974
- Child:
- 130:d75b3fe1f5cb
--- a/TARGET_MTS_MDOT_F411RE/TARGET_STM/TARGET_STM32F4/common_objects.h Fri Sep 16 13:57:13 2016 +0100 +++ b/TARGET_MTS_MDOT_F411RE/TARGET_STM/TARGET_STM32F4/common_objects.h Fri Sep 30 16:49:46 2016 +0100 @@ -68,6 +68,36 @@ #endif }; +struct spi_s { + SPI_HandleTypeDef handle; + IRQn_Type spiIRQ; + SPIName spi; + PinName pin_miso; + PinName pin_mosi; + PinName pin_sclk; + PinName pin_ssel; +#ifdef DEVICE_SPI_ASYNCH + uint32_t event; + uint8_t module; + uint8_t transfer_type; +#endif +}; + +struct i2c_s { + I2CName i2c; + I2C_HandleTypeDef handle; + IRQn_Type event_i2cIRQ; + IRQn_Type error_i2cIRQ; + uint8_t slave; +#if DEVICE_I2C_ASYNCH + uint32_t address; + uint8_t event; + uint8_t stop; + uint8_t available_events; + uint8_t XferOperation; +#endif +}; + #include "gpio_object.h" #ifdef __cplusplus