summaryrefslogtreecommitdiff
path: root/ports/atmel-samd/peripherals.h
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2017-11-22 23:07:21 -0500
committerDan Halbert <halbert@halwitz.org>2017-11-27 21:00:24 -0500
commit72c911be972d63a5032fa02ecb74d173bf9ef34f (patch)
tree5f09ff39c086dc35d5fe77820a33a8e61e3ae176 /ports/atmel-samd/peripherals.h
parentfb1dcd326dbca2bfe7452f1f9c3d94dc25612e30 (diff)
Support SPI flash chips for CIRCUITPY, using non-DMA SPI for now.
Diffstat (limited to 'ports/atmel-samd/peripherals.h')
-rw-r--r--ports/atmel-samd/peripherals.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/atmel-samd/peripherals.h b/ports/atmel-samd/peripherals.h
index 03828ae74..95bc1ec53 100644
--- a/ports/atmel-samd/peripherals.h
+++ b/ports/atmel-samd/peripherals.h
@@ -27,8 +27,13 @@
#ifndef MICROPY_INCLUDED_ATMEL_SAMD_PERIPHERALS_H
#define MICROPY_INCLUDED_ATMEL_SAMD_PERIPHERALS_H
+#include <stdint.h>
+
#include "mpconfigport.h"
+// Routines common across chip families.
+uint8_t samd_peripherals_baudrate_to_baud_reg_value(const uint32_t baudrate);
+
#ifdef SAMD21
#include "samd21_peripherals.h"
#endif