Commit Graph

45 Commits

Author SHA1 Message Date
RetiredWizard
ea8dd95931 Update common-hal routines with new params 2023-02-22 23:04:41 -05:00
RetiredWizard
c73f008688 Make vcmailbox call change for AUX SPI instances 2023-02-22 11:58:13 -05:00
RetiredWizard
7c717a54f3 Switch to "unmeasured" core clock speed check 2023-02-21 22:10:36 -05:00
Dan Halbert
bbadc00599
Merge pull request #7577 from dhalbert/safemode-py
Implement safemode.py
2023-02-16 14:15:20 -05:00
RetiredWizard
6ebb911a4d pre-commit formatting fix 2023-02-13 21:06:47 -05:00
RetiredWizard
09ccf2988d Replace bitwise or with boolean or 2023-02-13 21:04:11 -05:00
RetiredWizard
39d3d97ea4 Remove unnecessary memory barriers 2023-02-13 19:46:35 -05:00
Dan Halbert
d8231f1588 Implement safemode.py 2023-02-13 18:26:38 -05:00
RetiredWizard
dcb6955fa5 use boolean and symbols 2023-02-13 14:58:37 -05:00
RetiredWizard
791aefd388
Update ports/broadcom/common-hal/neopixel_write/__init__.c
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2023-02-13 14:44:54 -05:00
RetiredWizard
575f177dd0
Update ports/broadcom/common-hal/neopixel_write/__init__.c
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2023-02-13 14:44:46 -05:00
RetiredWizard
1679790481 Tweaked to run without delays on zero w 2023-02-11 20:21:25 -05:00
RetiredWizard
359a27e166 Pre-commit is stubborn 2023-02-11 12:19:21 -05:00
RetiredWizard
2104708c58 missed a trailing space 2023-02-11 12:17:55 -05:00
RetiredWizard
f29cd4a836 Pre-commit fix trim trailing whitespace 2023-02-11 12:13:34 -05:00
RetiredWizard
a462a316bd Fix pre-commit formatting 2023-02-11 12:10:03 -05:00
RetiredWizard
a2bbca1428 Broadcom Raspberry Pi Zero2W neopixel timing fix
These changes result in working neopixel functionality. I've tested on
both the zero2w and the pi4b (The 4b didn't exhibit the original issue)
and the boards now behave properly with 1 to 30 pixels and the board hanging
no longer occurs.

Remove mod that didn't help during testing
Restoring back to original structure
Replace 2 microsecond delay w/deterministic loop
Remove unneded check for empty queue

Put transmit delay outside loop so Queue is used

Make sure last transmission is complete
2023-02-11 11:38:11 -05:00
RetiredWizard
ecde85734c Remove a couple unneeded includes. 2023-01-23 15:17:24 -05:00
RetiredWizard
43b1d2618e
Remove erroneous left over comment 2023-01-23 14:19:27 -05:00
RetiredWizard
4f830f1bbb Fix parameter name and remove unnecessary function 2023-01-21 22:57:52 -05:00
RetiredWizard
3361ec390d Broadcom port: Add 'fake' RTC support
The Broadcom chips apparently don't have an RTC, so this PR uses the
timer to add dummy RTC responses and allow resonable results
from time.localtime() as well as setting the time and date while
the board is powered.
2023-01-21 22:19:10 -05:00
Dan Halbert
db065a299f
Merge pull request #6933 from jepler/🥧🐮
Implement a useful subset of `wifi` and `socketpool` modules on 🥧🐮
2022-09-28 18:09:24 -04:00
Jeff Epler
346fff2e7c
cyw43 basic gpio support, hwaddr in boot_out 2022-09-28 10:06:33 -05:00
Dan Halbert
e25c195b78 fix broadcom UART ringbuf init 2022-09-25 09:12:23 -04:00
Dan Halbert
ea15a9118a ringbuf cleanup 2022-09-21 10:03:05 -04:00
Scott Shawcroft
9d10a3da66
Conditionalize LTO 2022-05-27 12:59:54 -07:00
Dan Halbert
a01dec1df9 message consolidation and more use of validators 2022-05-19 15:38:37 -04:00
Scott Gauche
a8d8651873 Canonical C style for half_duplex = true/false 2022-02-08 23:13:22 -05:00
Scott Gauche
89ad767b8f add half_duplex to spi constructs in other ports but raise not implemented errors 2022-02-08 22:25:23 -05:00
Dan Halbert
cc410ad6a3 common-hal I2C combined write_read 2022-01-31 22:03:30 -05:00
Dan Halbert
afd686986a
Merge pull request #5800 from tannewt/rpi_zero
Initial Pi Zero support
2022-01-07 09:05:30 -05:00
Scott Shawcroft
2a2f94df15
Update tinyusb for zero support 2022-01-06 08:52:33 -08:00
Scott Shawcroft
48d826b15d
Never reset SD card pins 2022-01-04 19:08:14 -08:00
Scott Shawcroft
756b9f6dfa
Initial Pi Zero support
Both SD card and USB don't work. REPL works over UART.

Progress on #5631
2021-12-30 18:32:59 -08:00
jerryneedell
14815f6de7 fix typo in comment 2021-12-30 14:12:37 -05:00
jerryneedell
9dea49516e update logic for JTAG pull downs 2021-12-30 14:09:43 -05:00
jerryneedell
ed3ddea2da set pulldown for broadcom jtag pins 2021-12-28 11:26:47 -05:00
Scott Shawcroft
5e4cb4f1e2
Yes, index is unused. That's ok. 2021-12-15 13:46:31 -08:00
Scott Shawcroft
2693e2ce0a
Add neopixel support on PWM capable pins
It'll be hard to do PWM from them concurrently

Fixes #5697
2021-12-14 16:59:53 -08:00
Scott Shawcroft
6626319338
Add SPI support
It uses both SPI and AUX SPI peripherals
2021-12-09 17:30:03 -08:00
Scott Shawcroft
92a4261ad5
Full UART support for RPI
This adds PL011 UART support which is more plentiful.

It also:
* Fixes PI4 build by including .dtb files on the SD card.
* Enables the activity LED as the status LED on PI4 and CM4 I/O.
* Adds that LED as board.LED.

Fixes #5650 and progress on #5629
2021-12-06 18:36:14 -08:00
Scott Shawcroft
8adb0ecd33
Fix loop bounds 2021-12-02 10:28:26 -08:00
Scott Shawcroft
2433c9572c
Add full pin mux info and use it for I2C
All I2C peripherals should be usable now. This also adds pin
in-use tracking and resetting.

Part of #5629
2021-12-01 17:19:57 -08:00
Scott Shawcroft
927a720de9
Fix I2C and feedback from Dan 2021-11-23 17:23:13 -08:00
Timon
a1052d5f73
Initial broadcom port for Raspberry Pi
This targets the 64-bit CPU Raspberry Pis. The BCM2711 on the Pi 4
and the BCM2837 on the Pi 3 and Zero 2W. There are 64-bit fixes
outside of the ports directory for it.

There are a couple other cleanups that were incidental:
* Use const mcu_pin_obj_t instead of omitting the const. The structs
  themselves are const because they are in ROM.
* Use PTR <-> OBJ conversions in more places. They were found when
  mp_obj_t was set to an integer type rather than pointer.
* Optimize submodule checkout because the Pi submodules are heavy
  and unnecessary for the vast majority of builds.

Fixes #4314
2021-11-22 14:54:44 -08:00