diff options
author | Joey Castillo <jose.castillo@gmail.com> | 2021-10-25 16:04:10 -0400 |
---|---|---|
committer | Joey Castillo <jose.castillo@gmail.com> | 2021-10-25 16:06:08 -0400 |
commit | f98bc9bb4ebdab19834a7dd1c8cd8984181d3d3e (patch) | |
tree | f158284fb3ecce9291b969b244a3d45f45951528 /watch-library | |
parent | 22c072ac3f4fb450315b204dc4a6f2644c8665a7 (diff) | |
download | Sensor-Watch-f98bc9bb4ebdab19834a7dd1c8cd8984181d3d3e.tar.gz Sensor-Watch-f98bc9bb4ebdab19834a7dd1c8cd8984181d3d3e.tar.bz2 Sensor-Watch-f98bc9bb4ebdab19834a7dd1c8cd8984181d3d3e.zip |
steps toward SPI support in watch library
Diffstat (limited to 'watch-library')
-rw-r--r-- | watch-library/config/hpl_sercom_config.h | 4 | ||||
-rw-r--r-- | watch-library/hw/driver_init.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/watch-library/config/hpl_sercom_config.h b/watch-library/config/hpl_sercom_config.h index a0eb1206..6df4b08e 100644 --- a/watch-library/config/hpl_sercom_config.h +++ b/watch-library/config/hpl_sercom_config.h @@ -143,7 +143,7 @@ // Enable configuration of module #ifndef CONF_SERCOM_3_SPI_ENABLE -#define CONF_SERCOM_3_SPI_ENABLE 0 +#define CONF_SERCOM_3_SPI_ENABLE 1 #endif // Set module in SPI Master mode @@ -180,7 +180,7 @@ // <e> Advanced Configuration // <id> spi_master_advanced #ifndef CONF_SERCOM_3_SPI_ADVANCED -#define CONF_SERCOM_3_SPI_ADVANCED 0 +#define CONF_SERCOM_3_SPI_ADVANCED 1 #endif // <o> Dummy byte <0x00-0x1ff> diff --git a/watch-library/hw/driver_init.h b/watch-library/hw/driver_init.h index 002f07aa..fc6cc208 100644 --- a/watch-library/hw/driver_init.h +++ b/watch-library/hw/driver_init.h @@ -32,6 +32,7 @@ extern "C" { #include <hal_sleep.h> #include <hal_ext_irq.h> #include <hal_i2c_m_sync.h> +#include <hal_spi_m_sync.h> #include <hal_delay.h> #include <hal_slcd_sync.h> |