Skip to content

Commit 1807983

Browse files
LMESTMc1728p9
authored andcommitted
Update objects definition
STM32F303ZE was introduced in parallel to the changes which consist in having family wide definitions like device.h file and a common objects definition. This target is updated accordingly now to benefit of SPI definitions.
1 parent 37f84ca commit 1807983

File tree

2 files changed

+1
-75
lines changed

2 files changed

+1
-75
lines changed

targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/device.h

Lines changed: 0 additions & 54 deletions
This file was deleted.

targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/objects.h

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -66,37 +66,17 @@ struct dac_s {
6666
uint32_t channel;
6767
};
6868

69-
struct serial_s {
70-
UARTName uart;
71-
int index; // Used by irq
72-
uint32_t baudrate;
73-
uint32_t databits;
74-
uint32_t stopbits;
75-
uint32_t parity;
76-
PinName pin_tx;
77-
PinName pin_rx;
78-
};
79-
8069
struct i2c_s {
8170
I2CName i2c;
8271
uint32_t slave;
8372
};
8473

85-
struct pwmout_s {
86-
PWMName pwm;
87-
PinName pin;
88-
uint32_t prescaler;
89-
uint32_t period;
90-
uint32_t pulse;
91-
uint32_t channel;
92-
uint32_t inverted;
93-
};
94-
9574
struct can_s {
9675
CANName can;
9776
int index;
9877
};
9978

79+
#include "common_objects.h"
10080
#include "gpio_object.h"
10181

10282
#ifdef __cplusplus

0 commit comments

Comments
 (0)