Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit011056a

Browse files
committed
atmel-samd: Add support for SPI.
Also separate out the ASF config headers that are shared across all boards.
1 parent6986aa9 commit011056a

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 \
File renamed without changes.

‎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-
* \briefSleep manager configuration
4+
* \briefSAM 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-
#ifndefCONF_SLEEPMGR_H_INCLUDED
48-
#defineCONF_SLEEPMGR_H_INCLUDED
4947

50-
#defineCONFIG_SLEEPMGR_ENABLE
48+
#ifndefCONF_SPI_H_INCLUDED
49+
#defineCONF_SPI_H_INCLUDED
5150

52-
#endif/* CONF_SLEEPMGR_H_INCLUDED */
51+
#defineCONF_SPI_MASTER_ENABLE true
52+
#defineCONF_SPI_SLAVE_ENABLE false
53+
54+
#endif/* CONF_SPI_H_INCLUDED */
File renamed without changes.

‎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)

[8]ページ先頭

©2009-2025 Movatter.jp