diff options
| author | Damien George <damien.p.george@gmail.com> | 2016-12-08 13:58:10 +1100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2016-12-08 13:58:10 +1100 |
| commit | 1b6d94bccdd95904a85e8aa689b0844ab55a61bf (patch) | |
| tree | b2fc34d8dcd63a33398a40148e5b6ebd62b067bc /stmhal/mpconfigport.h | |
| parent | 1eb3c66e9136b5934fc306408f00f11a07dea584 (diff) | |
stmhal: Refactor to use extmod implementation of software SPI class.
This is a pure refactoring (and simplification) of code so that stmhal
uses the software SPI class provided in extmod, for the machine.SPI
implementation.
Diffstat (limited to 'stmhal/mpconfigport.h')
| -rw-r--r-- | stmhal/mpconfigport.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stmhal/mpconfigport.h b/stmhal/mpconfigport.h index 0e3098095..493df7874 100644 --- a/stmhal/mpconfigport.h +++ b/stmhal/mpconfigport.h @@ -105,6 +105,9 @@ #define MICROPY_PY_MACHINE_I2C (1) #define MICROPY_PY_MACHINE_I2C_MAKE_NEW machine_hard_i2c_make_new #define MICROPY_PY_MACHINE_SPI (1) +#define MICROPY_PY_MACHINE_SPI_MSB (SPI_FIRSTBIT_MSB) +#define MICROPY_PY_MACHINE_SPI_LSB (SPI_FIRSTBIT_LSB) +#define MICROPY_PY_MACHINE_SPI_MAKE_NEW machine_hard_spi_make_new #define MICROPY_PY_MACHINE_SPI_MIN_DELAY (0) #define MICROPY_PY_MACHINE_SPI_MAX_BAUDRATE (HAL_RCC_GetSysClockFreq() / 48) #define MICROPY_PY_FRAMEBUF (1) |
