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_Silicon_Labs/TARGET_EFM32/objects.h
- Revision:
- 50:a417edff4437
- Parent:
- 0:9b334a45a8ff
- Child:
- 144:ef7eb2e8f9f7
--- a/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/objects.h Wed Jan 13 12:45:11 2016 +0000
+++ b/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/objects.h Fri Jan 15 07:45:16 2016 +0000
@@ -66,11 +66,6 @@
#if DEVICE_I2C
struct i2c_s {
I2C_TypeDef *i2c;
- int loc;
- uint8_t index;
- PinName sda;
- PinName scl;
- uint32_t clock;
#if DEVICE_I2C_ASYNCH
uint32_t events;
I2C_TransferSeq_TypeDef xfer;
@@ -88,10 +83,6 @@
#if DEVICE_PWMOUT
struct pwmout_s {
- //The period of the pulse in clock cycles
- uint16_t period_cycles;
- //The width of the pulse in clock cycles
- uint16_t width_cycles;
//Channel on TIMER
uint32_t channel;
PinName pin;
@@ -107,14 +98,17 @@
#endif
#if DEVICE_SERIAL
-#define SERIAL_NUM_UARTS (7)
-
struct serial_s {
union {
USART_TypeDef *uart;
LEUART_TypeDef *leuart;
} periph;
+#ifndef _SILICON_LABS_32B_PLATFORM_2
uint32_t location;
+#else
+ uint32_t location_tx;
+ uint32_t location_rx;
+#endif
PinName rx_pin;
PinName tx_pin;
#if DEVICE_SERIAL_ASYNCH
@@ -122,6 +116,7 @@
DMA_OPTIONS_t dmaOptionsTX;
DMA_OPTIONS_t dmaOptionsRX;
#endif
+ uint32_t sleep_blocked;
};
#endif
