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

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


  Branch: refs/heads/lilypad
  Home:   https://github.com/keith-packard/snek
  Commit: 61e001703c3c089966302a5df2501fd0a5e3c1d7
      https://github.com/keith-packard/snek/commit/61e001703c3c089966302a5df2501fd0a5e3c1d7
  Author: Keith Packard <keithp at keithp.com>
  Date:   2022-02-13 (Sun, 13 Feb 2022)

  Changed paths:
    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 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: f8b09f4d1d1ea9f6985b6364953f4a96a6aef857
      https://github.com/keith-packard/snek/commit/f8b09f4d1d1ea9f6985b6364953f4a96a6aef857
  Author: Keith Packard <keithp at keithp.com>
  Date:   2022-02-13 (Sun, 13 Feb 2022)

  Changed paths:
    M chips/atmega/snek-328p.c
    M ports/grove/snek-grove.builtin

  Log Message:
  -----------
  chips/atmega: Add tonefor builtin to 328p io driver

This adds a function for this chip that is part of the usual tone
support.

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


  Commit: 6b956e0f827cf6eddef53f157016a7a597f8178f
      https://github.com/keith-packard/snek/commit/6b956e0f827cf6eddef53f157016a7a597f8178f
  Author: Keith Packard <keithp at keithp.com>
  Date:   2022-02-13 (Sun, 13 Feb 2022)

  Changed paths:
    M chips/atmega/snek-328p.c
    M ports/grove/snek-grove.builtin

  Log Message:
  -----------
  chips/atmega: Use BUILTIN defines to select tone code

Instead of requiring a separate SNEK_TONE define, use the existing
SNEK_BUILTIN_tone and SNEK_BUILTIN_tonefor defines to select whether
the tone code is included in the 328p io driver.

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


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

  Changed paths:
    M ports/duemilanove/Makefile
    M ports/duemilanove/snek-duemilanove-install.in
    A ports/lilypad/Makefile
    M ports/uno/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>


Compare: https://github.com/keith-packard/snek/compare/182236ed0f6e...d00ce45412c7


More information about the Snek mailing list