Skip to content

STM32: replace missing #ifdef DEVICE_xxx #9327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion targets/TARGET_STM/TARGET_STM32H7/can_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
extern "C" {
#endif

#ifdef DEVICE_CAN
#if DEVICE_CAN

#if defined(CAN3_BASE)

Expand Down
2 changes: 1 addition & 1 deletion targets/TARGET_STM/TARGET_STM32H7/common_objects.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct spi_s {
PinName pin_mosi;
PinName pin_sclk;
PinName pin_ssel;
#ifdef DEVICE_SPI_ASYNCH
#if DEVICE_SPI_ASYNCH
uint32_t event;
uint8_t transfer_type;
#endif
Expand Down
2 changes: 1 addition & 1 deletion targets/TARGET_STM/TARGET_STM32H7/i2c_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
extern "C" {
#endif

#ifdef DEVICE_I2C
#if DEVICE_I2C

#define I2C_IP_VERSION_V2

Expand Down
2 changes: 1 addition & 1 deletion targets/TARGET_STM/TARGET_STM32H7/pwmout_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "pwmout_api.h"
#include "pwmout_device.h"

#ifdef DEVICE_PWMOUT
#if DEVICE_PWMOUT

const pwm_apb_map_t pwm_apb_map_table[] =
{
Expand Down
2 changes: 1 addition & 1 deletion targets/TARGET_STM/TARGET_STM32H7/pwmout_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
extern "C" {
#endif

#ifdef DEVICE_PWMOUT
#if DEVICE_PWMOUT

typedef enum {
PWMOUT_ON_APB1 = 0,
Expand Down
2 changes: 1 addition & 1 deletion targets/TARGET_STM/TARGET_STM32L0/common_objects.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct spi_s {
PinName pin_mosi;
PinName pin_sclk;
PinName pin_ssel;
#ifdef DEVICE_SPI_ASYNCH
#if DEVICE_SPI_ASYNCH
uint32_t event;
uint8_t transfer_type;
#endif
Expand Down