[Snek] [keith-packard/snek] 626e70: Add -Wimplicit-fallthrough for most targets

Keith Packard noreply at github.com
Tue May 14 17:15:20 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/keith-packard/snek
  Commit: 626e70d31d857174fdfa6eab40f7726991d7d6ae
      https://github.com/keith-packard/snek/commit/626e70d31d857174fdfa6eab40f7726991d7d6ae
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-14 (Tue, 14 May 2019)

  Changed paths:
    M snek-duino/Makefile
    M snek-mega/Makefile
    M snek.defs

  Log Message:
  -----------
  Add -Wimplicit-fallthrough for most targets

This GCC warning is not available in avr-gcc, so leave it out
on those platforms.

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: 604cf2366d925451ec5e4aebbc2059e1c2b26227
      https://github.com/keith-packard/snek/commit/604cf2366d925451ec5e4aebbc2059e1c2b26227
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-14 (Tue, 14 May 2019)

  Changed paths:
    A samd21/ao-dma-samd21.c
    A samd21/ao-dma-samd21.h
    M samd21/samd21.h

  Log Message:
  -----------
  samd21: Add DMA API

This isn't used anywhere, but it will be useful for SPI and I2C when
those are added.

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: 95920c4819f3b8725ace6950d9d5996203029bd8
      https://github.com/keith-packard/snek/commit/95920c4819f3b8725ace6950d9d5996203029bd8
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-14 (Tue, 14 May 2019)

  Changed paths:
    M samd21/snek-gpio.c

  Log Message:
  -----------
  samd21: Add pin definitions for up to 31 GPIOs

And complain if the target has more than that.

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: 979ec6db8140ec31634277c10c3f38c1df31a241
      https://github.com/keith-packard/snek/commit/979ec6db8140ec31634277c10c3f38c1df31a241
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-14 (Tue, 14 May 2019)

  Changed paths:
    A samd21/ao-neopixel.c
    M samd21/ao-snek.h
    M samd21/snek-altos.builtin
    M samd21/snek-samd21.defs

  Log Message:
  -----------
  samd21: Add bit-banging neopixel support

To support neopixel devices on an arbitrary GPIO pin, we have to
bit-bang the protocol. DMA doesn't work because the SAMD21G DMAC
engine can't write to the PORT registers due to a missing connection
inside the SoC.

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: c733ae342ec984aad0d3b32ae8f4f02766b0ffa3
      https://github.com/keith-packard/snek/commit/c733ae342ec984aad0d3b32ae8f4f02766b0ffa3
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-14 (Tue, 14 May 2019)

  Changed paths:
    M crickit-snek/ao-pins.h
    M crickit-snek/crickit-snek.builtin

  Log Message:
  -----------
  crickit-snek: Add neopixel GPIOs

The internal neopixel is on port a, pin 27
The external neopixel connection is on port a, pin 20

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: 02b7f483b6b80a9f17ac59511797a9d0c7140406
      https://github.com/keith-packard/snek/commit/02b7f483b6b80a9f17ac59511797a9d0c7140406
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-14 (Tue, 14 May 2019)

  Changed paths:
    M metro-snek/ao-pins.h
    M metro-snek/metro-snek.builtin

  Log Message:
  -----------
  metro-snek: Add neopixel, scl and sda pin definitions

The internal neopixel is on port a, pin 30
SDA is port a, pin 22
SCL is port a, pin 23

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: d772e9e6cbcdced23195a6eec5abf576987e67d3
      https://github.com/keith-packard/snek/commit/d772e9e6cbcdced23195a6eec5abf576987e67d3
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-14 (Tue, 14 May 2019)

  Changed paths:
    M samd21/ao-snek.h
    M samd21/snek-gpio.c
    M snek-memory.c

  Log Message:
  -----------
  samd21: Re-use neopixel buffer when possible

Implement 'cache' objects in the memory allocator. These are discarded
at each collect call. Use this to hold on to the neopixel buffer so that
it need not be allocated on every call.

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: d7d86cb58e8272f2eed2cf3cd62629eba1b74ee2
      https://github.com/keith-packard/snek/commit/d7d86cb58e8272f2eed2cf3cd62629eba1b74ee2
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-14 (Tue, 14 May 2019)

  Changed paths:
    M samd21/ao-snek.h
    M samd21/snek-gpio.c

  Log Message:
  -----------
  samd21: Let pins ask for pull-down instead of pull-up behaviour

This lets pin configurations declare whether they want to be pull-up
or pull-down. Maybe this should be exposed to applications somehow?

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: 28847d4c29bf4e5ee2e74ffc433a0df1ae3dcb5e
      https://github.com/keith-packard/snek/commit/28847d4c29bf4e5ee2e74ffc433a0df1ae3dcb5e
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-14 (Tue, 14 May 2019)

  Changed paths:
    A examples/neopixel.py
    A playground-snek/.gitignore
    A playground-snek/Makefile
    A playground-snek/ao-pins.h
    A playground-snek/playground-snek.builtin
    M snek-install.defs

  Log Message:
  -----------
  playground-snek: Add support for Adafruit Circuit Playground Express

This is another SAMD21G based board, but this time with 10 Neopixels,
audio in/out, some switches and a bunch of other sensors.

Snek currently supports GPIOs, neopixel and the analog sensors
(temperature and light).

Signed-off-by: Keith Packard <keithp at keithp.com>


Compare: https://github.com/keith-packard/snek/compare/b9f4a5ca4ebb...28847d4c29bf


More information about the Snek mailing list