From f98bc9bb4ebdab19834a7dd1c8cd8984181d3d3e Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Mon, 25 Oct 2021 16:04:10 -0400 Subject: steps toward SPI support in watch library --- watch-library/config/hpl_sercom_config.h | 4 ++-- watch-library/hw/driver_init.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'watch-library') 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 @@ // Advanced Configuration // spi_master_advanced #ifndef CONF_SERCOM_3_SPI_ADVANCED -#define CONF_SERCOM_3_SPI_ADVANCED 0 +#define CONF_SERCOM_3_SPI_ADVANCED 1 #endif // 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 #include #include +#include #include #include -- cgit v1.2.3