1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
Go to file
Marian Buschsieweke 1d0f90dcdf
cpu/lpc2387: Various fixes for GPIO driver
- Fixed documentation
- Use bitwise operation instead of multiplication and addition in `GPIO_PIN()`
- Allow GPIOs to be configured as input via `gpio_init()`
- Fixed bugs in `gpio_init_mux`:
    - `0x01 << ((pin & 31) * 2)` was used before to generate the bitmask, but
      this would shift by 62 to the left. Correct is `0x01 << ((pin & 15) * 2)`
      (See [datasheet](https://www.nxp.com/docs/en/user-guide/UM10211.pdf) at
      pages 156ff)
    - Only one of the two bits was cleared previously
- Changed strategy to access GPIO pins:
    - Previous strategy:
        - Set all bits in FIOMASK except the one for the pin to control to
          disable access to them
        - Set/clear/read all pins in the target GPIO port (but access to all but
          the target pin is ignored because of the applied FIOMASK)
    - New strategy:
        - Set/clear/read only the target pin
    - Advantages:
        - Only one access to a GPIO register instead of two
        - Proven approach: Access to GPIOs on lpc2387 is mostly done by
          accessing the GPIO registers directy (e.g. see the sht11 driver).
          Those accesses never touch the FIOMASK register
        - No unwanted side effects: Disabling all but one pin in a GPIO port
          without undoing that seems not to be a good idea
2018-06-18 09:10:25 +02:00
.github github: add issue template 2017-12-08 12:11:44 +01:00
boards wsn430: IoT-LAB requires the HEXFILE for flashing 2018-06-15 15:37:21 +02:00
core core: add more stacksize defines 2018-06-14 23:29:03 +02:00
cpu cpu/lpc2387: Various fixes for GPIO driver 2018-06-18 09:10:25 +02:00
dist makefile.iotlab.single: add 'info-iotlab-node' target 2018-06-15 15:37:33 +02:00
doc/doxygen doc: exclude fortuna sources 2018-05-29 18:40:59 +02:00
drivers drivers/at: make OK and ERROR replies configurable 2018-06-13 09:49:13 +02:00
examples examples: fix doxygen grouping 2018-06-11 19:12:02 +02:00
makefiles makefiles/vars.inc.mk: fixup indentation 2018-06-13 13:29:20 +02:00
pkg pkg: add support for tinycrypt 2018-06-15 10:49:38 +02:00
sys Merge pull request #9360 from gebart/pr/embunit-const 2018-06-15 17:04:20 +02:00
tests Merge pull request #7786 from kaspar030/add_some_benchmarks 2018-06-16 10:18:22 +02:00
.drone.yml drone: adjust path to build_and_test.sh 2016-11-29 18:38:44 +01:00
.gitattributes git: handle patch files as binary 2015-12-04 11:46:33 +01:00
.gitignore .gitignore: Add scan-build to ignore list 2017-08-22 12:43:54 +02:00
.mailmap git: mailmap: deduplicate @jia200x 2017-11-02 19:46:01 +01:00
.murdock murdock: unify dwq env list, pass NIGHTLY and RUN_TESTS to workers 2018-04-11 09:57:18 +02:00
.travis.yml travis: install flake8 using pip3 2017-12-20 13:34:42 +01:00
CODE_OF_CONDUCT.md github: add Code of Conduct 2017-12-08 09:10:01 +01:00
CONTRIBUTING.md doc: Add link to code of conduct to contribution guidelines 2017-12-08 12:49:37 +01:00
doc.txt doc: describe usage of DEVELHELP 2017-11-23 18:13:55 +01:00
LICENSE * updated LICENSE file from GPL to LPGL 2013-06-18 17:19:53 +02:00
LOSTANDFOUND.md lostandfound: fix typo on qemu-i386 2018-01-11 21:17:58 +01:00
Makefile make: replace curly braces with parenthesis 2018-03-22 20:43:15 +01:00
Makefile.base make: replace curly braces with parenthesis 2018-03-22 20:43:15 +01:00
Makefile.dep pkg/ccnl: clean up build dependencies 2018-06-10 13:24:28 +02:00
Makefile.include makefile.iotlab.single: add IoT-LAB testbed support for one node 2018-06-15 15:37:18 +02:00
README.md readme: add badge to join IRC easily 2018-04-16 17:52:35 +02:00
release-notes.txt release notes 2018.04 typo fix 2018-05-11 17:58:24 +02:00
uncrustify-riot.cfg uncrustify: check no newline at end of file 2018-05-29 11:12:09 +02: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, MIPS, 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

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 the development procedures and read all notes for best practice.

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:

http://www.riot-os.org