[Snek] [keith-packard/snek] 5444f5: Allow .builtin files to define numeric constants

Keith Packard noreply at github.com
Sat Apr 20 00:13:25 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/keith-packard/snek
  Commit: 5444f5da174ec09e532de2e06c7a996f1fc91615
      https://github.com/keith-packard/snek/commit/5444f5da174ec09e532de2e06c7a996f1fc91615
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-04-19 (Fri, 19 Apr 2019)

  Changed paths:
    M snek-base.builtin
    M snek-builtin.py
    M snek-code.c
    M snek-duino/snek-duino.h
    M snek-lex.c
    M snek-math.builtin
    M snek.h

  Log Message:
  -----------
  Allow .builtin files to define numeric constants

This fixes the kludge in snek-lex.c which listed all of the numeric
constants in a switch statement, and allows devices to add their own
constants too.

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


  Commit: 8b8f7b05ce420f3597af52875c40c71403339b28
      https://github.com/keith-packard/snek/commit/8b8f7b05ce420f3597af52875c40c71403339b28
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-04-19 (Fri, 19 Apr 2019)

  Changed paths:
    M snek-duino/snek-duino.builtin

  Log Message:
  -----------
  snek-duino: Define D0-D13 and A0-A5

Provide names for all of the pins

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


  Commit: 4bfd4284e60f8b9830886924440297117ff740fa
      https://github.com/keith-packard/snek/commit/4bfd4284e60f8b9830886924440297117ff740fa
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-04-19 (Fri, 19 Apr 2019)

  Changed paths:
    M metro-snek/Makefile
    R metro-snek/altos.ld
    R metro-snek/ao-adc-samd21.c
    R metro-snek/ao-adc-samd21.h
    R metro-snek/ao-arch-funcs.h
    R metro-snek/ao-arch.h
    R metro-snek/ao-flash-samd21.c
    R metro-snek/ao-flash.h
    R metro-snek/ao-interrupt.c
    R metro-snek/ao-led.c
    R metro-snek/ao-led.h
    R metro-snek/ao-metro.c
    R metro-snek/ao-notask.c
    R metro-snek/ao-notask.h
    R metro-snek/ao-panic.c
    M metro-snek/ao-pins.h
    R metro-snek/ao-product.c
    R metro-snek/ao-serial-samd21.c
    R metro-snek/ao-serial.h
    R metro-snek/ao-snek.c
    R metro-snek/ao-snek.h
    R metro-snek/ao-stdio.c
    R metro-snek/ao-tc-samd21.c
    R metro-snek/ao-tc-samd21.h
    R metro-snek/ao-tcc-samd21.c
    R metro-snek/ao-tcc-samd21.h
    R metro-snek/ao-timer.c
    R metro-snek/ao-usb-samd21.c
    R metro-snek/ao-usb.h
    R metro-snek/ao.h
    R metro-snek/make-product.py
    A metro-snek/metro-snek.builtin
    R metro-snek/registers.ld
    R metro-snek/samd21.h
    R metro-snek/snek-altos.builtin
    R metro-snek/snek-altos.c
    R metro-snek/snek-eeprom.c
    R metro-snek/snek-gpio.c
    R metro-snek/snek.ld
    R metro-snek/uf2conv.py
    A samd21/ao-adc-samd21.c
    A samd21/ao-adc-samd21.h
    A samd21/ao-arch-funcs.h
    A samd21/ao-arch.h
    A samd21/ao-flash-samd21.c
    A samd21/ao-flash.h
    A samd21/ao-interrupt.c
    A samd21/ao-led.c
    A samd21/ao-led.h
    A samd21/ao-notask.c
    A samd21/ao-notask.h
    A samd21/ao-panic.c
    A samd21/ao-product.c
    A samd21/ao-serial-samd21.c
    A samd21/ao-serial.h
    A samd21/ao-snek.c
    A samd21/ao-snek.h
    A samd21/ao-stdio.c
    A samd21/ao-tc-samd21.c
    A samd21/ao-tc-samd21.h
    A samd21/ao-tcc-samd21.c
    A samd21/ao-tcc-samd21.h
    A samd21/ao-timer.c
    A samd21/ao-usb-samd21.c
    A samd21/ao-usb.h
    A samd21/ao.h
    A samd21/make-product.py
    A samd21/registers.ld
    A samd21/samd21.h
    A samd21/snek-altos.builtin
    A samd21/snek-altos.c
    A samd21/snek-eeprom.c
    A samd21/snek-gpio.c
    A samd21/snek-samd21.defs
    A samd21/snek-samd21.ld
    A samd21/uf2conv.py
    M snek.defs

  Log Message:
  -----------
  metro-snek: Move common SAMD21 files to ../samd21

This will let them be shared by the crickit port

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


  Commit: d3730c43d462222a3e7063e93e22c911676db45e
      https://github.com/keith-packard/snek/commit/d3730c43d462222a3e7063e93e22c911676db45e
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-04-20 (Sat, 20 Apr 2019)

  Changed paths:
    M samd21/snek-gpio.c

  Log Message:
  -----------
  samd21: Actually select the correct port when setting PWM parameters

The code was always using the GPIO controller for pin 0, instead of
the GPIO controller for the target pin. This worked pretty well when all of the PWM
outputs used the same GPIO controller, and less well when they don't.

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


  Commit: 8a88ae691f1b681c89bdb05c0c48541332d70085
      https://github.com/keith-packard/snek/commit/8a88ae691f1b681c89bdb05c0c48541332d70085
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-04-20 (Sat, 20 Apr 2019)

  Changed paths:
    M Makefile
    M README.md
    A crickit-snek/.gitignore
    A crickit-snek/Makefile
    A crickit-snek/ao-pins.h
    A crickit-snek/crickit-snek.builtin
    M doc/snek.adoc
    M metro-snek/Makefile
    M samd21/snek-gpio.c
    M samd21/snek-samd21.defs
    M windows/snek.cfg.in

  Log Message:
  -----------
  crickit-snek: Add support for Adafruit Crickit board

This board is sold in several forms; the one I tested is the Crickit
FeatherWing, but I think they're all pretty compatible. You ignore the
Feather headers and use the board directly and have access to the
Capacitive touch, Signal, Servo, Drive and Motor connectors.

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


Compare: https://github.com/keith-packard/snek/compare/6737c8b1fc9a...8a88ae691f1b


More information about the Snek mailing list