Skip to content

Commit 011056a

Browse files
committed
atmel-samd: Add support for SPI.
Also separate out the ASF config headers that are shared across all boards.
1 parent 6986aa9 commit 011056a

File tree

16 files changed

+275
-551
lines changed

16 files changed

+275
-551
lines changed

atmel-samd/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ INC += -I..
3232
INC += -I../lib/mp-readline
3333
INC += -I../lib/timeutils
3434
INC += -Icommon-hal/modules/
35+
INC += -Iasf_conf/
3536
INC += -Iasf/common/boards/
3637
INC += -Iasf/common/services/sleepmgr/
3738
INC += -Iasf/common/services/storage/ctrl_access/
@@ -117,6 +118,7 @@ SRC_ASF = $(addprefix asf/sam0/,\
117118
drivers/sercom/i2c/i2c_sam0/i2c_master.c \
118119
drivers/sercom/sercom.c \
119120
drivers/sercom/sercom_interrupt.c \
121+
drivers/sercom/spi/spi.c \
120122
drivers/sercom/usart/usart.c \
121123
drivers/sercom/usart/usart_interrupt.c \
122124
drivers/system/clock/clock_samd21_r21_da/clock.c \

atmel-samd/boards/metro_m0_flash/conf_sleepmgr.h renamed to atmel-samd/asf_conf/conf_spi.h

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
22
* \file
33
*
4-
* \brief Sleep manager configuration
4+
* \brief SAM D21 SPI configuration
55
*
6-
* Copyright (c) 2014-2015 Atmel Corporation. All rights reserved.
6+
* Copyright (C) 2013-2016 Atmel Corporation. All rights reserved.
77
*
88
* \asf_license_start
99
*
@@ -44,9 +44,11 @@
4444
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
4545
*/
4646

47-
#ifndef CONF_SLEEPMGR_H_INCLUDED
48-
#define CONF_SLEEPMGR_H_INCLUDED
4947

50-
#define CONFIG_SLEEPMGR_ENABLE
48+
#ifndef CONF_SPI_H_INCLUDED
49+
#define CONF_SPI_H_INCLUDED
5150

52-
#endif /* CONF_SLEEPMGR_H_INCLUDED */
51+
#define CONF_SPI_MASTER_ENABLE true
52+
#define CONF_SPI_SLAVE_ENABLE false
53+
54+
#endif /* CONF_SPI_H_INCLUDED */

atmel-samd/boards/feather_m0_bluefruit_le/conf_clocks.h

Lines changed: 0 additions & 197 deletions
This file was deleted.

atmel-samd/boards/feather_m0_bluefruit_le/conf_sleepmgr.h

Lines changed: 0 additions & 52 deletions
This file was deleted.

atmel-samd/boards/feather_m0_bluefruit_le/user_board.h

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy