Skip to content

Dev spi asynch stm #2888

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 6 commits into from
Oct 13, 2016
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
14 changes: 0 additions & 14 deletions targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/objects.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,6 @@ struct dac_s {
uint32_t channel;
};

struct spi_s {
SPIName spi;
uint32_t bits;
uint32_t cpol;
uint32_t cpha;
uint32_t mode;
uint32_t nss;
uint32_t br_presc;
PinName pin_miso;
PinName pin_mosi;
PinName pin_sclk;
PinName pin_ssel;
};

struct i2c_s {
I2CName i2c;
};
Expand Down
14 changes: 0 additions & 14 deletions targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/objects.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,6 @@ struct analogin_s {
uint32_t channel;
};

struct spi_s {
SPIName spi;
uint32_t bits;
uint32_t cpol;
uint32_t cpha;
uint32_t mode;
uint32_t nss;
uint32_t br_presc;
PinName pin_miso;
PinName pin_mosi;
PinName pin_sclk;
PinName pin_ssel;
};

struct i2c_s {
I2CName i2c;
};
Expand Down
14 changes: 0 additions & 14 deletions targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/objects.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,6 @@ struct analogin_s {
uint32_t channel;
};

struct spi_s {
SPIName spi;
uint32_t bits;
uint32_t cpol;
uint32_t cpha;
uint32_t mode;
uint32_t nss;
uint32_t br_presc;
PinName pin_miso;
PinName pin_mosi;
PinName pin_sclk;
PinName pin_ssel;
};

struct i2c_s {
I2CName i2c;
};
Expand Down
14 changes: 0 additions & 14 deletions targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/objects.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,6 @@ struct analogin_s {
uint32_t channel;
};

struct spi_s {
SPIName spi;
uint32_t bits;
uint32_t cpol;
uint32_t cpha;
uint32_t mode;
uint32_t nss;
uint32_t br_presc;
PinName pin_miso;
PinName pin_mosi;
PinName pin_sclk;
PinName pin_ssel;
};

struct i2c_s {
I2CName i2c;
};
Expand Down
14 changes: 0 additions & 14 deletions targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/objects.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,6 @@ struct analogin_s {
uint32_t channel;
};

struct spi_s {
SPIName spi;
uint32_t bits;
uint32_t cpol;
uint32_t cpha;
uint32_t mode;
uint32_t nss;
uint32_t br_presc;
PinName pin_miso;
PinName pin_mosi;
PinName pin_sclk;
PinName pin_ssel;
};

struct i2c_s {
I2CName i2c;
};
Expand Down
14 changes: 0 additions & 14 deletions targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/objects.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,6 @@ struct dac_s {
uint32_t channel;
};

struct spi_s {
SPIName spi;
uint32_t bits;
uint32_t cpol;
uint32_t cpha;
uint32_t mode;
uint32_t nss;
uint32_t br_presc;
PinName pin_miso;
PinName pin_mosi;
PinName pin_sclk;
PinName pin_ssel;
};

struct i2c_s {
I2CName i2c;
};
Expand Down
14 changes: 0 additions & 14 deletions targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/objects.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,6 @@ struct dac_s {
uint32_t channel;
};

struct spi_s {
SPIName spi;
uint32_t bits;
uint32_t cpol;
uint32_t cpha;
uint32_t mode;
uint32_t nss;
uint32_t br_presc;
PinName pin_miso;
PinName pin_mosi;
PinName pin_sclk;
PinName pin_ssel;
};

struct i2c_s {
I2CName i2c;
};
Expand Down
15 changes: 15 additions & 0 deletions targets/TARGET_STM/TARGET_STM32F0/common_objects.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,21 @@ struct pwmout_s {
uint8_t inverted;
};

struct spi_s {
SPI_HandleTypeDef handle;
IRQn_Type spiIRQ;
SPIName spi;
PinName pin_miso;
PinName pin_mosi;
PinName pin_sclk;
PinName pin_ssel;
#ifdef DEVICE_SPI_ASYNCH
uint32_t event;
uint8_t module;
uint8_t transfer_type;
#endif
};

struct serial_s {
UARTName uart;
int index; // Used by irq
Expand Down
Loading