The friendly Operating System for the Internet of Things
periph.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Freie Universit├Ąt Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef SAUL_PERIPH_H
20 #define SAUL_PERIPH_H
21 
22 #ifdef MODULE_SAUL_GPIO
23 #include "periph/gpio.h"
24 #endif /* MODULE_SAUL_GPIO */
25 
26 #ifdef MODULE_SAUL_ADC
27 #include "periph/adc.h"
28 #endif /* MODULE_SAUL_ADC */
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 #ifdef MODULE_SAUL_GPIO
35 
38 typedef struct {
39  const char *name;
40  gpio_t pin;
41  gpio_mode_t mode;
42 } saul_gpio_params_t;
43 #endif /* MODULE_SAUL_GPIO */
44 
45 #ifdef MODULE_SAUL_ADC
46 
49 typedef struct {
50  const char *name;
51  adc_t line;
52  adc_res_t res;
53 } saul_adc_params_t;
54 #endif /* MODULE_SAUL_ADC */
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif /* SAUL_PERIPH_H */
61 
Low-level GPIO peripheral driver interface definitions.
unsigned int adc_t
Define default ADC type identifier.
Definition: adc.h:60
Low-level ADC peripheral driver interface definitions.