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
5604abce
Commit
5604abce
authored
6 years ago
by
Juan Carrano
Committed by
danpetry
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
drivers/tsl4531x: Add SAUL driver.
parent
b99bd67e
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
drivers/include/tsl4531x_saul.h
+31
-0
31 additions, 0 deletions
drivers/include/tsl4531x_saul.h
drivers/tsl4531x/tsl4531x_saul.c
+1
-1
1 addition, 1 deletion
drivers/tsl4531x/tsl4531x_saul.c
with
32 additions
and
1 deletion
drivers/include/tsl4531x_saul.h
0 → 100644
+
31
−
0
View file @
5604abce
/*
* Copyright (C) 2018 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 drivers_tsl4531x
* @{
*
* @file
* @brief SAUL interface for TSL4531 Luminosity sensor.
*
* @author Juan I Carrano <j.carrano@fu-berlin.de>
*
* @}
*/
#ifndef TSL4531x_SAUL_H
#define TSL4531x_SAUL_H
#include
"saul.h"
/** SAUL-compatible structure for illuminance sensor
*/
const
saul_driver_t
tsl4531x_saul_driver
;
#endif
/* TSL4531x_SAUL_H */
This diff is collapsed.
Click to expand it.
drivers/tsl4531x/tsl4531x_saul.c
+
1
−
1
View file @
5604abce
...
@@ -34,7 +34,7 @@ static int _read(const void *dev, phydat_t *res)
...
@@ -34,7 +34,7 @@ static int _read(const void *dev, phydat_t *res)
return
nvals
;
return
nvals
;
}
}
const
saul_driver_t
tsl
2561_illuminance
_saul_driver
=
{
const
saul_driver_t
tsl
4531x
_saul_driver
=
{
.
read
=
_read
,
.
read
=
_read
,
.
write
=
saul_notsup
,
.
write
=
saul_notsup
,
.
type
=
SAUL_SENSE_LIGHT
.
type
=
SAUL_SENSE_LIGHT
...
...
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