Scott Shawcroft
387ab6c87e
Merge pull request #2315 from hierophect/stm32-pyb-nano
...
STM32: Add PYB Nano support
2019-12-10 11:25:07 -08:00
Scott Shawcroft
840f88b8f0
Merge pull request #2350 from hierophect/stm32-neopixel-fix
...
Fix for neopixels on <100MHz STM32 boards
2019-12-06 10:40:50 -08:00
Hierophect
c53496a55e
remove redundant NOPs
2019-12-05 12:45:09 -05:00
Hierophect
f3f2c7f5de
change default phase for SPI
2019-12-05 11:38:20 -05:00
Hierophect
3de1b9edbe
Merge remote-tracking branch 'upstream/master' into stm32-displayio
2019-12-04 10:50:14 -05:00
Hierophect
e6b45656f9
Add module and empty parallelbus
2019-12-03 17:18:42 -05:00
Hierophect
012b3bdf18
Add I2C never reset, SPI bugfix
2019-12-03 16:18:49 -05:00
Hierophect
45a6b03d40
copy from busted branch
2019-12-03 15:30:12 -05:00
Jeff Epler
95d9c49e43
Merge remote-tracking branch 'origin/master' into tick-refactor
2019-11-29 11:27:09 -06:00
Dan Halbert
b32a9192df
make UART.write be blocking on SAMD; add timeout property
2019-11-27 13:05:29 -05:00
Jeff Epler
bfdfe0e681
stm32: fix uses of ticks_ms global
2019-11-22 14:30:08 -06:00
Jeff Epler
77b78d7fb9
Merge remote-tracking branch 'origin/master' into tick-refactor
2019-11-22 14:28:51 -06:00
Hierophect
4e4ecafd97
Add definitions for PYB Nano and blackpill
2019-11-21 16:53:06 -05:00
Hierophect
a96317d566
requested style changes
2019-11-21 14:30:07 -05:00
Hierophect
3d1b6d9fc8
fix typo
2019-11-20 12:07:12 -05:00
Hierophect
bd9893ab98
clean up SPI module readability
2019-11-20 12:00:45 -05:00
Hierophect
0b558e8714
fix error in SPI busclock selection
2019-11-20 11:34:49 -05:00
Dan Halbert
1a22d8a0f2
Merge pull request #2291 from hierophect/stm32-neopixel
...
STM32: Neopixel support
2019-11-18 23:45:09 -05:00
Hierophect
4a25c2344e
implement os urandom
2019-11-18 18:27:25 -05:00
Hierophect
a4797327cd
add microcontroller toggles for status LED
2019-11-18 13:51:59 -05:00
Jeff Epler
7f744a2369
Supervisor: move most of systick to the supervisor
...
This code is shared by most parts, except where not all the #ifdefs
inside the tick function were present in all ports. This mostly would
have broken gamepad tick support on non-samd ports.
The "ms32" and "ms64" variants of the tick functions are introduced
because there is no 64-bit atomic read. Disabling interrupts avoids
a low probability bug where milliseconds could be off by ~49.5 days
once every ~49.5 days (2^32 ms).
Avoiding disabling interrupts when only the low 32 bits are needed is a minor
optimization.
Testing performed: on metro m4 express, USB still works and
time.monotonic_ns() still counts up
2019-11-18 11:01:23 -06:00
Hierophect
51078cc38f
timing tweaks with testing
2019-11-15 17:17:05 -05:00
Hierophect
98fd372d5b
Add missing define
2019-11-15 13:19:37 -05:00
Hierophect
e1579a1cc5
Merge branch 'pin-commonhal-additions' into stm32-neopixel
2019-11-15 12:47:23 -05:00
Hierophect
de5691acf5
Add never_reset and reset to pin common hal, adjust files
2019-11-15 12:47:00 -05:00
Hierophect
6cce2d6d14
Implement Neopixel write, add defaults to f405
2019-11-15 12:28:16 -05:00
Dan Halbert
166518fc9b
Merge pull request #2272 from hierophect/stm32-microcontroller-fillout
...
STM32: add us delay
2019-11-12 18:03:55 -05:00
Hierophect
bbc366b85b
Style overhaul, extra error checks
2019-11-12 11:26:14 -05:00
Hierophect
ed3e377390
Merge remote-tracking branch 'upstream/master' into stm32-uart
2019-11-12 09:49:17 -05:00
Hierophect
14b70806a5
de-init check
2019-11-11 15:47:47 -05:00
Hierophect
e076f14ea3
text fixes
2019-11-11 15:32:47 -05:00
Hierophect
c38086fc4a
fix typo
2019-11-11 15:04:22 -05:00
Hierophect
3f8b4727f5
Revise us delay to include interrupt/non-interrupt versions
2019-11-11 14:58:45 -05:00
Hierophect
adfef8b520
Merge remote-tracking branch 'upstream/master' into stm32-dac-deinit
2019-11-06 14:46:56 -05:00
Hierophect
1a7060af25
Add us delay
2019-11-05 16:23:59 -05:00
Hierophect
0b85c4bb20
Merge remote-tracking branch 'upstream/master' into stm32-uart
2019-11-05 10:56:57 -05:00
Hierophect
dfe73a063d
Fix error that would carry past python exception
2019-11-05 10:50:57 -05:00
Dan Halbert
f185b30d71
Update PWMOut.h
2019-11-04 20:41:54 -05:00
Hierophect
38e38b9f8d
remove redundant comment
2019-11-04 17:20:10 -05:00
Hierophect
632b3267dc
Add auto-shutoff of DAC when channels de-inited
2019-11-04 17:08:00 -05:00
Hierophect
ccff7e70ca
Style changes and refactors
2019-11-04 11:30:49 -05:00
Hierophect
1c4f49bb83
attribution changes
2019-11-03 16:33:01 -05:00
Hierophect
8d0cc71aee
Add write protections, fix edge case read halt
2019-11-01 17:00:01 -04:00
Hierophect
e605ce6317
Debugging additions
2019-11-01 14:30:28 -04:00
Hierophect
0a1a12b867
Revise PWM period generation algorithm to match other ports
2019-10-31 16:59:44 -04:00
Hierophect
c78d79938d
remove debug output
2019-10-30 17:07:16 -04:00
Hierophect
a8070a4185
Revise IRQ managment, add restart on failure
2019-10-30 16:59:53 -04:00
Hierophect
bb8046dbb3
remove debug messages
2019-10-30 10:00:50 -04:00
Hierophect
6b0cb87cbf
Dynamic prescaler adjustment, adjust pulse resolution
2019-10-29 17:17:26 -04:00
Hierophect
4de5a33a43
Style changes
2019-10-29 10:24:26 -04:00