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

2444 Commits

Author SHA1 Message Date
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