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 /ports/atmel-samd/peripherals.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 'ports/atmel-samd/peripherals.h')
| -rw-r--r-- | ports/atmel-samd/peripherals.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ports/atmel-samd/peripherals.h b/ports/atmel-samd/peripherals.h index 95bc1ec53..bb01bc1ac 100644 --- a/ports/atmel-samd/peripherals.h +++ b/ports/atmel-samd/peripherals.h @@ -32,7 +32,8 @@ #include "mpconfigport.h" // Routines common across chip families. -uint8_t samd_peripherals_baudrate_to_baud_reg_value(const uint32_t baudrate); +uint8_t samd_peripherals_spi_baudrate_to_baud_reg_value(const uint32_t baudrate); +uint32_t samd_peripherals_spi_baud_reg_value_to_baudrate(const uint8_t baud_reg_value); #ifdef SAMD21 #include "samd21_peripherals.h" |
