Lucian Copeland
8d2299e61e
Merge remote-tracking branch 'upstream/main' into stm32-meowbit-fix
2020-08-26 18:50:26 -04:00
Lucian Copeland
c229345741
improve efficiency of stm32 random gen
2020-08-26 18:47:19 -04:00
Lucian Copeland
c77523503b
Fix trailing whitespace errors across ports and docs
2020-08-26 14:48:46 -04:00
Lucian Copeland
05bde255f7
Add random to ESP32-S2, fix it on STM32
2020-08-25 14:00:29 -04:00
Lucian Copeland
de9fd4a0fb
Fix null dereference, invert auto_brightness to reenable screen
2020-08-25 10:37:55 -04:00
Scott Shawcroft
1527a3ce92
Merge remote-tracking branch 'adafruit/main' into add_pwmio
2020-08-24 18:25:18 -07:00
Lucian Copeland
c137a16121
Remove Meowbit LSE flag, harsher failure for LSE issues
2020-08-24 14:49:06 -04:00
Scott Shawcroft
644d2ba7a2
Add more "extern" declarations for gcc10 compat
...
gcc has tightened the restrictions on forward declarations that lack
"extern". Fix them up.
2020-08-21 14:39:37 -05:00
Scott Shawcroft
a5b01f7361
Merge remote-tracking branch 'adafruit/main' into add_pwmio
2020-08-21 11:13:53 -07:00
Scott Shawcroft
6857f98426
Split pulseio.PWMOut into pwmio
...
This gives us better granularity when implementing new ports because
PWMOut is commonly implemented before PulseIn and PulseOut.
Fixes #3211
2020-08-18 13:08:33 -07:00
Lucian Copeland
da75445cd5
Style changes, reposition runtime errors
2020-08-18 11:42:06 -04:00
Lucian Copeland
0fc730bc5a
Expand PulseOut API, debug cleanup
2020-08-14 16:36:02 -04:00
Dan Halbert
329f4fb2e6
Update mpconfigboard.mk
...
The stm boards default to `-O2`. Changing to `-Os` brings it back to ~43kB (!) free even for ja.
2020-08-13 10:09:46 -04:00
Jeff Epler
42b860e91a
stm: meowbit_v121: remove _pixelbuf to fit ja translation
2020-08-13 07:49:45 -05:00
Jeff Epler
1cf3762392
Merge remote-tracking branch 'origin/main' into stm32-sdioio
2020-08-10 12:54:12 -05:00
Jeff Epler
93b373d617
"pop from empty %q"
...
Saves 12 bytes code on trinket m0
2020-08-04 18:42:09 -05:00
Jeff Epler
c849b781c0
Combine 'index out of range' messages
2020-08-04 14:45:45 -05:00
Jeff Epler
dddd25a776
Combine similar strings to reduce size of translations
...
This is a slight trade-off with code size, in places where a "_varg"
mp_raise variant is now used. The net savings on trinket_m0 is
just 32 bytes.
It also means that the translation will include the original English
text, and cannot be translated. These are usually names of Python
types such as int, set, or dict or special values such as "inf" or
"Nan".
2020-08-04 13:34:29 -05:00
Jeff Epler
f175a49444
stm: sdioio: include header for common_hal_mcu_pin_claim
2020-07-30 07:18:12 -05:00
Jeff Epler
b57e6e9856
stm: sdioio: call common_hal_mcu_pin_claim
2020-07-30 07:18:12 -05:00
Jeff Epler
d73505a027
stm: fix if-guard of conditional code
2020-07-30 07:18:12 -05:00
Jeff Epler
60dd5a8d7d
stm: sdioio: remove unused code related to "SD Card detect pin"
...
.. this probably came from the examples that I studied at the beginning
of implementation.
The card detection feature is unused. As a "detect pin" is not
sent from the shared-bindings, there is no way to get the correct pin
anyway. Instead, if code needs to detect the insertion state it can
directly use the pin as GPIO in Python code.
2020-07-30 07:18:02 -05:00
Jeff Epler
ccd3013396
stm: stioio: correctly claim pins
2020-07-30 07:18:02 -05:00
Jeff Epler
3cf1258c87
stm: sdioio: Get rid of debug code and useless comments
2020-07-30 07:18:02 -05:00
Jeff Epler
6a99a7b551
stm: Use 'Invalid %q pin selection' more places
2020-07-30 07:18:02 -05:00
Jeff Epler
92d2f47503
feather_stm32f405_express: sdio_data_tuple should be static
2020-07-30 07:18:02 -05:00
Jeff Epler
4adbd23b75
stm: Add sdioio support for feather_stm32f405_express
...
Currently, only the bus specs of the stm32f405xx have been coded.
Other stm-family chips need (at a minimum) the specs added in their
periph.[ch] files.
2020-07-30 07:18:02 -05:00
Jeff Epler
d30f11163c
stm: enable SD module in HAL
2020-07-30 07:18:02 -05:00
DavePutz
3dfed3c4aa
Merge pull request #15 from adafruit/main
...
update from main
2020-07-24 20:29:53 -05:00
root
204cdada7c
remove unnecessary mk files parameters
2020-07-24 09:53:40 -05:00
root
778e8bfda9
Changes to optimization option
2020-07-23 19:27:02 -05:00
Lucian Copeland
c1f731d62e
Claim USB pins at startup to prevent overwrites
2020-07-22 14:22:05 -04:00
hierophect
e232ec10ce
Merge branch 'main' into stm32-timer-allocator
2020-07-22 13:59:39 -04:00
Lucian Copeland
138189bad1
Free timers when modules de-init
2020-07-22 13:58:57 -04:00
root
d83a4ac72d
Changes to add compiler optimization option
2020-07-22 12:44:41 -05:00
root
49decf90c9
Add option for higher optimization levels
2020-07-21 10:11:08 -05:00
Lucian Copeland
dc6902a33e
Exclude timers from H7 builds
2020-07-16 17:11:24 -04:00
Lucian Copeland
6a49766df0
Fix pulseIO reset and frequency issues, remove IRQ conflict
2020-07-16 15:45:18 -04:00
Jeff Epler
1df48176ce
supervisor: factor supervisor_background_tasks from sundry ports
2020-07-15 11:49:44 -05:00
Jeff Epler
6160d11c5a
supervisor: factor out, Handle USB via background callback
2020-07-15 11:49:44 -05:00
Lucian Copeland
818b96ae61
Fix IRQ enum protections
2020-07-14 16:33:36 -04:00
Scott Shawcroft
51c888d4be
Merge pull request #3003 from Flameeyes/master
...
License tagging according to REUSE specifications.
2020-07-13 16:28:49 -07:00
Lucian Copeland
b8910676db
Add missing enum preprocessor protection
2020-07-13 11:52:30 -04:00
Lucian Copeland
eb86010176
Enable RGB Matrix
2020-07-10 11:06:12 -04:00
Lucian Copeland
edc48a505f
Complete F405 pin and periph definitions
2020-07-09 13:10:18 -04:00
Lucian Copeland
2bcc5c06c2
Fix advanced claimed pin/package timer search
2020-07-09 11:42:37 -04:00
Lucian Copeland
9c38f5dcb1
Merge remote-tracking branch 'upstream/main' into stm32-timer-allocator
2020-07-08 16:03:12 -04:00
Jeff Epler
57ab4f1329
stm: SPI: revamp pin search code
...
I discussed with Hierophect on Discord about how to "de-nest" the code
for configuring SPI objects on STM, because the problems with one
nesting level per pin becomes unmanageable with the up to 10 pins of
SDIO.
This code (which is only compile-tested so far) demonstrates the concept
we discussed.
The SCK pin is always required. Loop over all possibilities of the SCK
pin. When we are considering a particular item in the mcu_spi_sck_list
we have now become committed to using a particular periph_index. If all
the other pins can be satisfied by that periph_index, then we have a
working combination. Once we have a working combination that is not
reserved, we can return that combination. On reaching the end, we have
checked all the possible possibilities and can give the same errors as
before: One if there was a possibility that worked but was reserved;
and another if no possibility worked.
2020-07-07 14:37:50 -05:00
Diego Elio Pettenò
34b4993d63
Add license to some obvious files.
2020-07-06 19:16:25 +01:00
Lucian Copeland
c72e3536f1
Merge remote-tracking branch 'upstream/main' into stm32-timer-allocator
2020-07-03 09:50:05 -04:00
Scott Shawcroft
4a21426377
Merge pull request #3103 from hierophect/stm32-simplex-spi-fix
...
STM32: add debug flags, fix hang in simplex SPI
2020-07-02 13:42:08 -07:00
Lucian Copeland
4b66483757
Update submodule, revert direction change
2020-07-02 15:38:37 -04:00
Jeff Epler
fcddfd0f39
Merge pull request #3083 from tannewt/esp32s2_busio
...
Add busio support for the ESP32-S2
2020-07-01 21:02:08 -05:00
Lucian Copeland
87d58b3b0a
STM32: add debug flags, fix hang in simplex SPI
2020-07-01 17:48:10 -04:00
Lucian Copeland
ab9a64eafa
Add timer allocator, adjust pulsio to use general purpose timers
2020-07-01 10:35:49 -04:00
jgillick
017c188ab5
Move NVM block to increase program size.
2020-06-25 21:46:15 -07:00
Lucian Copeland
6c91af7d56
WIP
2020-06-25 17:27:01 -04:00
Jeff Epler
1d2cc0b968
I2CPeripheral: Rename class and its module
...
This is an incompatible change.
2020-06-25 11:44:19 -05:00
Scott Shawcroft
c5fa9730a8
Compiles!
2020-06-24 12:47:59 -07:00
Scott Shawcroft
a26102607e
Add UART support
2020-06-24 12:47:58 -07:00
Jeff Epler
87835c77e8
Merge pull request #3038 from jepler/compute-usb-devices
...
Compute USB_DEVICES instead of requiring it to be specified
2020-06-24 13:31:56 -05:00
Jeff Epler
f232aef786
supervisor.mk: Compute USB_DEVICES; remove from boards and ports
...
Since Actions passed on the previous commit, where this computed value
was checked against the specified value (if any), this is no net change,
except that we no longer need to specify it for particular boards or
ports.
2020-06-23 12:59:01 -05:00
Scott Shawcroft
f67b307371
Merge pull request #3045 from k0d/stm32_alignment_issue
...
Fixes issue with memory alignment in STM32
2020-06-23 10:54:08 -07:00
Jeff Epler
93d3629da2
stm: Sort configuration options and make them all conditional
...
This makes them all overridable on the board level, tersely
2020-06-23 11:02:38 -05:00
Jeff Epler
0110463811
stm: Disable USB MIDI and most USB HID
...
.. it was not in the USB descriptors anyway (lack of enough endpoints?)
2020-06-23 11:01:36 -05:00
Jeff Epler
8a760b0657
stm: Pin.c: Compute GPIO_PORT_COUNT instead of specifying manually
2020-06-22 10:45:27 -05:00
Jeff Epler
5a3a0a5092
stm: Makefile: sort files in SRC_STM32
2020-06-22 10:45:23 -05:00
Mark Olsson
23da0fa99c
Fixes issue with memory alignment in STM32
...
When compiling with optimizations on, an issue occurs where the claimed_pins/never_reset_pins memory location is shared with another variable. This causes some bad memory read, so the USB pins ended up being reset. Setting these to have an alignment of 4 bytes resolves this.
Tested on nucleo_f746zg
2020-06-18 00:51:04 +02:00
Lucian Copeland
fd4aafacbe
Add port D to LQFP64
2020-06-16 12:33:15 -04:00
Lucian Copeland
2aac3cbdce
Revert I2C timing overrides, reduce scope to module only
2020-06-15 13:51:09 -04:00
Lucian Copeland
724637faa3
Move I2C speed to clock-style definition
2020-06-11 11:17:51 -04:00
Lucian Copeland
c08702414e
Add macros for setting correct F7 and H7 I2C timing
2020-06-10 16:36:44 -04:00
Lucian Copeland
c88a8e66c6
Minor comment fix
2020-06-10 13:22:21 -04:00
Lucian Copeland
7cc8b784c3
Add missing openmv definitions
2020-06-10 10:31:24 -04:00
Lucian Copeland
b414f82669
Add DTCM and ITCM support to F7 series
2020-06-09 18:01:52 -04:00
Lucian Copeland
ad0971fb25
Override HAL_Delay and HAL_GetTick
2020-06-05 13:56:32 -04:00
Lucian Copeland
a0977cac7b
Merge remote-tracking branch 'upstream/master' into stm32-LSE-startup-fix
2020-06-04 16:15:38 -04:00
Lucian Copeland
d14e34449b
Rework LSE clock init, allow clock overrides
2020-06-04 13:21:29 -04:00
Diego Elio Pettenò
dd5d7c86d2
Fix up end of file and trailing whitespace.
...
This can be enforced by pre-commit, but correct it separately to make it easier to review.
2020-06-03 10:56:35 +01:00
Scott Shawcroft
dd2cd6f002
Merge pull request #2979 from hierophect/stm32-remove-crystals
...
STM32: Set correct crystal settings on Discovery boards
2020-06-01 15:21:39 -07:00
Lucian Copeland
75eb44f234
Note temporary issue with Nucleo boards
2020-06-01 12:26:08 -04:00
Lucian Copeland
0fe7efdf36
Set correct crystal settings on Discovery boards
2020-05-29 14:01:34 -04:00
Scott Shawcroft
ddcae19254
Merge pull request #2964 from hierophect/mimxrt-busio-cleanup
...
mimxrt10xx: Busio cleanup and bugfixes
2020-05-29 10:42:16 -07:00
Lucian Copeland
fe75c7793c
Fix SWO/Analog overlap, style changes
2020-05-29 12:19:37 -04:00
Scott Shawcroft
796373b8be
A number of small ESP32S2 fixes:
...
* Fix flash writes that don't end on a sector boundary. Fixes #2944
* Fix enum incompatibility with IDF.
* Fix printf output so it goes out debug UART.
* Increase stack size to 8k.
* Fix sleep of less than a tick so it doesn't crash.
2020-05-28 15:43:55 -07:00
Lucian Copeland
a59798ed49
Merge branch 'mimxrt-uart-oneway' into mimxrt-busio-cleanup
2020-05-27 12:31:16 -04:00
Lucian Copeland
9f5520135c
translations
2020-05-27 11:54:52 -04:00
Lucian Copeland
53fb699436
Add pin resetting across boards, fix array size detection issue
2020-05-27 11:45:15 -04:00
Scott Shawcroft
ba724fffb4
Merge remote-tracking branch 'adafruit/master' into esp32s2_digitalio
2020-05-20 10:48:27 -07:00
Lucian Copeland
66c09efae2
Add UART one-way instance search, fix bugs in stm32 implementation
2020-05-20 12:48:01 -04:00
Scott Shawcroft
fd0420d432
Update digitalio api for other ports
2020-05-20 09:23:42 -07:00
Scott Shawcroft
916ca9f8a6
Merge pull request #2910 from tannewt/esp32s2
...
Add initial ESP32S2 support
2020-05-19 12:53:23 -07:00
Scott Shawcroft
2c2b53303d
Merge pull request #2837 from k0d/serial-debug
...
Add support for a debug console, such as ST-Link VCP.
2020-05-18 18:13:31 -07:00
Mark Olsson
007c92ee6a
Enable showing the console on a debug uart
2020-05-19 02:02:52 +02:00
Scott Shawcroft
3c1469b0a5
Add port_fixed_stack for more builds
2020-05-15 16:22:33 -07:00
Daniel Pollard
ee2cb703c8
merged master
2020-05-12 14:41:28 +10:00
Lucian Copeland
94949fb46f
Add recovery domain write access, adjust stack
2020-05-11 18:02:40 -04:00
Lucian Copeland
248704b262
Merge remote-tracking branch 'upstream/master' into stm32-lsetimeout
2020-05-11 14:18:37 -04:00
Lucian Copeland
5249a7b02c
Add timeout and adjustment to LSI
2020-05-08 12:36:39 -04:00
Jeff Epler
182ae10080
Fix build after #2831 (stm32f4xx rgbmatrix) broke it
2020-05-07 18:32:50 -05:00