1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Go to file
iosabi dfdd076125 cpu/qn908x: Implement blocking SPI support.
This patch implements the basic support the last of the FLEXCOMM modes,
Serial Peripheral Interface, in a simple blocking mode with busy wait,
which is enough to test all the SPI functionality end-to-end.

Tested reading and writing registers on a SPI peripheral, and checked
with the oscilloscope that the frequencies were as expected.

Results from `tests/periph_spi`:

```
> init 0 0 2 -1 0
SPI_DEV(0) initialized: mode: 0, clk: 2, cs_port: -1, cs_pin: 0
> bench

 1 - write 1000 times 1 byte:			16002	16009
 2 - write 1000 times 2 byte:			18001	18008
 3 - write 1000 times 100 byte:		802000	802007
 4 - write 1000 times 1 byte to register:	24003	24010
 5 - write 1000 times 2 byte to register:	26001	26008
 6 - write 1000 times 100 byte to register:	810001	810008
 7 - read 1000 times 2 byte:			23003	23009
 8 - read 1000 times 100 byte:		807002	807009
 9 - read 1000 times 2 byte from register:	32002	32009
10 - read 1000 times 100 byte from register:	816002	816009
11 - transfer 1000 times 2 byte:		23003	23009
12 - transfer 1000 times 100 byte:		807003	807010
13 - transfer 1000 times 2 byte to register:	32003	32009
14 - transfer 1000 times 100 byte to register:816002	816009
15 - acquire/release 1000 times:		7222	7228
-- - SUM:					5059250	5059351

```
2021-01-31 16:27:20 +00:00
.circleci .circleci: use riot/static-test-tools Docker image 2021-01-14 19:08:15 +01:00
.github Merge pull request #15770 from aabadie/pr/ci/docker_static-test-tools 2021-01-26 16:35:05 +01:00
boards boards/qn9080dk: Add ADC configuration 2021-01-30 17:25:09 +00:00
bootloaders bootloader: create new bootloader application with DFU support 2021-01-12 11:34:22 +01:00
core core/thread: Allow for inline thread_yield_higher 2021-01-19 11:03:20 +01:00
cpu cpu/qn908x: Implement blocking SPI support. 2021-01-31 16:27:20 +00:00
dist Merge pull request #15807 from haukepetersen/opt_jlink_versioncheckstuff 2021-01-25 14:03:06 +01:00
doc doc: add emulator documentation 2021-01-13 17:14:39 +01:00
drivers Merge pull request #15843 from benpicco/mtd_write_page_hl 2021-01-28 18:43:42 +01:00
examples example/default: add nrf52840dongle to BOARD_PROVIDE_NETIF 2021-01-28 11:53:15 +01:00
fuzzing all: remove traces of kernel_types.h 2020-11-25 17:52:34 +01:00
kconfigs Merge pull request #15859 from fjmolinas/pr_newlib_feature 2021-01-27 10:06:08 +01:00
makefiles Merge pull request #15843 from benpicco/mtd_write_page_hl 2021-01-28 18:43:42 +01:00
pkg Merge pull request #15843 from benpicco/mtd_write_page_hl 2021-01-28 18:43:42 +01:00
sys Merge pull request #14987 from bergzand/pr/riscv/semihosting 2021-01-27 18:49:35 +01:00
tests Merge pull request #15874 from btcven/2021_01_27-ieee802154-submac 2021-01-29 21:30:06 +01: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: ignore .elf files 2020-10-20 10:13:24 +02:00
.mailmap mailmap: deduplicate @benpicco 2020-04-28 11:58:44 +02:00
.murdock tests: add crypto and prng kconfig configurations 2021-01-26 17:50:20 +01:00
CODE_OF_CONDUCT.md github: add Code of Conduct 2017-12-08 09:10:01 +01:00
CODEOWNERS drivers: add bq2429x power management IC driver 2021-01-22 19:30:12 +01:00
CODING_CONVENTIONS_C++.md CODING_CONVENTIONS_C++.md: Fixed typos and links 2019-11-08 10:36:27 +01:00
CODING_CONVENTIONS.md CODING_CONVENTIONS.md: fix typo 'seperate' -> 'separate' 2020-10-02 07:47:17 +02:00
CONTRIBUTING.md CONTRIBUTING.md: add link to forum 2020-12-09 17:24:05 +01:00
doc.txt doc: Describe interaction between DEVELHELP and assert 2020-10-25 23:27:51 +01:00
Kconfig kconfig: add ERROR symbol for conflicting modules 2020-10-09 18:04:17 +02:00
LICENSE * updated LICENSE file from GPL to LPGL 2013-06-18 17:19:53 +02:00
LOSTANDFOUND.md lostandfound: document removal of boards/slwstk6220a 2021-01-05 12:19:47 +01:00
MAINTAINING.md MAINTAINING: Clarify guidelines 2020-07-13 10:57:03 +02:00
Makefile Makefile: advertise forum on make 2020-12-10 10:10:03 +01:00
Makefile.base makefile: add a check for real modules 2020-09-04 15:01:16 +02:00
Makefile.dep Makefile.dep: add TOOLCHAIN specific dependencies 2021-01-27 11:13:03 +01:00
Makefile.features treewide: model newlib as a FEATURE 2021-01-27 09:24:25 +01:00
Makefile.include Makefile.include: move default TOOLCHAIN before global goals 2021-01-27 11:11:43 +01:00
README.md README: Add merge-chance badge 2021-01-11 13:13:58 +01:00
release-notes.txt release-notes.txt: add 2020.10 release notes 2020-10-30 17:19:18 +01:00
SECURITY.md SECURITY.md: fix mailto link 2020-12-10 14:18:19 +01:00
uncrustify-riot.cfg uncrustify-riot.cfg: Don't indent switch cases 2020-08-23 21:17:20 +02:00
Vagrantfile tools/packer: adapt for Ubuntu 18.04 2020-02-19 19:23:07 +01:00

Nightly CI status master GitHub release License API docs Wiki Merge chance Stack Overflow questions Twitter IRC Matrix

                      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.

FORUM

Do you have a question, want to discuss a new feature, or just want to present your latest project using RIOT? Come over to our forum and post to your hearts content.

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