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
d339a840
Commit
d339a840
authored
9 years ago
by
Thomas Eichinger
Committed by
Hauke Petersen
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
msb-430: add missing SPI periph_conf definitions
parent
c9dcb160
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
boards/msb-430/include/periph_conf.h
+20
-0
20 additions, 0 deletions
boards/msb-430/include/periph_conf.h
with
20 additions
and
0 deletions
boards/msb-430/include/periph_conf.h
+
20
−
0
View file @
d339a840
...
...
@@ -66,6 +66,26 @@ extern "C" {
#define UART_TX_ISR (USART1TX_VECTOR)
/** @} */
/**
* @brief SPI configuration
* @{
*/
#define SPI_NUMOF (1U)
#define SPI_0_EN (1U)
/* SPI configuration */
#define SPI_DEV (USART_0)
#define SPI_IE (SFR->IE1)
#define SPI_IF (SFR->IFG1)
#define SPI_IE_RX_BIT (1 << 6)
#define SPI_IE_TX_BIT (1 << 7)
#define SPI_ME (SFR->ME1)
#define SPI_ME_BIT (1 << 6)
#define SPI_PIN_MISO GPIO(P5,2)
#define SPI_PIN_MOSI GPIO(P5,1)
#define SPI_PIN_CLK GPIO(P5,3)
/** @} */
#ifdef __cplusplus
}
#endif
...
...
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