Commit Graph

23565 Commits

Author SHA1 Message Date
Damien George
cb68a5741a tests/run-tests.py: Provide more info if script run via pyboard crashes.
Signed-off-by: Damien George <damien@micropython.org>
2021-03-16 14:49:57 +11:00
Damien George
a79d97cb76 tests/extmod/vfs_fat_fileio2.py: Close test file at end of test.
Otherwise it can lead to inconsistent results running subsequent tests.

Signed-off-by: Damien George <damien@micropython.org>
2021-03-16 14:49:57 +11:00
spe2
ea578a10a6
Update build.yml
Add Pro Micro RP2040 to build.yml.
2021-03-15 21:19:51 -06:00
mintakka
49baa94446 added sparkfun_thingplus_rp2040 to .github/workflows/boards.yml and renamed board folder to include chip 2021-03-15 23:00:24 -04:00
Damien George
2b888aa2f3 extmod/modbluetooth: Free temp arrays in gatts register services.
This helps to reduce memory fragmentation, by freeing the heap data as soon
as it is not needed.  It also helps the compiler keeps a reference to the
beginning of both arrays, which need to be traceable by the GC (otherwise
some compilers may optimise this reference to something else).

Signed-off-by: Damien George <damien@micropython.org>
2021-03-16 13:55:45 +11:00
stijn
d53a6d58b0 stm32/Makefile: Fix C++ linker flags when toolchain has spaces in path.
The GNU Make dir command uses spaces as item separator so it does not
work for e.g building the STM32 port on Cygwin with a default Arm
installation in "c:/program files (x86)/GNU Arm Embedded Toolchain".
Fix by using POSIX dirname on a quoted path instead.
2021-03-16 12:54:16 +11:00
Jeff Epler
542fb58673 add arrayblit 2021-03-15 20:36:44 -05:00
mintakka
288415f867
Update ports/raspberrypi/boards/sparkfun_thingplus/mpconfigboard.h
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-03-15 21:07:31 -04:00
mintakka
30a74b3d92
Update ports/raspberrypi/boards/sparkfun_thingplus/mpconfigboard.mk
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-03-15 21:07:24 -04:00
Mark
e326d7ca80
Merge branch 'main' into rp_dp_parallel 2021-03-15 20:00:13 -05:00
Hosted Weblate
2115a76c2f Merge remote-tracking branch 'origin/main' into main 2021-03-16 01:51:39 +01:00
Scott Shawcroft
f7a988b9b3
Merge pull request #4405 from DavePutz/issue_4237
Issue 4237 - Changed initial setting in program_struct
2021-03-15 17:51:36 -07:00
Hosted Weblate
65cc95da3f
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2021-03-16 01:47:06 +01:00
Hosted Weblate
c8b3562de7 Merge remote-tracking branch 'origin/main' into main 2021-03-16 01:47:04 +01:00
hexthat
a5e2b73936
Translated using Weblate (Chinese (Pinyin))
Currently translated at 100.0% (975 of 975 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/zh_Latn/
2021-03-16 01:47:04 +01:00
Noel Gaetan
c560e79a31
Translated using Weblate (French)
Currently translated at 98.8% (964 of 975 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/fr/
2021-03-16 01:47:03 +01:00
Daniel Glocker
477a58f8bf
Translated using Weblate (German)
Currently translated at 80.3% (783 of 975 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/de/
2021-03-16 01:47:03 +01:00
Scott Shawcroft
0a39e01237
Merge pull request #4410 from jepler/update-ulab-dot
Update ulab
2021-03-15 17:46:58 -07:00
Scott Shawcroft
9cb8ce67ed
Merge pull request #4412 from kamtom480/spi_and_i2c
spresense: minor changes for i2c, spi and uart
2021-03-15 17:35:06 -07:00
Jeff Epler
1af6aa25ce ok it would be nice to know how to run it 2021-03-15 19:32:40 -05:00
Jeff Epler
3963031ef9 cursory documentation of pre-commit 2021-03-15 19:30:53 -05:00
Jeff Epler
b9a973c8e0 codeformat: Do search&replace without sed 2021-03-15 19:23:16 -05:00
Scott Shawcroft
921bf6de7c
Add back empty line 2021-03-15 16:12:51 -07:00
Jeff Epler
d3bf1fe15d modifications by pre-commit 2021-03-15 18:11:00 -05:00
Jeff Epler
253385d9b7 codeformat: use pathlib for correct(-er) processing of * vs ** in globs 2021-03-15 18:10:43 -05:00
Jeff Epler
0403a2cca5 codeformat: Run sed only on requested files
When running from pre-commit, we believe the different invocations of
sed were racing with each other, sometimes leaving zero-byte files in
the filesystem (ow)
2021-03-15 18:10:43 -05:00
Jeff Epler
ed61e8955d codeformat: require filenames, filter them by include/exclude lists 2021-03-15 18:10:43 -05:00
Jeff Epler
d0e3848b24 codeformat: Exclude specified files even from commandline, for pre-commit 2021-03-15 18:10:43 -05:00
Jeff Epler
cc1dd73e94 pre-commit: Have pre-commit pass the list of files to codeformat.py 2021-03-15 15:32:26 -05:00
Scott Shawcroft
4538d973d2
Add Sourcegraph link and raspberrypi port 2021-03-15 13:23:15 -07:00
Jeff Epler
c2ed1b0942 pre-commit: only run uncrustify if changed files are detected
This adds the "no-run-if-empty" flag to the xargs invocation.  Otherwise,
if git diff names no files, the command is run once with no agument
specified which leads to running on a default list of files that appears
to include ignored files and files in submodules.

I am uneasy about how this works (it means that `pre-commit run --all`
doesn't actually check all files) but that's a separate issue.
2021-03-15 15:19:23 -05:00
Jeff Epler
05ed179e11
Merge pull request #4362 from microDev1/code-formatting
Add code formatting and translations check
2021-03-15 13:50:49 -05:00
microDev
f9b4189b4c
update line numbering 2021-03-15 23:01:23 +05:30
Kamil Tomaszewski
ed3f636be5 spresense: empty rx uart fifo after initialization 2021-03-15 16:14:16 +01:00
Kamil Tomaszewski
22ed0abf6c spresens: configure pin mode for i2c and spi 2021-03-15 16:14:16 +01:00
mintakka
0567d06936 added board configuration for Sparkfun ThingPlus RP2040 2021-03-15 10:27:21 -04:00
Jeff Epler
2e2b40be01 Update ulab 2021-03-15 09:10:49 -05:00
microDev
a52eb88031
run code formatting script 2021-03-15 19:27:36 +05:30
microDev
090b6ba42f
update pre-commit
- add formatting check
- add translations check
2021-03-15 19:26:29 +05:30
stijn
914380cb89 all: Add .git-blame-ignore-revs for fixing up git blame output.
Add most formatting-only commits to this file so that when used with
git blame, these commits are excluded and the output shows only the
interesting bits.
2021-03-15 11:07:29 +01:00
felixerdy
6c32a1f67f update pins of senseBox MCU 2021-03-15 10:27:50 +01:00
Jeff Epler
3cbff45f9a
Merge pull request #4407 from jposada202020/RTC_doc_corrections
RTC and Touchin docs changes
2021-03-14 20:52:19 -05:00
Jeff Epler
4fdcddaa4d
Merge pull request #4406 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-03-14 20:50:39 -05:00
Jeff Epler
b33d77bfe8 disable bitmaptools on over-full board 2021-03-14 20:08:09 -05:00
Hugo Dahl
0eec279371
Translated using Weblate (French)
Currently translated at 98.4% (960 of 975 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/fr/
2021-03-15 00:02:55 +01:00
Jeff Epler
651f54b4cc fix docs 2021-03-14 15:47:15 -05:00
Jeff Epler
094265cb86 bitmaptools.readinto: Fix diagnostics on atmel-samd builds 2021-03-14 15:36:20 -05:00
jposada202020
1386a8104a RTC and Touchin docs changes 2021-03-14 16:20:40 -04:00
root
9a83501982 Fixed initial settings for program_struct to allow more than 1 program per pio 2021-03-14 15:05:56 -05:00
Jeff Epler
6e9a44bbfd make translate 2021-03-14 15:03:00 -05:00