1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

2583 Commits

Author SHA1 Message Date
Francisco
cea0d1c532
Merge pull request #13421 from benpicco/cpu/sam0_common/i2c-deinit
drivers/periph/i2c: add periph_i2c_reconfigure feature & implementation for sam0
2020-05-05 19:09:47 +02:00
Benjamin Valentin
21958ff531 drivers/periph/i2c: add periph_i2c_reconfigure feature
It is often desireable to re-configure the pins of a bus back to GPIO mode,
either to save power when an external peripheral is turned off and current
would leak, or because a device may need a non-standard in-band signal to
be generated on the bus lines.

To serve those use cases, this patch introduces four new functions to the
I2C API:

 - `i2c_init_pins()`    equivalent to spi_init_pins(), restores I2C pin configuration

 - `i2c_deinit_pins()`  to switch the configuration of the I2C pins back to GPIO
                        mode and block access to the bus.

 - `i2c_pin_sda()`      to get the data pin for a given bus

 - `i2c_pin_scl()`      to get the clock pin for a given bus

Since it's unreasonable to expect having implementations for all platforms
already, those functions are only availiable when the periph_i2c_reconfigure
feature is availiable.

Applications should use FEATURES_REQUIRED += periph_i2c_reconfigure or
FEATURES_OPTIONAL if they want to make use of those functions.
2020-05-05 16:12:19 +02:00
Johannes Koster
177a653bd1 drivers/at25xxx: add MTD wrapper for AT25XXX EEPROMs
drivers/at25xxx: add mtd_wrapper as submodule

tests: add mtd_at25xxx test module for mtd wrapper

drivers/Makefile.dep: add at25xxx dep for mtd_at25xxx module
2020-05-05 13:37:51 +01:00
Akshai M
21dd8f7555 drivers/l3g4200d : Expose to Kconfig
Expose configurations to Kconfig.
2020-05-05 13:19:49 +05:30
Akshai M
5782c3bb0d drivers/l3g4200d : Make ADR configurable
Make L3G4200D_PARAM_ADDR configurable
2020-05-05 13:18:34 +05:30
Akshai M
ebbfcfb56b drivers/l3g4200d : Add CONFIG_
Add CONFIG_ prefix to L3G4200D_DEFAULT_ADDRESS
2020-05-05 13:18:34 +05:30
Leandro Lanzieri
28eedd6459
Merge pull request #14000 from akshaim/Kconfig_lpsxxx
drivers/lpsxxx : Expose Configurations to Kconfig
2020-05-05 09:09:30 +02:00
Leandro Lanzieri
1fe30c1aca
Merge pull request #13932 from akshaim/Kconfig_mtd_sdcard_1
drivers/mtd_sdcard : Expose Configurations to Kconfig
2020-05-04 21:14:59 +02:00
Akshai M
9737db935d drivers/mtd_sdcard : Expose to kconfig
Expose Configurations to Kconfig
2020-05-04 22:12:13 +05:30
Akshai M
854145c884 drivers/mtd_sdard : Add MACRO and CONFIG_
Replace MTD_SDCARD_SKIP_ERASE with MTD_SDCARD_ERASE
Add CONFIG_ Prefix to MTD_SDCARD_ERASE
Model CONFIG_MTD_SDCARD_ERASE as bool
2020-05-04 22:12:13 +05:30
Akshai M
a084383baf drivers/lpsxxx : Expose to Kconfig
Expose configurations to Kconfig and update documentation.
2020-05-04 18:20:56 +05:30
Akshai M
9ef4f30c5e drivers/bmx055 : Expose to Kconfig
Expose configurations to Kconfig
2020-05-04 18:18:00 +05:30
Akshai M
db7ca7eed9 drivers/lpsxxx : Add CONFIG_
Add CONFIG_ prefix to LPSXXX_DEFAULT_ADDRESS
2020-05-04 17:42:04 +05:30
Akshai M
211b86c54d drivers/bmx055 : Add CONFIG_
Add CONFIG_ prefix to compile configurations
2020-05-04 17:40:01 +05:30
Leandro Lanzieri
34120c1a23
drivers/Kconfig: Move Actuator and Sensor menus to root file 2020-04-29 17:15:47 +02:00
Francisco
80b300289d
Merge pull request #13912 from benpicco/at86rf215-mr-qpsk
drivers/at86rf215: implement MR-O-QPSK
2020-04-29 12:44:00 +02:00
Leandro Lanzieri
c8fa7f045b
Merge pull request #13914 from akshaim/Kconfig_fxos8700
drivers/fxos8700 :  Expose Configurations to Kconfig
2020-04-29 11:42:37 +02:00
Akshai M
0bc7952e30 drivers/fxos8700 : Expose to Kconfig
Expose Configurations to Kconfig
2020-04-29 14:32:00 +05:30
Akshai M
e5fe525711 drivers/fxos8700 : Add CONFIG_
Add CONFIG_ Prefix for FXOS8700_USE_ACC_RAW_VALUES and model
it as a bool

Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-29 14:32:00 +05:30
Benjamin Valentin
e6d47aa825 drivers/at86rf215: implement MR-O-QPSK 2020-04-29 10:41:37 +02:00
Benjamin Valentin
0cf9f6aa7f drivers/at86rf215: implement at86rf215_get_phy_mode() 2020-04-29 10:41:37 +02:00
Benjamin Valentin
cfc2feca1d ieee802154: return PDU based on PHY mode
IEEE 802.15.4g-2012 specifies a PDU of 2047 for it's PHY modes, so
query the driver for the mode before returning the PDU.

If none of the new modes is used, don't query the driver to not incure
a penalty on existing platforms.
2020-04-29 10:41:37 +02:00
Akshai M
e6924e525d drivers/slipdev : Expose to Kconfig
Expose configurations to Kconfig
2020-04-29 09:42:59 +05:30
Akshai M
b4451ffd43 drivers/slipdev : Add CONFIG_
Add CONFIG_ prefix to SLIPDEV_BUFSIZE
2020-04-29 09:42:10 +05:30
c0f46c06bb
drivers/stmpe811: provide adaption to touch_dev interface 2020-04-28 18:18:01 +02:00
3d557556e0
sys: add interface for generic touch device 2020-04-28 18:17:31 +02:00
Akshai M
817370c46b drivers/sps30 : Expose to Kconfig
Expose configurations to Kconfig
2020-04-28 20:11:11 +05:30
Akshai M
819a36d513 drivers/sps30 : Add CONFIG_
Add CONFIG_ prefix to SPS30_ERROR_RETRY
2020-04-28 20:10:21 +05:30
81c2b08d9b
drivers/disp_dev: use const qualifier 2020-04-28 13:14:52 +02:00
Akshai M
f796664eed drivers/opt3001 : Expose to Kconfig
Expose configurable parameters to Kconfig

Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-27 13:59:38 +05:30
Akshai M
abb1477ffe drivers/opt3001 : Define Options
Define choices for macros.
2020-04-27 13:59:37 +05:30
Akshai M
80534dfc36 drivers/opt3001 : Add CONFIG_
Add CONFIG_ prefix to compile time configurations
2020-04-27 13:59:37 +05:30
Akshai M
0277b0facc drivers/pn532 : Expose to Kconfig
Expose configurations to Kconfig
2020-04-25 23:06:07 +05:30
Akshai M
53c988a06c drivers/pn532 : Add CONFIG_
ADD CONFIG_ prefix to PN532_BUFFER_LEN
2020-04-25 22:33:34 +05:30
Benjamin Valentin
d955836187 drivers/ethos: use luid_get_eui48()
Previously the MAC address of the border router was entirely random.
That meant that as a DHCPv6 client it would get a new prefix with every
reboot.

Due to #12210 the nodes will never use the new address.

Fix this by using luid_get_eui48() which will always return the same
address across reboots.

It also makes the code simpler.
2020-04-24 21:18:21 +02:00
Francisco Molina
922b35da2d
drivers/xbee: disable CTS/RTS pin unless periph_uart_hw_fc is used
If usinng an arduino xbee shield then CTS pin will be wired to the
ICSP connector RESET pin.

If also used on an arduino-% board then if xbee is busy sending or
receiving data it will assert CTS and this will trigger a reset on
the board.

To avoid this disable CTS functionality on start up unless hardware
flow control is explicitly requested.
2020-04-24 10:54:36 +02:00
Francisco Molina
0c0f8ec98f
drivers/periph/rtt.h: add RTT_FREQUENCY & RTT_MAX_VALUE doc 2020-04-23 22:11:16 +02:00
Francisco Molina
2604971753
drivers/periph/rtt.h: ensure RTT_MAX_VALUE is set 2020-04-23 19:07:18 +02:00
Leandro Lanzieri
341916cd30
Merge pull request #13915 from akshaim/Kconfig_mag3110
drivers/mag3110 : Expose Configurations to Kconfig
2020-04-23 13:21:34 +02:00
Akshai M
fc3ff2a9d9 drivers/mag3110 : Expose to Kconfig
Expose Configurations to Kconfig

Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-23 15:50:26 +05:30
Akshai M
9c052a6288 drivers/mag3110 : Add CONFIG_
Add CONFIG_ Prefix for MAG3110_I2C_ADDRESS
2020-04-23 15:49:55 +05:30
Akshai M
c654b4ea3c drivers/motor_driver : Expose to Kconfig
Expose Configurations to Kconfig

Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-23 15:21:17 +05:30
Akshai M
39826d6e5b drivers/motor_driver : Add CONFIG_
Add CONFIG_ Prefix for MOTOR_DRIVER_MAX
2020-04-23 15:21:17 +05:30
Leandro Lanzieri
c2c32a42f5
Merge pull request #13926 from akshaim/Kconfig_mma8x5x
drivers/mma8x5x : Expose Configurations to Kconfig
2020-04-23 09:20:09 +02:00
Akshai M
ec98054bea drivers/mma8x5x : Expose to Kconfig
Expose Configurations to Kconfig
2020-04-22 22:02:34 +05:30
Akshai M
7e3096eae1 drivers/mma8x5x : Add CONFIG_
Add CONFIG_ Prefix for CONFIG_MMA8X5X_I2C_ADDRESS
2020-04-22 21:57:05 +05:30
Leandro Lanzieri
ee7493429b
Merge pull request #13885 from akshaim/Kconfig_at86rf215
drivers/at86rf215 : Expose Configurations to Kconfig
2020-04-22 13:59:29 +02:00
Leandro Lanzieri
7284434656
Merge pull request #13910 from akshaim/Kconfig_dose
drivers/dose.h : Expose Configurations to Kconfig
2020-04-22 12:39:30 +02:00
Akshai M
7b2591ea09 drivers_at86rf215 : Expose to Kconfig
Expose Configurations to Kconfig

Co-Authored-By: benpicco <benpicco@googlemail.com>
Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-22 15:55:21 +05:30
Akshai M
68e2fc5845 drivers/at86rf215 : Add CONFIG
Add CONFIG_ Prefix for configuring AT86RF215_TRIM_VAL
2020-04-22 15:54:33 +05:30
Akshai M
8617991312 drivers/at86rf215 : Add CONFIG_
Add Add CONFIG_ Prefix for AT86RF215_USE_CLOCK_OUTPUT and model
it as a bool

Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-22 15:54:33 +05:30
19119f142a
Merge pull request #13558 from fjmolinas/pr_mtd_powerup
drivers/mtd_spi_nor: power up MTD on init
2020-04-21 13:53:07 +02:00
Akshai M
3a65d163f6 drivers/dose : Expose to Kconfig
Expose Configurations to Kconfig

Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-21 16:00:25 +05:30
Akshai M
0784190c9c drivers/dose : Add CONFIG_
Add CONFIG_ Prefix for DOSE_TIMEOUT_USEC
2020-04-21 16:00:25 +05:30
Francisco Molina
61eecf6fe0
drivers/mtd_spi_nor: power up MTD on init 2020-04-21 11:09:40 +02:00
Francisco Molina
8a256eba12
drivers/mtd_spi_nor: return error on invalid manuf id 2020-04-21 11:09:40 +02:00
Akshai M
be097f8533 drivers/cc110x : Expose to Kconfig
Expose Configurations to Kconfig
2020-04-17 23:55:07 +05:30
Akshai M
01a8c64e39 drivers/cc110x : Add CONFIG_
Add Add CONFIG_ Prefix for CC110X_DEFAULT_CHANNEL
2020-04-17 23:27:01 +05:30
Leandro Lanzieri
2f75c60527
Merge pull request #13881 from akshaim/kconfig_ads101x
drivers/ads101x : Expose Configurations to Kconfig
2020-04-17 15:39:07 +02:00
Leandro Lanzieri
369eda6bd9
Merge pull request #13831 from akshaim/I2C_Address_Cleanup
I2C Address Cleanup and Documentation
2020-04-17 13:42:35 +02:00
Akshai M
137a1c08b4 drivers/ads101x : Expose to Kconfig
Expose Configurations to Kconfig

Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-17 16:43:16 +05:30
Akshai M
b20e408854 drivers/ads101x : Add CONFIG_
Add CONFIG_ Prefix for configuring the Compile time macros
2020-04-17 16:43:16 +05:30
Akshai M
b75fc0cfa6 drivers/include/tcs37727.h : Remove ifndef for I2C
Remove ifndef and better formatting for Doxygen
2020-04-17 15:45:37 +05:30
Akshai M
de5db5c99d drivers/include/mpl3115a2.h : Remove ifndef for I2C 2020-04-17 15:45:37 +05:30
Akshai M
c6f55b6f81 drivers/include/lpsxxx.h : Expose Parameters
Add ifndef and Expose Compile Parameters to Doxyen

Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-17 15:45:19 +05:30
Benjamin Valentin
8a2a936726 drivers/at25xxx: return read/written bytes to match MTD API
The MTD API expects read() to return the number of read bytes and
write() to return the number of written bytes.

So change the driver API to match that.
2020-04-17 11:32:06 +02:00
Akshai M
f705b0e5af drivers/include/l3g4200d.h : Expose Parameters
Add ifndef and Expose Compile Parameters to Doxyen
2020-04-17 14:08:39 +05:30
Akshai M
e2b3175a1c drivers/include/isl29020.h : Expose Parameters
Add ifndef and Expose Compile Parameters to Doxyen
2020-04-17 14:07:58 +05:30
Akshai M
6757d97766 drivers/include/hts221.h : Remove ifndef for I2C 2020-04-17 14:07:58 +05:30
Akshai M
1e6c0e3935 drivers/include/ds1307.h : Remove ifndef for I2C 2020-04-17 14:07:58 +05:30
Akshai M
c59e17ea19 drivers/include/bmx055.h : Expose Parameters
Add ifndef and Expose Compile Parameters to Doxyen
2020-04-17 14:06:07 +05:30
Akshai M
79de2512e1 drivers/hdc1000 : Expose to Kconfig
Expose Configurations to Kconfig

Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-16 19:16:43 +05:30
Akshai M
7a4191a8d5 drivers/hdc1000 : Add CONFIG_
Add CONFIG_ Prefix for configuring the Compile time macros
2020-04-16 17:17:27 +05:30
Akshai M
c452323ab5 drivers/include/cc110x.h : Add group
Add compile parameters to config_drivers_netdev group to Doxygen

Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-15 13:58:31 +05:30
Akshai M
aa7e84a6d7 drivers/mma8x5x.h : Compile Configs
Add CT Params to sensors group in Config for Doxygen
2020-04-14 20:52:16 +05:30
Akshai M
b9f71610d7 drivers/include/ads101x.h : Add Group
Add CT Params to sensors group in Config for Doxygen
2020-04-14 20:52:16 +05:30
Akshai M
b36b3b9819 drivers/include/fxos8700.h : Add group
Add compile parameters to config_drivers_sensors group to Doxygen
2020-04-14 20:52:16 +05:30
Akshai M
32c4fe3cd4 drivers/include/ds1307.h : Add group
Add compile parameters to config_drivers_sensors group to Doxygen
2020-04-14 20:52:16 +05:30
Akshai M
eb3456ee1d drivers/include/dose.h : Add group
Add compile parameters to config_drivers_netdev group to Doxygen
2020-04-14 20:52:16 +05:30
Akshai M
11c2803bcf drivers/include/at86rf215.h : Add Group
Add CT Params to netdev group in Config for Doxygen
2020-04-14 20:52:16 +05:30
Akshai M
007cd5bb26 drivers/include/at.h : Add Group
Add CT Params to misc group in Config for Doxygen
2020-04-14 20:52:16 +05:30
Akshai M
358d7eb616 drivers/adcxx1c_params.h : Add Group
Add CT Params to sensors group in Config for Doxygen
2020-04-14 20:52:16 +05:30
Akshai M
497a967a23 drivers/include/sx127x.h : Add group
Add to config_netdev group to Doxygen
2020-04-14 20:52:16 +05:30
Akshai M
80c6374cc4 drivers/include/mrf24j40.h : Modify group
Add to config_netdev group to Doxygen
2020-04-14 20:52:16 +05:30
Akshai M
bc65ffdcde drivers/include/ethos.h : Compile Configs 2020-04-14 20:52:16 +05:30
Akshai M
10d6b7a976 drivers/include/tmp00x.h : Compile Configs 2020-04-14 20:52:16 +05:30
Akshai M
a6d7eab027 drivers/include/tcs37727.h : Compile Configs 2020-04-14 20:52:16 +05:30
Akshai M
0ac93bfb07 drivers/include/sps30.h : Compile Configs 2020-04-14 20:52:16 +05:30
Akshai M
462e321ec0 drivers/include/soft_spi.h : Compile Configs 2020-04-14 20:52:16 +05:30
Akshai M
c63bdca3ab drivers/include/slipdev.h : Compile Configs 2020-04-14 20:52:16 +05:30
Akshai M
4333a9f299 drivers/include/rn2xx3.h : Compile Configs 2020-04-14 20:52:16 +05:30
Akshai M
1d3c2c4320 drivers/include/pn532.h : Compile Configs 2020-04-14 20:52:16 +05:30
Akshai M
4c4c9f0c2b drivers/include/pir.h : Compile Configs 2020-04-14 20:52:16 +05:30
Akshai M
f39b320b5d drivers/include/opt3001.h : Compile Configs 2020-04-14 20:52:16 +05:30
Akshai M
4744401bb5 drivers/include/mtd_sdcard.h : Compile Configs 2020-04-14 20:52:16 +05:30
Akshai M
2405ca3721 drivers/include/mpl3115a2.h : Compile Configs 2020-04-14 20:52:16 +05:30
Akshai M
b812772e40 drivers/include/motor_driver.h : Compile Configs 2020-04-14 20:52:16 +05:30
Akshai M
56cb11344b drivers/include/mag3110.h : Compile Configs 2020-04-14 20:52:16 +05:30
Akshai M
5e2478b3c5 drivers/include/kw41zrf.h : Compile Configs 2020-04-14 20:52:16 +05:30
Akshai M
4f31c40526 drivers/include/kw2xrf.h : Compile Configs 2020-04-14 20:52:16 +05:30