Skip to content

Commit 0617b11

Browse files
committed
Merge pull request #241 from dinau/DISCO-fixed-compilation-error
[GCC_ARM][DISCO]: Modified compilatin error and silent warning.
2 parents ad1ef13 + bf8dc9f commit 0617b11

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

libraries/mbed/targets/hal/TARGET_STM/TARGET_DISCO_F051R8/i2c_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ void i2c_init(i2c_t *obj, PinName sda, PinName scl) {
8686
void i2c_frequency(i2c_t *obj, int hz) {
8787
I2C_TypeDef *i2c = (I2C_TypeDef *)(obj->i2c);
8888
I2C_InitTypeDef I2C_InitStructure;
89-
uint32_t tim;
89+
uint32_t tim = 0;
9090

9191
// Values calculated with I2C_Timing_Configuration_V1.0.1.xls file (see AN4235)
9292
// with Rise time = 100ns and Fall time = 10ns

libraries/mbed/targets/hal/TARGET_STM/TARGET_DISCO_F051R8/pinmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
*******************************************************************************
2929
*/
30+
#include "device.h"
3031
#include "pinmap.h"
3132
#include "error.h"
3233

libraries/mbed/targets/hal/TARGET_STM/TARGET_DISCO_F100RB/pinmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
*******************************************************************************
2929
*/
30+
#include "device.h"
3031
#include "pinmap.h"
3132
#include "error.h"
3233

libraries/mbed/targets/hal/TARGET_STM/TARGET_DISCO_F407VG/pinmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
*******************************************************************************
2929
*/
30+
#include "device.h"
3031
#include "pinmap.h"
3132
#include "error.h"
3233
#include "stm32f4xx_hal.h"

0 commit comments

Comments
 (0)