Commit Graph

7552 Commits

Author SHA1 Message Date
Max Holliday 37bddecf54 adding CIRCUITPY_ALARM checks to port.c 2021-10-11 15:03:57 -06:00
Jeff Epler 6abb7dd461 eespressif: ParallelImageCapture: keep peripheral running
Otherwise, a lot of frames were being dropped, leading to a low framerate
in the "directio" demo for OV5640 cameras
2021-10-11 15:37:57 -05:00
Max Holliday 5c4f903328 rearranging port.c include order for common-hal/alarm 2021-10-11 13:31:29 -07:00
Max Holliday e7324fa7c3 fixing pre-commit stuff 2021-10-10 16:40:00 -07:00
Max Holliday e136cbd007 forgot to commit port.c 2021-10-10 12:16:15 -07:00
Max Holliday dcb5fd280a alarm.wake_alarm works for pin and time. Pin & time can both be set at once 2021-10-10 12:01:04 -07:00
Max Holliday 752bf6e4e0 correcting which nina-fw commit to use 2021-10-09 15:14:03 -07:00
Max Holliday 4f631f2bb3 fixing nina-fw certs maybe? 2021-10-09 15:09:55 -07:00
Max Holliday 238b07c3af Fixed merge conflict for circuitpython.pot 2021-10-09 14:28:20 -07:00
Max Holliday 112739e247 minor tweaks 2021-10-09 14:50:55 -06:00
Max Holliday d66d7d476c
Update ports/atmel-samd/mpconfigport.mk
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-10-09 12:33:05 -06:00
Max Holliday 8486502e65 reworked fake sleep. functional for pin and time 2021-10-09 11:44:10 -06:00
Dan Halbert 4c45364dca
Merge pull request #5442 from jpconstantineau/board-xiao-kb
Add new board variant: Seeed XIAO targeted for Keyboards/HID Devices
2021-10-08 18:19:58 -04:00
Dan Halbert f0e2945747 clarify RP2040 IncrementalEncoder sequential pin message 2021-10-08 10:40:58 -04:00
Pierre Constantineau 37d3adfe4f updated PID from Seeed provided VID/PID 2021-10-08 07:15:18 -06:00
Pierre Constantineau 002383691c changing MICROPY_HW_BOARD_NAME from Dongle to DK 2021-10-07 21:57:04 -06:00
Scott Shawcroft df10543bee
Merge pull request #3768 from microDev1/i2c-S2
ESP32S2: Support for i2cperipheral
2021-10-07 10:07:47 -07:00
microDev 620ef26385
Merge pull request #5437 from pewpew-game/stage-picosystem
PicoSystem: freeze the Stage library
2021-10-07 21:38:14 +05:30
Jeff Epler 14ec6b70cf
Merge pull request #5403 from blues/add-strm32l4t5-swan-support
stm32l4r5 Swan support
2021-10-07 11:00:59 -05:00
Radomir Dopieralski d76eda153b PicoSystem: freeze the Stage library 2021-10-07 15:01:18 +02:00
microDev 647e589a6a
rename `i2c_num_status` to `peripherals_i2c_get_free_num` 2021-10-07 14:12:14 +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 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
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 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
Josh Gadeken 881724b529
[#4701] Correct DAC clock speed comments for SAMD21 and SAMD51 2021-10-04 22:18:26 -06:00
Max Holliday 6811c5e881 c formatting... 2021-10-04 15:44:46 -06:00
Max Holliday 0dd276ba79 c formatting 2021-10-04 15:04:55 -06:00
Max Holliday 2ff038f08b fixing c formatting 2021-10-04 14:55:44 -06:00
microDev d9eafffa6a
i2cperipheral implementation for esp32s2 2021-10-05 01:02:55 +05:30
EmergReanimator e636db713f Lose dependency to USB via CIRCUITPY_USB define for atmel port. 2021-10-04 10:57:39 +02:00
Max Holliday 6a8b4f5f07 fixed c formating 2021-10-03 23:13:58 -06:00
Max Holliday 5ceb72009e fixed c formating for pre-commit check 2021-10-03 22:42:04 -06:00
Max Holliday b95325e3c7
Merge branch 'samd-sleep' into samd-sleep-v1 2021-10-03 17:16:27 -06:00
Lucian Copeland f748d66128 Setup outline for SAMD alarm module 2021-10-03 14:57:44 -07:00
Max Holliday 7a703aaa64 adding comments 2021-10-02 15:00:18 -06:00
Max Holliday 433a901ffb
Merge branch 'adafruit:main' into samd-sleep-v1 2021-10-02 14:56:15 -06:00
microDev 8b5ea98271
minor updates for board microdev_micro_s2 2021-10-02 17:10:46 +05:30
Max Holliday 79cd10ac85 cleaning up TimeAlarm and PinAlarm 2021-10-01 17:36:04 -06:00
Max Holliday cd28d50e7a
Merge branch 'adafruit:main' into samd-sleep-v1 2021-10-01 16:13:06 -06:00
microDev 26fbb4eb85
add esp32c3 documentation in readme 2021-10-01 01:26:05 +05:30
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 b3a46955ea Add AIThinker ESP32-C3S_Kit board 2021-09-29 18:52:16 -07:00
Max Holliday d536be7228 working samd deep sleep timealarm and pinalarm (sketchy) 2021-09-29 11:44:15 -06: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
Scott Shawcroft fab27f6be6
Merge pull request #5394 from microDev1/c3-port
Add initial esp32c3 support
2021-09-28 10:31:11 -07:00
Scott Shawcroft aa52d726de
Merge pull request #5395 from PontusO/main
Added Challenger RP2040 LTE board.
2021-09-27 11:19:28 -07:00
Feyn ed18c1f2b8
Fix a critical "typo"
Current compiled downloads are unusable because MICROPY_QSPI_CS is defined as the wrong pin
2021-09-26 13:47:05 +02:00
Pontus Oldberg 5649887d34 Added support for the Challenger NB RP2040 WiFi board. 2021-09-26 07:54:07 +02:00
Pontus Oldberg 7d002478ef Added Challenger RP2040 LTE board. 2021-09-26 07:15:30 +02:00
microDev 3da86b0ac2
add initial esp32c3 support 2021-09-26 09:39:40 +05:30
microDev bd997dd67e
Merge pull request #5388 from microDev1/serial-over-uart
Fix espressif serial over uart
2021-09-26 09:30:08 +05:30
Pontus Oldberg 6e296999d6 Fixed incorrect pin definitions. 2021-09-25 16:19:48 +02:00
microDev 1be6c41da4
fix espressif serial over uart 2021-09-25 09:03:24 +05:30
Jeff Epler 10fdc80b9c
Merge pull request #5378 from jepler/esp32s2-paralleldisplay-i2s
Espressif: Use i2s peripheral for parallel LCD displays
2021-09-23 20:25:43 -05:00
Jeff Epler a97e46be66 espressif: Fix ParallelBus clock speed
The observed does not match the datasheet, so go with what was
observed.
2021-09-23 14:12:59 -05:00
Jeff Epler 3f4bbc5aff Fix number of LCD data pins 2021-09-23 13:37:30 -05:00
Michael Thomson 94ca3f594e Enable CS "active-high" device support
Reference https://github.com/adafruit/Adafruit_CircuitPython_BusDevice/issues/71

Add a new parameter cs_active_value for devices that require CS to use "active high" logic.

Update mpconfigboard.mk to disable pyb_nano_v2 from core build as its flash is too small now.
2021-09-23 09:14:39 +01:00
Jeff Epler 4714861f38 espressif: Implement parallel display using i2s 2021-09-21 14:38:12 -05:00
Jeff Epler 2f1ac44d78 add files from espressif/esp-dev-kits@ec03a13333 2021-09-21 14:38:05 -05:00
Scott Shawcroft 276d425899
Merge pull request #5302 from maholli/pycubed_v05c
updating pycubed firmware for mainboardv05
2021-09-20 15:00:25 -07:00
Scott Shawcroft 48866dd3e7
Merge pull request #5367 from microDev1/refactor-esp-port
Update espressif port
2021-09-20 14:59:27 -07:00
Scott Shawcroft 58eda2e0e8
Merge pull request #5350 from microDev1/ci-docs-split
CI: Build docs dynamically
2021-09-20 14:53:40 -07:00
Pierre Constantineau c5672066d0 initial xiao kb config 2021-09-20 15:52:28 -06:00
Dan Halbert 8e63a2e6c0
Merge pull request #5368 from skerr92/add-ODT-bread-2040
Add ODT Bread 2040
2021-09-20 17:13:23 -04:00
Dan Halbert 951ea46de1
Added CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS
This is a recent addition to add `board.board_id` and `board.__name__`.
2021-09-20 16:52:16 -04:00
leoli51 a980f8f743 added missing board config file 2021-09-19 16:09:17 +02:00
leoli51 761b1dbf12 merged commits from main 2021-09-19 15:51:43 +02:00
Seth Kerr de55073eea Add ODT Bread 2040 2021-09-18 10:45:02 -06:00
microDev 7dda3ec91c
switch to `IDF_TARGET` for soc dependent stuff
Co-authored-by: Seon Rozenblum <seon@unexpectedmaker.com>
2021-09-18 19:49:32 +05:30
microDev dcfde14bf9
move pins and sdkconfig into soc specific directories 2021-09-18 19:47:18 +05:30
microDev eb0738fb33
update esp-idf to v4.3.1 2021-09-18 19:44:14 +05:30
microDev 1536ec0123
rename left over esp32s2 to espressif 2021-09-18 19:42:18 +05:30
leoli51 bb424c7510 renamed folder and added neopixel gpio 2021-09-18 16:05:13 +02:00
microDev be3fca81e7
fix espidf docs 2021-09-17 21:27:18 +05:30
Max Holliday 0f8cb5618f
Merge branch 'adafruit:main' into pycubed_v05c 2021-09-16 12:12:36 -06:00
Max Holliday 4eda8b04c4 removing redudant pycubed v04 board defs 2021-09-16 12:12:15 -06:00
Dan Halbert a5dc0fef5f Revert #5341. Does not work on power-cycle. 2021-09-16 11:59:43 -04:00
Max Holliday 1ccaeeb619
adding back heritage pycubed board defs 2021-09-15 14:36:27 -06:00
Max Holliday 4f10a91f85 moving boot counter to main() and re-adding old pin names for SD_CS 2021-09-15 14:33:54 -06:00
Max Holliday 5b69aa0a58
Merge branch 'adafruit:main' into pycubed_v05c 2021-09-15 14:23:56 -06:00
microDev e91fb247a3
build docs dynamically 2021-09-16 00:05:42 +05:30
Scott Shawcroft 3cc4f25a1c
Merge pull request #5337 from hathach/tinyusb-compliance-stm-imxrt-esp32
update tinyusb to have esp32sx, stm32 and imxrt passed compliance test suite
2021-09-14 22:40:13 -07:00