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
663be83b
Commit
663be83b
authored
9 years ago
by
Hauke Petersen
Browse files
Options
Downloads
Patches
Plain Diff
boards/native: updated LED macros
parent
35cc73f4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
boards/native/board_init.c
+2
-2
2 additions, 2 deletions
boards/native/board_init.c
boards/native/include/board.h
+12
-6
12 additions, 6 deletions
boards/native/include/board.h
with
14 additions
and
8 deletions
boards/native/board_init.c
+
2
−
2
View file @
663be83b
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
*/
*/
void
board_init
(
void
)
void
board_init
(
void
)
{
{
LED
_GREEN
_OFF
;
LED
0
_OFF
;
LED
_RED
_ON
;
LED
1
_ON
;
puts
(
"RIOT native board initialized."
);
puts
(
"RIOT native board initialized."
);
}
}
This diff is collapsed.
Click to expand it.
boards/native/include/board.h
+
12
−
6
View file @
663be83b
...
@@ -30,18 +30,24 @@
...
@@ -30,18 +30,24 @@
extern
"C"
{
extern
"C"
{
#endif
#endif
/**
* @brief LED handlers
* @{
*/
void
_native_LED_GREEN_OFF
(
void
);
void
_native_LED_GREEN_OFF
(
void
);
#define LED_GREEN_OFF (_native_LED_GREEN_OFF())
void
_native_LED_GREEN_ON
(
void
);
void
_native_LED_GREEN_ON
(
void
);
#define LED_GREEN_ON (_native_LED_GREEN_ON())
void
_native_LED_GREEN_TOGGLE
(
void
);
void
_native_LED_GREEN_TOGGLE
(
void
);
#define LED_GREEN_TOGGLE (_native_LED_GREEN_TOGGLE())
void
_native_LED_RED_OFF
(
void
);
void
_native_LED_RED_OFF
(
void
);
#define LED_RED_OFF (_native_LED_RED_OFF())
void
_native_LED_RED_ON
(
void
);
void
_native_LED_RED_ON
(
void
);
#define LED_RED_ON (_native_LED_RED_ON())
void
_native_LED_RED_TOGGLE
(
void
);
void
_native_LED_RED_TOGGLE
(
void
);
#define LED_RED_TOGGLE (_native_LED_RED_TOGGLE())
#define LED0_ON (_native_LED_RED_ON())
#define LED0_OFF (_native_LED_RED_OFF())
#define LED0_TOGGLE (_native_LED_RED_TOGGLE())
#define LED1_ON (_native_LED_GREEN_ON())
#define LED1_OFF (_native_LED_GREEN_OFF())
#define LED1_TOGGLE (_native_LED_GREEN_TOGGLE())
/** @} */
#ifdef __cplusplus
#ifdef __cplusplus
}
}
...
...
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