Skip to content
Snippets Groups Projects
Commit 5604abce authored by Juan Carrano's avatar Juan Carrano Committed by danpetry
Browse files

drivers/tsl4531x: Add SAUL driver.

parent b99bd67e
No related branches found
No related tags found
No related merge requests found
/*
* 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 */
...@@ -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 tsl2561_illuminance_saul_driver = { const saul_driver_t tsl4531x_saul_driver = {
.read = _read, .read = _read,
.write = saul_notsup, .write = saul_notsup,
.type = SAUL_SENSE_LIGHT .type = SAUL_SENSE_LIGHT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment