[Snek] [keith-packard/snek] 861460: Fix missing newline in snek-base.builtin

Keith Packard noreply at github.com
Fri Mar 29 18:30:46 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/keith-packard/snek
  Commit: 8614603471b76839c020eb9e2d6a6154a2982b76
      https://github.com/keith-packard/snek/commit/8614603471b76839c020eb9e2d6a6154a2982b76
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-03-28 (Thu, 28 Mar 2019)

  Changed paths:
    M snek-base.builtin

  Log Message:
  -----------
  Fix missing newline in snek-base.builtin

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


  Commit: 7b79b758438ba7dd5dc9b2e3a7c20bc775da31ec
      https://github.com/keith-packard/snek/commit/7b79b758438ba7dd5dc9b2e3a7c20bc775da31ec
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-03-29 (Fri, 29 Mar 2019)

  Changed paths:
    M metro-snek/ao-usb-samd21.c

  Log Message:
  -----------
  metro-snek: Flush USB at newline

Make sure user sees recent output by flushing when newline is sent.

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


  Commit: 1b7ebe9d79a1f40f10ca4c197836e689bf641eac
      https://github.com/keith-packard/snek/commit/1b7ebe9d79a1f40f10ca4c197836e689bf641eac
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-03-29 (Fri, 29 Mar 2019)

  Changed paths:
    M snek-io.c

  Log Message:
  -----------
  Don't flush output after echoing newline

Assume the lower level code always flushes at newline.

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


  Commit: 98766e7eba5918659b5984868494609798aa099d
      https://github.com/keith-packard/snek/commit/98766e7eba5918659b5984868494609798aa099d
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-03-29 (Fri, 29 Mar 2019)

  Changed paths:
    M metro-snek/ao-adc-samd21.c
    M metro-snek/ao-arch-funcs.h
    M metro-snek/ao-metro.c
    M metro-snek/ao-snek.h
    M metro-snek/samd21.h
    M metro-snek/snek-gpio.c

  Log Message:
  -----------
  metro-snek: Fix ADC reading

Reduce ADC clock to 93750Hz. This is well below the required 2.1MHz,
but appears to improve accuracy.

Disable CORREN bit -- I thought this was using the calibration data,
but it turns out to use correction factors presumably gathered from
elsewhere and stored in the gaincorr and offsetcorr registers.

Add various calls to ao_adc_sync. The docs seem to indicate that the
chip will dtrt by stalling the processor until the clock domains are
synchronized, but doing it manually seems reasonable?

Turn off pull-up/pull-down when in ADC mode.

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


  Commit: 978d8df915cde5fdad8103d79b2dcbd6c734b617
      https://github.com/keith-packard/snek/commit/978d8df915cde5fdad8103d79b2dcbd6c734b617
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-03-29 (Fri, 29 Mar 2019)

  Changed paths:
    M metro-snek/.gitignore

  Log Message:
  -----------
  metro-snek: .gitignore ao-product.h (a built file)

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


Compare: https://github.com/keith-packard/snek/compare/0f0df672d122...978d8df915cd


More information about the Snek mailing list