Commit Graph

25290 Commits

Author SHA1 Message Date
Radomir Dopieralski d76eda153b PicoSystem: freeze the Stage library 2021-10-07 15:01:18 +02:00
Dan Halbert 3c993e536e
Merge pull request #5436 from pewpew-game/stage-scale
_stage: Fix handling of scaled display in the stage library
2021-10-07 08:53:36 -04:00
Dan Halbert 1ae69b5cc5 debugging, with instrumentation 2021-10-07 08:19:53 -04:00
Radomir Dopieralski 57dee6406d _stage: Fix handling of scaled display in the stage library
The "scale" parameter wasn't exposed in the library, and there
were some problems in how it was handled.

This also fixes some types in the pixel-drawing functions.
2021-10-07 12:58:43 +02:00
microDev 647e589a6a
rename `i2c_num_status` to `peripherals_i2c_get_free_num` 2021-10-07 14:12:14 +05:30
Dan Halbert de8f7b11ef
fix error message 2021-10-07 10:36:00 +05:30
microDev a3aeefd92c
Merge pull request #5430 from microDev1/patch
Convert all modules to use `MP_REGISTER_MODULE`
2021-10-07 09:44:11 +05:30
Scott Shawcroft 98ee9ee019
Merge pull request #5435 from jpconstantineau/m60-updates
adding battery monitoring pins to M60
2021-10-06 17:58:28 -07:00
Scott Shawcroft 46b1efe909
Merge pull request #5434 from microDev1/ci-patch
Upload patch to artifacts if pre-commit fails
2021-10-06 17:53:46 -07:00
Scott Shawcroft d2add4b4fd
Merge pull request #5409 from skieast/ai_thinker_esp32-c3s
Add AIThinker ESP32-C3S_Kit board
2021-10-06 17:25:26 -07:00
Pierre Constantineau ed68e1f047 fix pre-commit trailing whitespace 2021-10-06 17:46:30 -06:00
Pierre Constantineau 79e68a7404 adding battery monitoring pins to M60 2021-10-06 17:41:49 -06:00
Limor "Ladyada" Fried 218667377c
Merge pull request #5398 from Gadgetoid/patch-picosystem-displayio
PicoSystem: Add DisplayIO to board config
2021-10-06 10:12:29 -04:00
microDev f2a22bb1b1
upload patch to artifacts if pre-commit fails 2021-10-06 18:51:36 +05:30
Scott Shawcroft 04459f5e2a
Merge branch 'main' into ai_thinker_esp32-c3s 2021-10-05 14:28:17 -07:00
Scott Shawcroft 39886701d6
Merge pull request #5404 from microDev1/microdev-micro-c3
Add board MicroDev microC3
2021-10-05 13:31:24 -07:00
microDev a279f7b42c
update extra_coverage.py.exp 2021-10-05 23:48:32 +05:30
microDev 0eafb672b8
Convert all modules to use MP_REGISTER_MODULE
Convert binascii, errno, json, and re to use MP_REGISTER_MODULE.

Resolves #5183.
2021-10-05 18:45:44 +05:30
microDev a46aa48e23
Convert more modules to use MP_REGISTER_MODULE
Convert espidf, os, rp2pio, samd and time to use MP_REGISTER_MODULE.

Related to #5183.
2021-10-05 16:58:24 +05:30
microDev 5907ffbe18
Merge pull request #5429 from process1183/dac_clock_comments
[#4701] Correct DAC clock speed comments for SAMD21 and SAMD51
2021-10-05 10:26:08 +05:30
Josh Gadeken 881724b529
[#4701] Correct DAC clock speed comments for SAMD21 and SAMD51 2021-10-04 22:18:26 -06:00
Dan Halbert 24c6295ed4 Boot protocol and feature reports: compiles; needs to be tested 2021-10-04 22:48:18 -04:00
microDev d9eafffa6a
i2cperipheral implementation for esp32s2 2021-10-05 01:02:55 +05:30
Matthew McGowan f936989c0b chore(usb_vendor): update non-movable memory enum 2021-10-04 07:36:08 -07:00
microDev e8f21f012c
Merge pull request #5427 from EmergReanimator/main
Lose dependency to USB via CIRCUITPY_USB define for atmel port.
2021-10-04 16:37:01 +05:30
EmergReanimator e636db713f Lose dependency to USB via CIRCUITPY_USB define for atmel port. 2021-10-04 10:57:39 +02:00
Dan Halbert fd9c3d17ee
Merge pull request #5421 from microDev1/microdev-micro-s2
Minor updates for board MicroDev microS2
2021-10-02 08:05:31 -04:00
microDev 8b5ea98271
minor updates for board microdev_micro_s2 2021-10-02 17:10:46 +05:30
microDev a63353fe0d
Merge pull request #5419 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-10-02 15:55:52 +05:30
hexthat b48e37eacd
Translated using Weblate (Chinese (Pinyin))
Currently translated at 100.0% (1021 of 1021 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/zh_Latn/
2021-10-01 04:38:02 +02:00
Scott Shawcroft 2025d0c060
Merge pull request #5417 from microDev1/patch
Add `esp32c3` documentation in `readme`
2021-09-30 16:02:51 -07:00
microDev 26fbb4eb85
add esp32c3 documentation in readme 2021-10-01 01:26:05 +05:30
microDev a6ef2ae4aa
Merge pull request #5416 from Neradoc/add-board-id-doc
Add board_id to the board module documentation
2021-10-01 00:04:36 +05:30
Neradoc ab65e88a87 add board_id to the board module documentation 2021-09-30 19:21:03 +02:00
Phil Howard 2fc6a72cc7 PicoSystem: Add DisplayIO & Stage to board config
* Bring up PicoSystem's display with DisplayIO
* Add stage game library
* Add supporting modules - AUDIOIO and KEYPAD
2021-09-30 13:57:03 +01:00
Matthew McGowan e54073b95b feat(swan_r5):bootloader build (UF2_BOOTLOADER=2) does not set the ISR vector table. 2021-09-29 20:40:37 -07:00
Bruce Segal 01d7861fd9 Only build .bin in CI 2021-09-29 20:33:50 -07:00
Bruce Segal b3a46955ea Add AIThinker ESP32-C3S_Kit board 2021-09-29 18:52:16 -07:00
Matthew McGowan 1c1eb49b36 fix(swan_r5):revert changes to GPIO ports. While these ports are available on the L4R5, they aren't used. This fixes a build error on the stm32f412zg_discovery. 2021-09-28 18:52:03 -07:00
Matthew McGowan 9b179ffbe4 style(swan_r5): pre-commit whitespace style changes 2021-09-28 18:52:03 -07:00
Matthew McGowan 295cc18190 style(swan_r5): pre-commit whitespace style changes 2021-09-28 18:52:03 -07:00
Matthew McGowan 8a3fb7bd13 fix(swan_r5):fixes timer definitions in the array. Requires padding to match peripheral with interrupt handler index. 2021-09-28 18:52:02 -07:00
Matthew McGowan 7b7b4997a4 docs(swan_r5): misc comments/formatting 2021-09-28 18:52:02 -07:00
Matthew McGowan 599368373e feat(swan_r5): user button tested 2021-09-28 18:52:02 -07:00
Matthew McGowan 40c3b5c7e6 docs(swan_r5):todo cleanup 2021-09-28 18:52:02 -07:00
Matthew McGowan 88f6bb2cf2 chore(swan_r5):pwmio test 2021-09-28 18:52:02 -07:00
Matthew McGowan 9d27d249cf chore(swan_r5):tests used to smoke test the board functionality 2021-09-28 18:52:02 -07:00
Matthew McGowan 2a05b22f42 reworks memory map for flash 2021-09-28 18:52:02 -07:00
Brandon Satrom 48f67d007e feat: add Blues Swan R5 support
complete pin mapping for Feather pins

stubbed out files needed for complilation. still to be modified

0 out all CPY modules in mpconfigboard.mk until we get the build running

add csv for pin generation for STM32L4R5

add F4R5 references in peripherals files

refactored out board files BECAUSE I AM AN IDIOT; add L4 series system clocks file from CubeMX

took a guess at the number of USB endpoint pairs to get the build done

guess was close, but wrong. It is 8

clean up peripheral DEFs

Fixes build error:
```
In file included from ../../py/mpstate.h:33,
                 from ../../py/mpstate.c:27:
../../py/misc.h: In function 'vstr_str':
../../py/misc.h:196:1: sorry, unimplemented: Thumb-1 hard-float VFP ABI
 static inline char *vstr_str(vstr_t *vstr) {
 ^~~~~~
```
Sleuthing steps:
* verify that the feather_stm32f4_express board builds correctly
* put a `#error` at the bottom of the `mpstate.c` file.
* build for the feather and swan boards, with V=2 to capture the build command for that file.
* use a differencing tool to inspect the differences between the two invocations
* inspecting the differences, I saw a missing `-mcpu=cortex-m4` I tested by adding that to the Swan build command. The file built fine (stopping at the hard error, but no other warnings.)

A grep through the sources revealed where this flag was being set for the stm ports.

With this commit, the build gets further, but does not complete. The next exciting episode in this unfolding coding saga is just a commit away!

working build with minimal set of modules for the Blues Swan r5

chore:change header copyright name to Blues Wireless Contributors

USB operational.  Fixed up clocks to be hardwired for LSE no HSE case. (Trying to combine HSE in there made the code much more complex, and I don't have a board to test it out on.)

USART working

adds support for `ENABLE_3V3` and `DISCHARGE_3V3` pins.  I am surprised that pin definitions are quite low-level and don't include default direction and state, so the code currently has to initialize `ENABLE_3V3` pin as output.  The LED takes over a second to discharge, so I wonder if the board startup code is not having the desired affect.

short circuit implementation of backup memory for the STM32L4

all the ports

remove company name from board name to be consistent with the Arduino board definition.

add default pins for I2C, SPI and UART, so that `board.I2C` et al. works as expected.  Confirmed I2C timing.

fix board name

fix incorrect pin definition. add test to allow manual check of each output pin

analog IO

code changes for WebUSB. Doesn't appear to work, will revisit later.

ensure that `sys.platform` is available

checkin missing file

feat: make room for a larger filesystem so the sensor tutorial will fit on the device.

fix:(stm32l4r5zi.csv): merged AF0-7 and AF8-15 into single lines and removed extraneous headers mixed in with the data.

fix(parse_af_csv.py): pin index in the csv is 0 not 1, and AF index made 1 larger

chore(Swan R5): update peripherals pins from `parse_af_csv.py` output

optimize flash sector access
2021-09-28 18:52:02 -07:00
microDev 317751bd79
add board microdev_micro_c3 2021-09-29 00:14:00 +05:30