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

2530 Commits

Author SHA1 Message Date
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
Akshai M
dba177c8aa drivers/include/ili9341.h : Compile Configs 2020-04-14 20:52:16 +05:30
Akshai M
013c161e1c drivers/include/hdc1000.h : Compile Configs 2020-04-14 20:52:16 +05:30
Akshai M
f15e479388 drivers/doc.txt : Add sub-groups
Added Compile Config subgroups for sensors, netdev, actuators,
storage,soft_periph and misc to Doxygen
2020-04-14 20:52:16 +05:30
Marian Buschsieweke
9efd47952e
drivers/ws281x: Extended doc
Point out that automatic backend selection is performed, when no backend is
selected.
2020-04-09 13:34:51 +02:00
Marian Buschsieweke
d3d2cdae8a
drivers/ws281x: Fix dependencies
arch_esp32 was missing in FEATURES_REQUIRED_ANY for the ws281x, resulting in
ESP32 boards incorrectly being reported as unsupported.
2020-04-09 13:30:18 +02:00
Marian Buschsieweke
4e60eb9dd5
Merge pull request #13843 from mtreffers/doc-fixes
Doc: fix typo and extend ws281x documentation
2020-04-09 13:21:45 +02:00
mtreffers
1ca28b8181 drivers/ws281x: fix documentation
extend ws281x documentation with usage for ESP32 and VT100

fix indendation
2020-04-09 10:22:39 +02:00
Francisco
3177784039
Merge pull request #13798 from jia200x/pr/at86rf2x_basic_mode
at86rf2xx: implement basic mode (v2)
2020-04-09 09:21:15 +02:00
Leandro Lanzieri
a06d9bbb66
Merge pull request #13315 from jia200x/pr/kconfig/ieee802154
ieee802154: Expose configurations to Kconfig
2020-04-08 19:34:55 +02:00
Jose Alamos
ab5418ebab at86rf2xx: report CRC error in basic mode 2020-04-08 19:14:45 +02:00
Jose Alamos
d4b0aff8cf at86rf2xx: implement basic mode 2020-04-08 19:14:45 +02:00
Jose Alamos
69eb3c7fe2 at86rf2xx: add basic mode PHY state 2020-04-08 19:14:44 +02:00
Jose Alamos
77325b4cde ieee802154: add CONFIG_ prefix to config macros 2020-04-08 19:08:25 +02:00
Leandro Lanzieri
6e49724a66
drivers/Makefile.dep: Set CONFIG_MRF24J40_USE_EXT_PA_LNA if not Kconfig
For the mrf24j40 check if Kconfig is being used before setting the
configuration CFLAG.
2020-04-08 18:49:32 +02:00
Leandro Lanzieri
f89514e466
drivers/mrf24j40: Expose configurations to Kconfig 2020-04-08 18:49:31 +02:00
Leandro Lanzieri
ede9117a1e
drivers/mrf24j40: Turn MRF24J40_USE_EXT_PA_LNA into bool config
MRF24J40_USE_EXT_PA_LNA is moved to the 'CONFIG_' namespace and by
default is not set. Now it is checked in code using 'IS_ACTIVE'.
2020-04-08 18:49:30 +02:00
Leandro Lanzieri
655ce69903
drivers/mrf24j40: Turn MRF24J40_TEST_SPI_CONNECTION into bool config
MRF24J40_TEST_SPI_CONNECTION is moved to the 'CONFIG_' namespace and by
default is not set. Now it is checked in code using 'IS_ACTIVE'.
2020-04-08 18:49:27 +02:00
067b324645
Merge pull request #11945 from benpicco/EEPROM-m95m01
drivers: add driver for AT25xxx family of EEPROMs
2020-04-07 13:19:21 +02:00
Benjamin Valentin
97fc2f2af1 drivers: add AT25xxx series EEPROM
This adds a driver for the ST M95xxx series SPI EEPROMs.
The driver has been tested with the M95M01 EEPROM, but should
work with other chips from that family.

SPI-EEPROMs from other vendors from the families AT25xxx, 25AAxxx,
25LCxxx, CAT25xxx & BR25Sxxx should also in the same way.
2020-04-07 12:31:46 +02:00
benpicco
750db2a910
Merge pull request #13788 from benpicco/drivers/at86rf215_shutdown_fix
drivers/at86rf215: return error when switching state while busy
2020-04-03 17:50:48 +02:00
Benjamin Valentin
46544c5d7a drivers/at86rf215: add comment to _tx_ongoing() 2020-04-03 12:48:52 +02:00
Francisco
d4580b4c36
Merge pull request #13750 from benpicco/drivers/at86rf215_fix_wakeup
drivers/at86rf215: fix reset after deep sleep
2020-04-03 09:04:51 +02:00
Leandro Lanzieri
c74544c9ec
Merge pull request #13349 from maribu/dependency-or
build system: Restructure dependency resolution
2020-04-02 10:40:44 +02:00
Benjamin Valentin
5ed88ecb0a drivers/at86rf215: unexport at86rf215_block_while_busy()
It's a private function that should not be used lightly.
2020-04-01 23:14:46 +02:00
Benjamin Valentin
8c6791b136 drivers/at86rf215: return error when switching state while busy
Previously the function attempted to block here and manually service
the ISR.
This lead to unexpected results, in particular messages queuing up in
the threads message queue.

The result was that the radio would not end up in the correct state.
E.g. sending SLEEP to both interfaces while a transmission was ongoing
would lead to the interfaces waking up again.

With this patch the operation will just return -ERRNO so the caller can
try again.

To reproduce, try the attached patch for the `gnrc_networking` example:

On master you will find that the radio still consumes ~2.4mA after 'shutdown'.
(It is in fact in the state TRXOFF as it woke up again)
With this change the radio should consume less than 1µA (DEEP SLEEP).

diff --git a/examples/gnrc_networking/main.c b/examples/gnrc_networking/main.c
index 6301f4291d..93b96eb939 100644
--- a/examples/gnrc_networking/main.c
+++ b/examples/gnrc_networking/main.c
@@ -23,12 +23,47 @@
 #include "shell.h"
 #include "msg.h"

+#include "periph/pm.h"
+
+#include "net/netopt.h"
+#include "net/gnrc/netif.h"
+
 #define MAIN_QUEUE_SIZE     (8)
 static msg_t _main_msg_queue[MAIN_QUEUE_SIZE];

 extern int udp_cmd(int argc, char **argv);

+extern void send(char *addr_str, char *port_str, char *data, unsigned int num,
+                 unsigned int delay);
+
+static int send_and_shutdown(int argc, char **argv)
+{
+    (void) argc;
+    (void) argv;
+
+    /* the address must not exist */
+    char addr[] = "fe80::2068:3123:59f5:d238%7";
+    char port[] = "1234";
+    char data[] = "Hello World!";
+
+    send(addr, port, data, 1, 0);
+
+    /* disable radio */
+    gnrc_netif_t* netif = NULL;
+    netopt_state_t state = NETOPT_STATE_SLEEP;
+    while ((netif = gnrc_netif_iter(netif))) {
+        /* retry while busy */
+        while (gnrc_netapi_set(netif->pid, NETOPT_STATE, 0, &state,
+               sizeof(netopt_state_t)) == -EBUSY);
+    }
+
+    pm_set(0);
+
+    return 0;
+}
+
 static const shell_command_t shell_commands[] = {
+    { "shutdown", "turn off the radio & shut down", send_and_shutdown },
     { "udp", "send data over UDP and listen on UDP ports", udp_cmd },
     { NULL, NULL, NULL }
 };
diff --git a/examples/gnrc_networking/udp.c b/examples/gnrc_networking/udp.c
index e8a559846e..cb80855b76 100644
--- a/examples/gnrc_networking/udp.c
+++ b/examples/gnrc_networking/udp.c
@@ -36,7 +36,7 @@ static gnrc_netreg_entry_t server = GNRC_NETREG_ENTRY_INIT_PID(GNRC_NETREG_DEMUX
                                                                KERNEL_PID_UNDEF);

-static void send(char *addr_str, char *port_str, char *data, unsigned int num,
+void send(char *addr_str, char *port_str, char *data, unsigned int num,
                  unsigned int delay)
 {
     gnrc_netif_t *netif = NULL;
2020-04-01 23:08:44 +02:00
benpicco
660b1a9b5f
Merge pull request #10083 from gschorcht/drivers_hmc5883l
drivers: add driver for Honeywell HMC5883L magnetometer
2020-04-01 14:49:34 +02:00
benpicco
d1ccfe6c9a
Merge pull request #13778 from akshaim/fxos8700_CT_Config
drivers/include/fxos8700.h : Compile Configs
2020-04-01 13:43:01 +02:00
Gunar Schorcht
df612a3790 sys/auto_init: add hmc5883l device driver 2020-04-01 13:37:22 +02:00
Gunar Schorcht
e6090adb3f drivers: add hmc5883l device driver 2020-04-01 13:37:22 +02:00
Leandro Lanzieri
6f30086609
Merge pull request #13775 from akshaim/ds1307_CT_Config
drivers/include/ds1307.h : Compile Configs
2020-04-01 13:28:36 +02:00
Leandro Lanzieri
bb6fa878a2
Merge pull request #13770 from akshaim/dose_CT_Config
drivers/include/dose.h : Compile Configs
2020-04-01 13:10:01 +02:00
Akshai M
27458701b6 drivers/include/fxos8700.h : Compile Configs 2020-04-01 14:53:44 +05:30
Akshai M
5e97feb88e drivers/include/dose.h : Compile Configs 2020-04-01 14:35:45 +05:30
Akshai M
c94abb5a36 drivers/include/ds1307.h : Compile Configs 2020-04-01 13:42:45 +05:30
Akshai M
9e3ea3e7b6 drivers/include/ads101x.h: Tagged Compile Time Parameters 2020-04-01 12:50:02 +05:30
Marian Buschsieweke
007ac492ff
drivers/ws281x: Use FEATURES_REQUIRED_ANY 2020-04-01 09:12:50 +02:00
Benjamin Valentin
1ed125dc06 drivers/at86rf215: document AT86RF215_TRIM_VAL
There is a compile-time configurable TRIM value.
This adds documentation for it.
2020-03-31 22:54:53 +02:00
benpicco
baa2024241
Merge pull request #13766 from akshaim/at_CT_Config
drivers/include/at.h : Tagged Compile Time Configurations
2020-03-31 21:51:44 +02:00
Akshai M
769fd0840c drivers/include/at86rf215.h: Tagged Compile Time Configuration 2020-03-31 22:20:02 +05:30
Akshai M
df9814df12 drivers/include/at.h : Tagged Compile Time Configurations 2020-03-31 21:45:16 +05:30
Francisco
1a8b35f54b
Merge pull request #13377 from leandrolanzieri/pr/kconfig_migrate/drivers/periph_wdt
drivers/periph/wdt: Expose configurations to Kconfig
2020-03-31 16:36:36 +02:00
benpicco
e7c1605119
Merge pull request #13691 from benpicco/tests/driver_netdev_common
tests/driver_netdev_common: add compile-test for network drivers
2020-03-31 14:50:28 +02:00
Leandro Lanzieri
8cca9bfc28
drivers/wdt: Expose configuration to Kconfig 2020-03-31 13:39:38 +02:00
Leandro Lanzieri
00b71a2708
drivers/wdt: Move WDT_WARNING_PERIOD to 'CONFIG_' namespace 2020-03-31 13:39:37 +02:00
Benjamin Valentin
611f4161d6 drivers/at86rf215: fix reset after deep sleep
When the radio is in DEEP SLEEP, reading the state register will return 0.
This makes the reset routine abort early even though the device is connected
and still waking up.

Instead, just add a timeout to the polling of the WAKEUP IRQ bit.
In practise it has shown that the loop will be taken two times on 'normal'
reset and four times when the radio was in DEEP SLEEP.

Polling 255 times sure does not hurt.

To reproduce the issue, put both interfaces into SLEEP mode,
then reboot the module:

    ifconfig 7 set state sleep
    ifconfig 8 set state sleep
    reboot
2020-03-29 19:44:40 +02:00
Akshai M
58516f7e2a drivers/include/sx127x.h: Tagged Compile Time Configuration 2020-03-27 19:06:10 +05:30
Martine S. Lenders
62d48d5bf3
gnrc_netif: document new *_create() out parameter as such 2020-03-26 14:37:44 +01:00
Martine Lenders
061eb88c05
Merge pull request #12994 from jia200x/pr/gnrc_netif_desc_alloc
gnrc_netif: implementation of dynamic GNRC_NETIF_NUMOF approach
2020-03-26 14:30:44 +01:00
Jose Alamos
67ed9defbe gnrc_netif_xxx_create: use external netif allocation 2020-03-26 11:12:23 +01:00