STM32 warning remove

pull/12860/head
jeromecoutant 2020-04-17 17:56:01 +02:00
parent 227af65ef1
commit bc4bc05908
2 changed files with 0 additions and 2 deletions

View File

@ -562,7 +562,6 @@ i2c_t *get_i2c_obj(I2C_HandleTypeDef *hi2c)
void i2c_reset(i2c_t *obj) void i2c_reset(i2c_t *obj)
{ {
struct i2c_s *obj_s = I2C_S(obj);
/* As recommended in i2c_api.h, mainly send stop */ /* As recommended in i2c_api.h, mainly send stop */
i2c_stop(obj); i2c_stop(obj);
/* then re-init */ /* then re-init */

View File

@ -105,7 +105,6 @@ void spi_get_capabilities(PinName ssel, bool slave, spi_capabilities_t *cap)
// check if given ssel pin is in the cs pinmap // check if given ssel pin is in the cs pinmap
const PinMap *cs_pins = spi_master_cs_pinmap(); const PinMap *cs_pins = spi_master_cs_pinmap();
PinName pin = NC;
while (cs_pins->pin != NC) { while (cs_pins->pin != NC) {
if (cs_pins->pin == ssel) { if (cs_pins->pin == ssel) {
#if DEVICE_SPISLAVE #if DEVICE_SPISLAVE