1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Go to file
Marian Buschsieweke 972367432a
drivers/cc110x: Rewrite of the cc110x driver
The cc110x driver has been re-written from scratch to overcome the limitations
of the old driver. The main motivation of the rewrite was to achieve better
maintainability by a detailed documentation, reduce the complexity and the
overhead of the SPI communication with the device, and to allow to
simultaneously use transceivers with different configuration regarding the used
base band, the channel bandwidth, the modulation rate, and the channel map.

Features of this driver include:

- Support for the CC1100, CC1101, and the CC1100e sub-gigahertz transceivers.
- Detailed documentation of every aspect of this driver.
- An easy to use configuration API that allows setting the transceiver
  configuration (modulation rate, channel bandwidth, base frequency) and the
  channel map.
- Fast channel hopping by pre-calibration of the channels during device
  configuration (so that no calibration is needed during hopping).
- Simplified SPI communication: Only during start-up the MCU has to wait
  for the transceiver to be ready (for the power regulators and the crystal
  to stabilize). The old driver did this for every SPI transfer, which
  resulted in complex communication code. This driver will wait on start up
  for the transceiver to power up and then use RIOT's SPI API like every other
  driver. (Not only the data sheet states that this is fine, it also proved to
  be reliable in practise.)
- Greatly reduced latency: The RTT on the old driver (@150 kbps data rate) was
  about 16ms, the new driver (@250 kbps data rate) has as RTT of ~3ms
  (depending on SPI clock and on CPU performance) (measured with ping6).
- Increased reliability: The preamble size and the sync word size have been
  doubled compared to the old driver (preamble: 8 bytes instead of 4,
  sync word: 4 byte instead of 2). The new values are the once recommended by
  the data sheet for reliable communication.
- Basic diagnostic during driver initialization to detect common issues as
  SPI communication issues and GDO pin configuration/wiring issues.
- TX power configuration with netdev_driver_t::set() API-integration
- Calls to netdev_driver_t::send() block until the transmission has completed
  to ease the use of the API (implemented without busy waiting, so that the
  MCU can enter lower power states or other threads can be executed).
2019-08-20 16:32:11 +02:00
.github github: add configuration for stale-bot 2019-08-09 12:55:55 +02:00
boards drivers: Removed driver for CC110x transceivers 2019-08-19 12:56:47 +02:00
bootloaders/riotboot riotboot: fix APP_VER default documentation 2019-07-08 16:33:01 +02:00
core core: make use of ARRAY_SIZE macro 2019-08-06 19:43:54 +02:00
cpu cpu/esp32: fixes printf and puts 2019-08-17 11:34:20 +02:00
dist testrunner/utils: add helper for test_utils_interactive_sync 2019-08-15 12:26:28 +02:00
doc Merge pull request #10162 from danpetry/doc/rdm1-RIOT-design-goals 2019-05-09 11:04:24 +02:00
drivers drivers/cc110x: Rewrite of the cc110x driver 2019-08-20 16:32:11 +02:00
examples drivers: Removed driver for CC110x transceivers 2019-08-19 12:56:47 +02:00
makefiles drivers/cc110x: Rewrite of the cc110x driver 2019-08-20 16:32:11 +02:00
pkg pkg/nimble: adapt to nrf51 family 2019-08-07 09:53:55 +02:00
sys drivers/cc110x: Rewrite of the cc110x driver 2019-08-20 16:32:11 +02:00
tests drivers: Removed driver for CC110x transceivers 2019-08-19 12:56:47 +02:00
.bandit codacy: disable complaining about python assert 2019-03-01 13:43:37 +01:00
.drone.yml .drone.yml: remove mcu groups from the build test matrix 2019-06-14 11:32:15 +02:00
.gitattributes git: handle patch files as binary 2015-12-04 11:46:33 +01:00
.gitignore gitignore: add clangd compile flags 2019-08-01 08:07:00 +02:00
.mailmap git: mailmap: deduplicate @jia200x 2017-11-02 19:46:01 +01:00
.murdock murdock: allow multiple files to be sent along with a test job 2019-07-13 11:57:53 +02:00
.travis.yml .travis.yml: provide base branch to static tests 2019-01-15 13:42:28 +01:00
CODE_OF_CONDUCT.md github: add Code of Conduct 2017-12-08 09:10:01 +01:00
CONTRIBUTING.md CONTRIBUTING: update print toolchain versions command 2019-05-24 17:14:06 +02:00
doc.txt doc: add configurations Doxygen group 2018-12-14 13:39:44 +01:00
LICENSE * updated LICENSE file from GPL to LPGL 2013-06-18 17:19:53 +02:00
LOSTANDFOUND.md LOSTANDFOUND: add cpu/mips32r2_generic. 2019-07-16 11:19:29 +02:00
MAINTAINING.md Merge pull request #9973 from miri64/doc/enh/multi-review 2018-10-01 15:56:18 +02:00
Makefile makefiles/boards.inc.mk: list boards variables 2019-06-07 16:32:04 +02:00
Makefile.base Makefile.base: define 'clean' as .PHONY 2018-08-22 16:25:37 +02:00
Makefile.dep drivers/cc110x: Rewrite of the cc110x driver 2019-08-20 16:32:11 +02:00
Makefile.features Makefile.features: include CPU/Makefile.features when CPU is defined 2019-07-01 17:23:14 +02:00
Makefile.include makefiles/buildtest: add a buildtest-indocker 2019-08-14 17:02:35 +02:00
README.md Documentation: update README with new architectures supported 2019-03-26 16:44:47 +01:00
release-notes.txt release-notes.txt: add notes for 2019.07 release 2019-07-25 09:41:06 +02:00
uncrustify-riot.cfg uncrustify: split lines at 80 chars 2019-03-04 16:14:57 +01:00
Vagrantfile vagrant: sync host time 2018-01-26 15:58:06 +01:00

Nightly CI status master IRC

                      ZZZZZZ
                    ZZZZZZZZZZZZ
                  ZZZZZZZZZZZZZZZZ
                 ZZZZZZZ     ZZZZZZ
                ZZZZZZ        ZZZZZ
                ZZZZZ          ZZZZ
                ZZZZ           ZZZZZ
                ZZZZ           ZZZZ
                ZZZZ          ZZZZZ
                ZZZZ        ZZZZZZ
                ZZZZ     ZZZZZZZZ       777        7777       7777777777
          ZZ    ZZZZ   ZZZZZZZZ         777      77777777    77777777777
      ZZZZZZZ   ZZZZ  ZZZZZZZ           777     7777  7777       777
    ZZZZZZZZZ   ZZZZ    Z               777     777    777       777
   ZZZZZZ       ZZZZ                    777     777    777       777
  ZZZZZ         ZZZZ                    777     777    777       777
 ZZZZZ          ZZZZZ    ZZZZ           777     777    777       777
 ZZZZ           ZZZZZ    ZZZZZ          777     777    777       777
 ZZZZ           ZZZZZ     ZZZZZ         777     777    777       777
 ZZZZ           ZZZZ       ZZZZZ        777     777    777       777
 ZZZZZ         ZZZZZ        ZZZZZ       777     777    777       777
  ZZZZZZ     ZZZZZZ          ZZZZZ      777     7777777777       777
   ZZZZZZZZZZZZZZZ            ZZZZ      777      77777777        777
     ZZZZZZZZZZZ               Z
        ZZZZZ

The friendly Operating System for IoT!

RIOT is a real-time multi-threading operating system that supports a range of devices that are typically found in the Internet of Things (IoT): 8-bit, 16-bit and 32-bit microcontrollers.

RIOT is based on the following design principles: energy-efficiency, real-time capabilities, small memory footprint, modularity, and uniform API access, independent of the underlying hardware (this API offers partial POSIX compliance).

RIOT is developed by an international open source community which is independent of specific vendors (e.g. similarly to the Linux community). RIOT is licensed with LGPLv2.1, a copyleft license which fosters indirect business models around the free open-source software platform provided by RIOT, e.g. it is possible to link closed-source code with the LGPL code.

FEATURES

RIOT is based on a microkernel architecture, and provides features including, but not limited to:

  • a preemptive, tickless scheduler with priorities
  • flexible memory management
  • high resolution, long-term timers
  • support 100+ boards based on AVR, MSP430, ESP8266, ESP32, MIPS, RISC-V, ARM7 and ARM Cortex-M
  • the native port allows to run RIOT as-is on Linux, BSD, and MacOS. Multiple instances of RIOT running on a single machine can also be interconnected via a simple virtual Ethernet bridge
  • IPv6
  • 6LoWPAN (RFC4944, RFC6282, and RFC6775)
  • UDP
  • RPL (storing mode, P2P mode)
  • CoAP
  • CCN-Lite
  • Sigfox
  • LoRaWAN

GETTING STARTED

  • You want to start the RIOT? Just follow our quickstart guide or try this tutorial. For specific toolchain installation, follow instructions in the getting started page.
  • The RIOT API itself can be built from the code using doxygen. The latest version of the documentation is uploaded daily to riot-os.org/api.

USING THE NATIVE PORT WITH NETWORKING

If you compile RIOT for the native cpu and include the netdev_tap module, you can specify a network interface like this: PORT=tap0 make term

SETTING UP A TAP NETWORK

There is a shell script in RIOT/dist/tools/tapsetup called tapsetup which you can use to create a network of tap interfaces.

USAGE

To create a bridge and two (or count at your option) tap interfaces:

./dist/tools/tapsetup/tapsetup [-c [<count>]]

CONTRIBUTE

To contribute something to RIOT, please refer to our contributing document.

MAILING LISTS

LICENSE

  • Most of the code developed by the RIOT community is licensed under the GNU Lesser General Public License (LGPL) version 2.1 as published by the Free Software Foundation.
  • Some external sources, especially files developed by SICS are published under a separate license.

All code files contain licensing information.

For more information, see the RIOT website:

https://www.riot-os.org