diff options
| author | Dan Halbert <halbert@halwitz.org> | 2018-01-29 22:52:23 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2018-01-30 12:08:41 -0500 |
| commit | e550b024c5d3d6d5a7e739ae9dd2175756591f6e (patch) | |
| tree | 01fb3799bbd801ad26a3c7213ea62bac59e1c9db /shared-bindings/busio/SPI.h | |
| parent | a1e279a9d8bf537439ce643179b596e1da13daad (diff) | |
atmel-samd: Correct computation of SPI baud rate.
all: Add .frequency read-only property for busio.SPI to return actual frequency.
Fix esp8266/posix_helpers.c, which was not up to date for the new
long-lived/short-lived heap allocation scheme.
Diffstat (limited to 'shared-bindings/busio/SPI.h')
| -rw-r--r-- | shared-bindings/busio/SPI.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shared-bindings/busio/SPI.h b/shared-bindings/busio/SPI.h index b6e5c9b1b..555f32c92 100644 --- a/shared-bindings/busio/SPI.h +++ b/shared-bindings/busio/SPI.h @@ -58,4 +58,7 @@ extern bool common_hal_busio_spi_read(busio_spi_obj_t *self, uint8_t *data, size // Reads and write len bytes simultaneously. extern bool common_hal_busio_spi_transfer(busio_spi_obj_t *self, uint8_t *data_out, uint8_t *data_in, size_t len); +// Return actual SPI bus frequency. +uint32_t common_hal_busio_spi_get_frequency(busio_spi_obj_t* self); + #endif // MICROPY_INCLUDED_SHARED_BINDINGS_BUSIO_SPI_H |
