[Snek] [keith-packard/snek] ee8f5e: snekde: Support 57600 and 115200 baud

Keith Packard noreply at github.com
Thu Feb 17 13:18:57 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/keith-packard/snek
  Commit: ee8f5ed6085efb72584fc53f64c8ad6bbc63f8bf
      https://github.com/keith-packard/snek/commit/ee8f5ed6085efb72584fc53f64c8ad6bbc63f8bf
  Author: Keith Packard <keithp at keithp.com>
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
    M README.md
    M snekde/snekde.py

  Log Message:
  -----------
  snekde: Support 57600 and 115200 baud

8MHz atmega devices cannot use 115200 baud because the clock
resolution isn't fine enough to get a close match in bit rate. So,
those devices will run at 57600 baud instead.

Support this by using the new ^T handling in the 328p chip code to
auto-detect the device baud rate when initially opening the device and
also adding a baud rate selection key (F8) which switches between
115200 and 57600 baud.

Display this in the status bar along with the device name.

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


  Commit: ae9cca6f26db60568aeb8d30ec3da4a7779d8d99
      https://github.com/keith-packard/snek/commit/ae9cca6f26db60568aeb8d30ec3da4a7779d8d99
  Author: Keith Packard <keithp at keithp.com>
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
    M ports/duemilanove-big/Makefile

  Log Message:
  -----------
  ports/duemilanove-big: Change Makefile extensions to optional

This lets ports using this as a base override the settings for extra
source and builtins.

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


  Commit: 54ec5f895e73da0833f652b347a3f032f60ccfc9
      https://github.com/keith-packard/snek/commit/54ec5f895e73da0833f652b347a3f032f60ccfc9
  Author: Keith Packard <keithp at keithp.com>
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
    M ports/duemilanove/Makefile
    M ports/uno/Makefile

  Log Message:
  -----------
  ports/duemilanove: Move vpath from uno/Makefile to duemilanove/Makefile

This will let other ports share this bit.

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


  Commit: fe4a379230829a951fdbfe5f9fda699beea26a9c
      https://github.com/keith-packard/snek/commit/fe4a379230829a951fdbfe5f9fda699beea26a9c
  Author: Keith Packard <keithp at keithp.com>
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
    M ports/duemilanove/Makefile
    M ports/duemilanove/snek-duemilanove-install.in

  Log Message:
  -----------
  ports/duemilanove: Make baud and clock configurable

This allows other 328 ports to have different values

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


  Commit: c6dea835842c10c1009681065b363dcb8de3949c
      https://github.com/keith-packard/snek/commit/c6dea835842c10c1009681065b363dcb8de3949c
  Author: Keith Packard <keithp at keithp.com>
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
    M ports/uno/Makefile

  Log Message:
  -----------
  ports/uno: Remove duplicate code to generate snek-uno-install

The duemilanove Makefile already has this bit

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


  Commit: ecac504fad1c710f4c56ed89ffdd92db150d7bb7
      https://github.com/keith-packard/snek/commit/ecac504fad1c710f4c56ed89ffdd92db150d7bb7
  Author: Keith Packard <keithp at keithp.com>
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
    M README.md
    M doc/snek.adoc
    A ports/lilypad/.gitignore
    A ports/lilypad/Makefile
    M snek-install.defs

  Log Message:
  -----------
  Add port to standard LilyPad

This is an ATMega 328P running at 8MHz because of the 3.3V power
supply.  This port includes the basic I/O code along with the 'tone'
builtins to support the LilyPad beeper when connected to pin 5. This
required leaving out dictionary and slice support to save flash.

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


  Commit: 8db04a237e7a35f590ba94726385ff13149c44f7
      https://github.com/keith-packard/snek/commit/8db04a237e7a35f590ba94726385ff13149c44f7
  Author: Keith Packard <keithp at keithp.com>
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
    M doc/snek.adoc
    A ports/lilypad-big/.gitignore
    A ports/lilypad-big/Makefile
    M snek-install.defs

  Log Message:
  -----------
  Add 'big' port to standard LilyPad

Port to LilyPad that takes all available ROM instead of leaving space
for optiboot. This uses the duemilanove-big port as a template,
dropping dict and adding tone

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


  Commit: 74e19c3245ed25a53ff7f205f410b50414623dde
      https://github.com/keith-packard/snek/commit/74e19c3245ed25a53ff7f205f410b50414623dde
  Author: Keith Packard <keithp at keithp.com>
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
    M ports/esp32/Makefile
    M ports/esp32/main/snek-main.c

  Log Message:
  -----------
  ports/esp32: Update to current esp32 sdk

The name of the 'tick' type changed. Also added more cleaning.

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


Compare: https://github.com/keith-packard/snek/compare/7c0ddb9f4c77...74e19c3245ed


More information about the Snek mailing list