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

539 Commits

Author SHA1 Message Date
Hauke Petersen
6ab089e63e drivers/pwm: remove PWM_NUMOF guard
as we do not build the periph drivers selectable currently,
the guard is triggered even for boards that do not have any
PWM defined and don't want to use it...
2016-12-15 12:18:39 +01:00
Hauke Petersen
41f453066c drivers: added interface for writing flash pages 2016-11-30 16:51:09 +01:00
Peter Kietzmann
e547ff1d60 Merge pull request #6013 from haukepetersen/opt_periph_uartreturntypes
periph/uart: added names to return values
2016-11-29 19:14:09 +01:00
Martine Lenders
32c19d63e3 netdev2: make doc for driver more precise
When working on #6121 I noticed that the documentation of the `netdev2`
driver part is not really precise. This fixes that.
2016-11-22 14:57:26 +01:00
Peter Kietzmann
9c7d9eb06f Merge pull request #6141 from haukepetersen/opt_bh1750fvi_namedreturnvalues
drivers/bh1750fvi: added names to return values
2016-11-21 08:23:24 +01:00
Peter Kietzmann
711415360f Merge pull request #5433 from OTAkeys/pr/mma8x5x
mma8652: add support for all mma8x5x accelerometers
2016-11-18 09:02:42 +01:00
Hauke Petersen
40116c7c66 drivers/bh1750fvi: added names to return values 2016-11-17 22:57:56 +01:00
Vincent Dupont
b9b838f1dc mma8652: add support for all mma8x5x accelerometers 2016-11-16 14:14:07 +01:00
Thomas Eichinger
103c426cdc drivers/cc2420: calculate CRC and check CRC_OK bit on packet reception
First start calculating the CRC in hardware when receiving a frame.

Then, other than the at86rf2xx transceivers the cc2420 don't consider the
CRC_OK flag when reporting a successful packet reception. This change
introduces a check for this bit and drops the packet else by flushing
the RX FIFO.
2016-11-08 23:28:09 -08:00
Hauke Petersen
314549059c periph/uart: added names for return values 2016-10-28 10:31:59 +02:00
Martine Lenders
9e97b0a028 Merge pull request #5977 from miri64/ieee802154/enh/centralize-default-values
ieee802154: centralize default values
2016-10-26 16:39:44 +02:00
Martine Lenders
eb4ec4b35f Merge pull request #5961 from yschroeder/pullreq/at86rf2xx_compile_fix
at86rf2xx: fix warnings when building with -Wextra -pedantic
2016-10-26 15:59:59 +02:00
Martine Lenders
20e1fce5b7 ieee802154: centralize default values 2016-10-26 15:32:12 +02:00
Hauke Petersen
d7dbac7c61 drivers: added driver for W5100 Ethernet chips 2016-10-26 08:36:58 +02:00
Hauke Petersen
a3d1b5f839 drivers: added driver for LPD8808 LED strips 2016-10-25 18:32:52 +02:00
Yannic Schröder
c7d73e24c1 at86rf2xx: fix warnings when building with -Wextra -pedantic 2016-10-18 10:21:54 +02:00
Kees Bakker
bac5cda1e3 periph/i2c: convert char to uint8_t where applicapable
In general, data transferred through I2C are bytes and thus should have
type uint8_t, not char.

Also convert uint8_t ptrs to void ptrs
2016-10-04 20:26:39 +02:00
Martine Lenders
15c4ceae04 netdev2_ieee802154: cleanup flag definitions 2016-09-30 13:09:27 +02:00
Martine Lenders
9f29e56020 netdev2_ieee802154: remove NETDEV2_IEEE802154_PAN_COMP flag 2016-09-30 13:09:26 +02:00
add6e1d36d Merge pull request #5674 from aabadie/driver_io1_xplained
drivers/io1_xplained: initial implementation of Atmel IO1 Xplained extension board
2016-09-16 10:35:49 +02:00
Laurent Navet
f30c4ade2c drivers/timer: fix copy/paste error 2016-09-07 21:59:25 +02:00
3aa1ffb5fb drivers/io1_xplained: initial implementation including temperature/LED/GPIO and auto init 2016-09-02 10:42:09 +02:00
Matthias Kolja Miehl
75ab341089 drivers: mag3110: fix typo in header description 2016-08-20 02:28:09 +02:00
Martine Lenders
cf11a0dab7 Merge pull request #5485 from jfischer-phytec-iot/pr@add-opt-netdev
add testmode and cca mode option to netdev
2016-08-05 15:51:56 +02:00
Martine Lenders
bd2429f299 cpu: drivers: adapt devices for netdev2 parameter type change 2016-08-03 12:30:51 +02:00
Martine Lenders
e710164f09 netdev2: function parameter type changes
`len` and `count` are both values that should never go `< 0`, so instead of
having to test this (in theory) every time the function is called (regardless
of by assert or if its unnecessary code), I propose to change it to `size_t`.

As a bonus I made the type of recv's buf parameter generic - no reason for it to
be a char and it might lead to unnecessary static casting requirements
2016-08-03 09:51:18 +02:00
Joakim Nohlgård
bc9e5b218b periph/gpio: Clean up Doxygen text 2016-07-30 08:06:19 +02:00
Johann Fischer
14f0d1ce89 netopt.h: add new options to set the CCA and test modes
This patch adds two new options to netopt. NETOPT_CCA_MODE to set
the CCA mode corresponding to the respective PHY standard and
NETOPT_RF_TESTMODE to set the test mode for the radio.
2016-07-27 00:15:27 +02:00
Bas Stottelaar
0902ccb2e0 drivers: si70xx: adapt for SAUL 2016-07-22 18:22:13 +02:00
271cbc26b8 drivers/cc2420 & cpu/cc2538: adding support for default channel configuration 2016-07-14 17:50:50 +02:00
87ca058417 makefiles: expose a single DEFAULT_CHANNEL variable 2016-07-14 17:44:42 +02:00
Joakim Nohlgård
4798cd66d9 drivers/nvram: Add const to write source buffer declaration 2016-07-12 08:03:16 +02:00
kYc0o
374f4a1981 drivers/include: add cc2420 doxygen doc 2016-07-06 20:23:23 +02:00
Hauke Petersen
abc6b5ccdf drivers: added support for CC2420 radio 2016-07-06 18:14:48 +02:00
Andreas "Paul" Pauli
87cb266a1b Merge pull request #5437 from miri64/doc/enh/netdev-rx-fig
doc: add operational flow figure for netdev
2016-06-16 19:33:37 +02:00
Martine Lenders
af2e169db1 netdev2: doc: update doc text for operational flow figure 2016-06-15 23:26:23 +02:00
Laurent Navet
96ebff9174 drivers/uart: fix typos 2016-06-14 22:54:25 +02:00
3ad195963d drivers: netdev2: rename isr_arg 2016-06-02 11:11:40 +02:00
82243b86fc drivers: netdev2: remove extra event_callback argument 2016-06-02 11:11:40 +02:00
4a595d7b19 drivers/bmp180: add saul adaptation 2016-06-01 11:15:01 +02:00
Joakim Nohlgård
407e10d5b3 drivers/si70xx: Use Doxygen group drivers_sensors 2016-05-26 12:53:51 +02:00
Joakim Nohlgård
e215c9270e drivers/lis3mdl: Change doxygen grouping to sensor drivers 2016-05-26 12:47:42 +02:00
Peter Kietzmann
e08733d2d1 Merge pull request #5234 from thomaseichinger/pr/phr_length_mask
drivers/at86rf2xx: mask frame length according to data sheet
2016-05-20 15:14:55 +02:00
Thomas Eichinger
5a45c31bcb drivers/at86rf2xx: remove unused functions
These two functions are not used anymore and can be omitted.
2016-05-20 15:05:27 +02:00
Oleg Hahm
814be0655f doc: minor fixes of typos in periph documentation 2016-05-03 23:37:22 +02:00
Francesco Ermini
9fa4684203 drivers/xbee: encryption support
add encryption to drivers

fix new line at the end of file

add shell command for enable encryption and set encryption key on a given device

modify _net_if_set_encrypt_key to support any key length

modify _net_if_set_encrypt_key to support any key length of the key

modify blank line

fix ace before tab in indent

fix ace before tab indent

fix ace before tab indent an error

fix trailing white space

drivers/xbee: encryption support

add encryption to drivers

fix new line at the end of file

add shell command for enable encryption and set encryption key on a given device

modify _net_if_set_encrypt_key to support any key length

modify _net_if_set_encrypt_key to support any key length of the key

modify blank line

fix ace before tab in indent

fix ace before tab indent

fix ace before tab indent an error

fix trailing white space

modify drivers/xbee/xbee.c

fix white spaces on xbee.c

Update xbee encryption driver

white line at end xbee.h

fix error

fix sc_netif.c

fix rebase master interactive

drivers/xbee: encryption support

add encryption to drivers

fix new line at the end of file

add shell command for enable encryption and set encryption key on a given device

modify _net_if_set_encrypt_key to support any key length

modify _net_if_set_encrypt_key to support any key length of the key

modify blank line

fix ace before tab in indent

fix ace before tab indent

fix ace before tab indent an error

fix trailing white space

drivers/xbee: encryption support

add encryption to drivers

fix new line at the end of file

add shell command for enable encryption and set encryption key on a given device

modify _net_if_set_encrypt_key to support any key length

modify _net_if_set_encrypt_key to support any key length of the key

modify blank line

fix ace before tab in indent

fix ace before tab indent

fix ace before tab indent an error

fix trailing white space

modify drivers/xbee/xbee.c

fix white spaces on xbee.c

Update xbee encryption driver

white line at end xbee.h

fix error

fix rebase  conflict 4

fix same missing in patches changes

fix ascii to hex index parser

fix syntax rules

fix syntax issue 2

add _netopt_strmap NETOPT_ENCRYPTION e NETOPT_ENCRYPTION_KEY

fix trailng white spaces
2016-04-20 17:43:09 +02:00
kYc0o
724276e913 Merge pull request #4734 from Yonezawa-T2/xbee_resp_timeout
xbee: add timeout for AT command response (fixes #4731)
2016-04-19 13:34:21 +02:00
Yonezawa-T2
4042239b04 xbee: add timeout for AT command response (fixes #4731) 2016-04-19 11:19:25 +09:00
Yonezawa-T2
67c3ab8fdd xbee: changed default channel from 0x1A to 0x17 to support XBee-PRO
XBee supports channels 0x0B-0x1A while XBee-PRO supports only 0x0C-0x17.
2016-04-19 11:17:12 +09:00
kYc0o
e6d15f2d36 Merge pull request #5224 from haukepetersen/fix_periph_undef
drivers/periph: fixed UNDEF values to UINT_MAX
2016-04-13 16:39:59 +02:00
Hauke Petersen
7c02c616bd Merge pull request #4863 from gebart/pr/saul-adc
SAUL: Add periph/adc support
2016-04-11 13:13:25 +02:00
Martine Lenders
1c45c503b8 netdev2: fix event_callback references 2016-04-09 13:22:19 +02:00
Oleg Hahm
252baecef7 at86rf2xx: introduce pending TX counter
This counter is necessary for the current concept to tell the driver when to return to idle after sending.
2016-04-08 11:32:40 +02:00
Joakim Nohlgård
50b48c28eb sys/saul: Add analog inputs to SAUL via periph/adc 2016-04-08 10:18:12 +02:00
Joakim Nohlgård
1f645cf436 drivers/saul: Fix typo in documentation 2016-04-08 10:17:23 +02:00
Hauke Petersen
9a4df61005 drivers/periph: fixed UNDEF values to UINT_MAX 2016-04-01 10:57:26 +02:00
Yonezawa-T2
c4bc42419b netdev2_tap: continue reading even if no spaces left in pktbuf
On OS X, `netdev2_tap` suspends monitoring file descriptor until `_recv` is
called. If no spaces in left in pktbuf, `gnrc_netdev2_eth` does not call `_recv`
that results in deadlock.

With this commit, `gnrc_netdev2_eth` calls `_recv` with NULL buffer and non-zero
length parameter, that indicates the driver to drop frame and resume working.
2016-03-31 16:59:12 +09:00
Martine Lenders
c5dc5b2d24 Merge pull request #5208 from kaspar030/fix_ethos_compile
drivers: ethos: fix compile errors
2016-03-30 17:37:52 +02:00
036e7f248d drivers: ethos: fix compile errors 2016-03-30 17:09:58 +02:00
Peter Kietzmann
3fa8a267b3 Merge pull request #5155 from OlegHahm/diskio_cleanup
doc diskio: RIOTized style and added doxygen
2016-03-30 15:14:25 +02:00
Oleg Hahm
1f4d73dde1 Merge pull request #4801 from OlegHahm/netstats
netstats: introduce L2 netstats
2016-03-30 14:42:49 +02:00
Oleg Hahm
0925737e28 doc diskio: RIOTized style and added doxygen 2016-03-30 12:54:51 +02:00
Oleg Hahm
021e94ee6a netdev2: introduce linklayer netstats 2016-03-29 22:34:09 +02:00
Rene Herthel
44ee645373 drivers/lis3mdl: Initial create of lis3mdl 2016-03-29 21:02:18 +02:00
Oleg Hahm
59674a679b netdev2: use params parameter for setup 2016-03-28 20:22:20 +02:00
Oleg Hahm
3ba99aabe4 xbee: fix naming inconsistency 2016-03-28 20:22:20 +02:00
Oleg Hahm
26b3263f8a netdev2: moved ethernet header into subdir 2016-03-25 15:10:07 +01:00
Hauke Petersen
2510fe03f5 Merge pull request #4646 from authmillenon/at86rf2xx/api/netdev2
at86rf2xx: port to netdev2
2016-03-24 15:03:15 +01:00
Martine Lenders
5bfc9e43fb at86rf2xx: port to netdev2 2016-03-23 17:45:16 +01:00
Peter Kietzmann
ad149dcd68 Merge pull request #4804 from haukepetersen/opt_srf02_impltrigger
driver/srf02: expose trigger and read to API
2016-03-23 07:50:35 +01:00
941bdbbc56 drivers/bmp180: initial implementation 2016-03-22 19:51:03 +01:00
Hauke Petersen
ff2ff5d008 drivers/srf02: expose trigger and read to API 2016-03-22 17:07:04 +01:00
Hauke Petersen
b68b14b49b Merge pull request #4666 from haukepetersen/opt_driver_dhtsaul
drivers/dht: added support for SAUL
2016-03-22 11:06:16 +01:00
Cenk Gündoğan
e6de2924ad drivers: mma8652: add mma8652_params_t for initialization 2016-03-21 16:16:11 +01:00
Hauke Petersen
08ce2a5090 drivers/dht: adapted to GPIO changes 2016-03-17 14:55:31 +01:00
Hauke Petersen
e51d634aeb drivers: adapted gpio_init(_x)() calls 2016-03-17 14:55:30 +01:00
Hauke Petersen
2515a3f9ef drivers/gpio: changed the way the mode is configured
- joined pushpull and dir into one single mode parameter
- with this enabled the configuration of open-drain mode
2016-03-17 14:37:24 +01:00
Hauke Petersen
7c86467ef0 drivers/dht: added SAUL support 2016-03-17 10:39:42 +01:00
Hauke Petersen
d1d7192d93 drivers/saul: added default NOTSUP function 2016-03-17 10:29:34 +01:00
Oleg Hahm
1fe7c4b17b led: move header into include directory 2016-03-16 16:09:45 +01:00
Martine Lenders
1caf0bcc8a Merge pull request #4645 from authmillenon/netdev2/enh/ieee802154
netdev2: add basic IEEE 802.15.4 support
2016-03-15 18:28:29 +01:00
Martine Lenders
b0b76ba3a6 gnrc: initial import of GNRC<->netdev2 glue code for 802.15.4 2016-03-15 17:11:22 +01:00
Hauke Petersen
2d2126e909 drivers/uart: use uint8_t for data in cb signature 2016-03-15 10:57:44 +01:00
Hauke Petersen
40ae604c3b drivers/dac: reworked DAC driver interface 2016-03-14 20:13:24 +01:00
Hauke Petersen
9bcfec9032 drivers/mq3: adapted to ADC driver changes 2016-03-14 13:06:24 +01:00
Hauke Petersen
58a8884acf drivers/periph: remodeled the ADC periph interface 2016-03-14 10:38:42 +01:00
Martine Lenders
8bacb0fb62 Merge pull request #5011 from dkm/pr/servo.fix
drivers/servo: fix API doc
2016-03-13 08:48:00 +01:00
Joakim Nohlgård
dc303a4f0b sys/uart_stdio: rename STDIO -> UART_STDIO_DEV, move to header 2016-03-11 12:04:00 +01:00
Hauke Petersen
49ac533eba drivers/spi: made conf and speed types overridable 2016-03-09 17:59:25 +01:00
Marc Poulhiès
7c0c942e8e drivers/servo: fix API doc
Parameters for servo_init/servo_set are in ms only when using default values for SERVO_RESOLUTION and SERVO_FREQUENCY.
When using non default values, user must scale values to be in the range of [0, SERVO_RESOLUTION]

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2016-03-09 13:28:27 +01:00
Martine Lenders
b1a9dfe384 netdev2_ieee802154: import of common IEEE802.15.4 netdev2 module 2016-03-07 21:11:05 +01:00
Hauke Petersen
af48dadb26 Merge pull request #4807 from gebart/pr/saul-lis3dh
drivers/lis3dh: Add SAUL support
2016-03-02 13:23:29 +01:00
Peter Kietzmann
c8829a49b8 Merge pull request #4838 from haukepetersen/fix_periph_timerarg
drivers/timer: added callback argument
2016-03-01 08:55:54 +01:00
Joakim Nohlgård
3af809bdfc Merge pull request #4910 from kaspar030/core_header_cleanup
core: header cleanup
2016-02-29 22:48:35 +01:00
Peter Kietzmann
a8b6fba69c Merge pull request #4664 from haukepetersen/opt_driver_dhtinit
drivers/dht: numerous improvements
2016-02-29 16:23:31 +01:00
Hauke Petersen
2b97513637 drivers/timer: added callback argument 2016-02-29 14:40:08 +01:00
PeterKietzmann
e2cd3b1508 drivers/nrf24l01p: unified return values and fixed doc 2016-02-29 12:00:01 +01:00
9082273746 core: header cleanup 2016-02-28 22:46:28 +01:00
Bas Stottelaar
9e50d09b60 drivers: si70xx: temperature and humidity sensor
This includes the Si7006, Si7013, Si7020 and Si7021 I2C sensors, including a
test application.
2016-02-23 07:32:40 +01:00
Martine Lenders
dad883c745 netdev2: provide capability to pass up packet status information 2016-02-22 11:31:58 +01:00