Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
Diff: targets/hal/TARGET_STM/TARGET_STM32F4/common_objects.h
- Revision:
- 148:21d94c44109e
- Parent:
- 144:ef7eb2e8f9f7
diff -r 30b64687e01f -r 21d94c44109e targets/hal/TARGET_STM/TARGET_STM32F4/common_objects.h
--- a/targets/hal/TARGET_STM/TARGET_STM32F4/common_objects.h Fri Sep 16 16:24:25 2016 +0100
+++ b/targets/hal/TARGET_STM/TARGET_STM32F4/common_objects.h Fri Sep 30 18:07:01 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
