diff options
| author | Damien George <damien@micropython.org> | 2021-09-02 12:39:28 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-09-02 13:11:23 +1000 |
| commit | afe0634c989d81f0c887308a7bc152061cb5d319 (patch) | |
| tree | 24d93b633842560249f5ceb64f01ca799bf6c080 /py/mpconfig.h | |
| parent | 122d901ef1b624c26771532cb4725eaa8f85e0f4 (diff) | |
extmod/machine_spi: Make SoftSPI configurable via macro option.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/mpconfig.h')
| -rw-r--r-- | py/mpconfig.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index cc302c3cb..288b10537 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -1494,6 +1494,11 @@ typedef double mp_float_t; #define MICROPY_PY_MACHINE_SPI (0) #endif +// Whether to provide the "machine.SoftSPI" class +#ifndef MICROPY_PY_MACHINE_SOFTSPI +#define MICROPY_PY_MACHINE_SOFTSPI (0) +#endif + #ifndef MICROPY_PY_USSL #define MICROPY_PY_USSL (0) // Whether to add finaliser code to ussl objects |
