Skip to content

Commit 877a3a1

Browse files
committed
STM32: replace missing #ifdef DEVICE_xxx
1 parent 7addb80 commit 877a3a1

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

targets/TARGET_STM/TARGET_STM32H7/can_device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
extern "C" {
2424
#endif
2525

26-
#ifdef DEVICE_CAN
26+
#if DEVICE_CAN
2727

2828
#if defined(CAN3_BASE)
2929

targets/TARGET_STM/TARGET_STM32H7/common_objects.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ struct spi_s {
5757
PinName pin_mosi;
5858
PinName pin_sclk;
5959
PinName pin_ssel;
60-
#ifdef DEVICE_SPI_ASYNCH
60+
#if DEVICE_SPI_ASYNCH
6161
uint32_t event;
6262
uint8_t transfer_type;
6363
#endif

targets/TARGET_STM/TARGET_STM32H7/i2c_device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
extern "C" {
3737
#endif
3838

39-
#ifdef DEVICE_I2C
39+
#if DEVICE_I2C
4040

4141
#define I2C_IP_VERSION_V2
4242

targets/TARGET_STM/TARGET_STM32H7/pwmout_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include "pwmout_api.h"
3232
#include "pwmout_device.h"
3333

34-
#ifdef DEVICE_PWMOUT
34+
#if DEVICE_PWMOUT
3535

3636
const pwm_apb_map_t pwm_apb_map_table[] =
3737
{

targets/TARGET_STM/TARGET_STM32H7/pwmout_device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
extern "C" {
3737
#endif
3838

39-
#ifdef DEVICE_PWMOUT
39+
#if DEVICE_PWMOUT
4040

4141
typedef enum {
4242
PWMOUT_ON_APB1 = 0,

targets/TARGET_STM/TARGET_STM32L0/common_objects.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ struct spi_s {
5757
PinName pin_mosi;
5858
PinName pin_sclk;
5959
PinName pin_ssel;
60-
#ifdef DEVICE_SPI_ASYNCH
60+
#if DEVICE_SPI_ASYNCH
6161
uint32_t event;
6262
uint8_t transfer_type;
6363
#endif

0 commit comments

Comments
 (0)