Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
18c6824b
Commit
18c6824b
authored
8 years ago
by
Hauke Petersen
Browse files
Options
Downloads
Patches
Plain Diff
boards/arduino-due: added config for W5100 shields
parent
fb24f6d2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
boards/arduino-due/include/w5100_params.h
+62
-0
62 additions, 0 deletions
boards/arduino-due/include/w5100_params.h
with
62 additions
and
0 deletions
boards/arduino-due/include/w5100_params.h
0 → 100644
+
62
−
0
View file @
18c6824b
/*
* Copyright (C) 2016 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup boards_arduino-due
* @{
*
* @file
* @brief Parameters for W5100 Arduino Ehternet Shields (v4 and v5)
*
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/
#ifndef W5100_PARAMS_H
#define W5100_PARAMS_H
#ifdef __cplusplus
extern
"C"
{
#endif
/**
* @brief Set configuration parameters for the W5100 driver
* @{
*/
#ifndef W5100_PARAM_SPI
#define W5100_PARAM_SPI (SPI_0)
#endif
#ifndef W5100_PARAM_SPI_SPEED
#define W5100_PARAM_SPI_SPEED (SPI_SPEED_5MHZ)
#endif
#ifndef W5100_PARAM_CS
#define W5100_PARAM_CS (GPIO_PIN(2, 29))
#endif
#ifndef W5100_PARAM_EVT
#define W5100_PARAM_EVT (GPIO_PIN(1, 25))
#endif
/** @} */
/**
* @brief W5100 configuration instance
*/
static
const
w5100_params_t
w5100_params
[]
=
{
{
.
spi
=
W5100_PARAM_SPI
,
.
spi_speed
=
W5100_PARAM_SPI_SPEED
,
.
cs
=
W5100_PARAM_CS
,
.
evt
=
W5100_PARAM_EVT
},
};
/** @} */
#ifdef __cplusplus
}
#endif
#endif
/* W5100_PARAMS_H */
/** @} */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment