Commit Graph

12053 Commits

Author SHA1 Message Date
scgbckbone
4107246f8a remove help() from stm32 port
Some checks failed
Check code formatting / build (push) Has been cancelled
Check code size / build (push) Has been cancelled
Check commit message formatting / build (push) Has been cancelled
cc3200 port / build (push) Has been cancelled
esp32 port / idf3_build (push) Has been cancelled
esp32 port / idf4_build (push) Has been cancelled
esp8266 port / build (push) Has been cancelled
nrf port / build (push) Has been cancelled
powerpc port / build (push) Has been cancelled
qemu-arm port / build_and_test (push) Has been cancelled
rp2 port / build (push) Has been cancelled
samd port / build (push) Has been cancelled
stm32 port / build_pyb (push) Has been cancelled
stm32 port / build_nucleo (push) Has been cancelled
teensy port / build (push) Has been cancelled
unix port / minimal (push) Has been cancelled
unix port / reproducible (push) Has been cancelled
unix port / standard (push) Has been cancelled
unix port / coverage (push) Has been cancelled
unix port / coverage_32bit (push) Has been cancelled
unix port / nanbox (push) Has been cancelled
unix port / float (push) Has been cancelled
unix port / stackless_clang (push) Has been cancelled
unix port / float_clang (push) Has been cancelled
unix port / settrace (push) Has been cancelled
unix port / settrace_stackless (push) Has been cancelled
unix port / macos (push) Has been cancelled
windows port / build (push) Has been cancelled
zephyr port / build (push) Has been cancelled
2025-01-21 13:05:45 -05:00
doc-hex
d680d41bb5
Merge pull request #6 from scgbckbone/btree_compile_macos
suppress btree warnings when compiling the unix port on macOS
2023-11-08 12:39:47 -05:00
scgbckbone
8c6058457f suppress btree warnings when compiling the unix port on macOS 2023-08-31 09:18:31 +02:00
Peter D. Gray
abf88c98b6
tools/dfu.py: env python3 rather than explicit path 2023-02-03 08:58:14 -05:00
Peter D. Gray
97d35f058f
stm32/usbdev: minor cleanup 2022-07-29 10:55:10 -04:00
Peter D. Gray
f38838b283
stm32/usbdev: anticipate higher LUN numbers 2022-07-29 10:54:30 -04:00
Peter D. Gray
f584061acd
update state only after validation 2022-07-29 10:19:24 -04:00
Peter D. Gray
3ac8a84ba0
stm32/usbdev/class/src/usbd_cdc_msc_hid.c: dont crash if un-enumerated 2022-07-18 09:07:03 -04:00
Peter D. Gray
6d7527823c
addition
Some checks failed
Check code formatting / build (push) Has been cancelled
Check code size / build (push) Has been cancelled
Check commit message formatting / build (push) Has been cancelled
cc3200 port / build (push) Has been cancelled
esp32 port / idf3_build (push) Has been cancelled
esp32 port / idf4_build (push) Has been cancelled
esp8266 port / build (push) Has been cancelled
nrf port / build (push) Has been cancelled
powerpc port / build (push) Has been cancelled
qemu-arm port / build_and_test (push) Has been cancelled
rp2 port / build (push) Has been cancelled
samd port / build (push) Has been cancelled
stm32 port / build_pyb (push) Has been cancelled
stm32 port / build_nucleo (push) Has been cancelled
teensy port / build (push) Has been cancelled
unix port / minimal (push) Has been cancelled
unix port / reproducible (push) Has been cancelled
unix port / standard (push) Has been cancelled
unix port / coverage (push) Has been cancelled
unix port / coverage_32bit (push) Has been cancelled
unix port / nanbox (push) Has been cancelled
unix port / float (push) Has been cancelled
unix port / stackless_clang (push) Has been cancelled
unix port / float_clang (push) Has been cancelled
unix port / settrace (push) Has been cancelled
unix port / settrace_stackless (push) Has been cancelled
unix port / macos (push) Has been cancelled
windows port / build (push) Has been cancelled
zephyr port / build (push) Has been cancelled
2022-01-14 10:03:31 -05:00
Peter D. Gray
7928e332a3
Newer stm32lib for L4+ series 2022-01-14 10:01:08 -05:00
Peter D. Gray
11418b8083
ports/stm32: add L4+ series support 2022-01-14 10:00:42 -05:00
Peter D. Gray
11f359096d
Makefile: Add hal_sd_ex.c 2022-01-14 09:57:44 -05:00
Peter D. Gray
cb6017d83e
Add MICROPY_HW_CUSTOM_USB_MSC for custom MSC config, and partial bugfix for unknown configs 2022-01-14 09:56:54 -05:00
Peter D. Gray
3bacbec7cb
Enable fastseek if desired 2022-01-14 09:54:03 -05:00
Peter D. Gray
778d3e4616
Redo commit 95048129b1 from parent repo 2021-10-25 10:25:06 -04:00
Peter D. Gray
5917fc199c
extmod/vfs_fat: support FAT32 in mkfs=T case on mount
Some checks failed
Check code formatting / build (push) Has been cancelled
Check code size / build (push) Has been cancelled
Check commit message formatting / build (push) Has been cancelled
cc3200 port / build (push) Has been cancelled
esp32 port / idf3_build (push) Has been cancelled
esp32 port / idf4_build (push) Has been cancelled
esp8266 port / build (push) Has been cancelled
nrf port / build (push) Has been cancelled
powerpc port / build (push) Has been cancelled
qemu-arm port / build_and_test (push) Has been cancelled
rp2 port / build (push) Has been cancelled
samd port / build (push) Has been cancelled
stm32 port / build_pyb (push) Has been cancelled
stm32 port / build_nucleo (push) Has been cancelled
teensy port / build (push) Has been cancelled
unix port / minimal (push) Has been cancelled
unix port / reproducible (push) Has been cancelled
unix port / standard (push) Has been cancelled
unix port / coverage (push) Has been cancelled
unix port / coverage_32bit (push) Has been cancelled
unix port / nanbox (push) Has been cancelled
unix port / float (push) Has been cancelled
unix port / stackless_clang (push) Has been cancelled
unix port / float_clang (push) Has been cancelled
unix port / settrace (push) Has been cancelled
unix port / settrace_stackless (push) Has been cancelled
unix port / macos (push) Has been cancelled
windows port / build (push) Has been cancelled
zephyr port / build (push) Has been cancelled
2021-03-30 09:06:38 -04:00
Peter D. Gray
4db3518e40
Impt fix 2021-03-15 09:00:27 -04:00
Peter D. Gray
2a0259abfc
Bugfix: super-slow interactions when no USB connected 2021-03-15 08:42:13 -04:00
Peter D. Gray
a39e4b29d6
stm32/usbd_hid_interface.c: bugfix, see issue \#6953 2021-03-04 10:46:49 -05:00
Peter D. Gray
4eac789f68
stm32/mpconfigboard_common.h additions 2021-03-04 10:44:55 -05:00
Peter D. Gray
34aa104fe3
stm32/sdcard.c: new method to get CSD, CID from card 2021-03-04 10:44:38 -05:00
Peter D. Gray
57d5b750d0
stm32/uart.c: revert half-duplex support 2021-03-04 10:37:52 -05:00
Peter D. Gray
a894b423ca
stm32/adc.h: remove inline which cant compile 2021-03-04 10:36:49 -05:00
Peter D. Gray
5c83afcbc7
stm32/main.c: need way to disable powerctrl_check_enter_bootloader() 2021-03-04 10:35:58 -05:00
Peter D. Gray
32f6156087
py/py.mk: allow additions to PY_O in c-submodule makefiles 2021-03-04 10:32:46 -05:00
Peter D. Gray
8d8663651b
Improve portability and avoid 'dereferencing type-punned pointer' 2021-02-09 10:58:01 -05:00
Peter D. Gray
34a4998c0b
get to compile; untested, bogus 2021-02-09 09:00:58 -05:00
Peter D. Gray
cfb6444a79
extmod/moduhashlib: allow multiple calls to digest() method
Some checks failed
Check code formatting / build (push) Has been cancelled
Check code size / build (push) Has been cancelled
Check commit message formatting / build (push) Has been cancelled
cc3200 port / build (push) Has been cancelled
esp32 port / idf3_build (push) Has been cancelled
esp32 port / idf4_build (push) Has been cancelled
esp8266 port / build (push) Has been cancelled
nrf port / build (push) Has been cancelled
powerpc port / build (push) Has been cancelled
qemu-arm port / build_and_test (push) Has been cancelled
rp2 port / build (push) Has been cancelled
samd port / build (push) Has been cancelled
stm32 port / build_pyb (push) Has been cancelled
stm32 port / build_nucleo (push) Has been cancelled
teensy port / build (push) Has been cancelled
unix port / minimal (push) Has been cancelled
unix port / reproducible (push) Has been cancelled
unix port / standard (push) Has been cancelled
unix port / coverage (push) Has been cancelled
unix port / coverage_32bit (push) Has been cancelled
unix port / nanbox (push) Has been cancelled
unix port / float (push) Has been cancelled
unix port / stackless_clang (push) Has been cancelled
unix port / float_clang (push) Has been cancelled
unix port / settrace (push) Has been cancelled
unix port / settrace_stackless (push) Has been cancelled
unix port / macos (push) Has been cancelled
windows port / build (push) Has been cancelled
zephyr port / build (push) Has been cancelled
2021-02-05 09:34:36 -05:00
Peter D. Gray
0f1973fb68
Merge remote-tracking branch 'upstream/master' 2021-02-01 13:15:53 -05:00
Damien George
ffded48810 zephyr/machine_uart: Fix arg of machine_uart_ioctl to make it uintptr_t.
Signed-off-by: Damien George <damien@micropython.org>
2021-02-01 22:30:50 +11:00
Damien George
35a6f6231e tests/extmod/utime_time_ns.py: Relax bounds on time_ns measurement.
Some devices have lower precision than 1ms for time_ns() (eg PYBv1.x has
3.9ms resolution of the RTC) so make the test more lenient for them.

Signed-off-by: Damien George <damien@micropython.org>
2021-02-01 18:44:28 +11:00
iTitou
b8f5f5cd85 github/workflows/ports_unix.yml: Add job for a reproducible build.
With a check for reproducible build date.  Invocation of the test suite is
not needed because it's already run in another job.

Signed-off-by: iTitou <moiandme@gmail.com>
2021-02-01 11:20:18 +11:00
iTitou
4fb5f012c3 py/makeversionhdr: Honor SOURCE_DATE_EPOCH if present.
This environment variable, if defined during the build process,
indicates a fixed time that should be used in place of "now" when
such a time is explicitely referenced.

This allows for reproducible builds of micropython.
See https://reproducible-builds.org/specs/source-date-epoch/

Signed-off-by: iTitou <moiandme@gmail.com>
2021-01-31 17:48:59 +01:00
Damien George
ef9fde7339 LICENSE,docs: Update copyright year range to include 2021.
Signed-off-by: Damien George <damien@micropython.org>
2021-01-31 23:17:42 +11:00
Samuelson
407df82f81 docs/develop/natmod: Fix a small typo, con->can. 2021-01-30 15:20:44 +11:00
David CARLIER
cb30928ac8 py/persistentcode: Introduce MICROPY_PERSISTENT_CODE_SAVE_FILE option.
This should be enabled when the mp_raw_code_save_file function is needed.

It is enabled for mpy-cross, and a check for defined(__APPLE__) is added to
cover Mac M1 systems.
2021-01-30 15:13:24 +11:00
stijn
cb8e2f02ab py/gc: Fix debug printing of pointer.
When DEBUG_printf is the standard printf, compilers require the value for
%p to be an actual pointer instead of an integer.
2021-01-30 14:41:29 +11:00
stijn
c2b5bfcc0c tools: Remove obsolete upip bootstrap script.
The upip module is frozen into ports supporting it, and it is included in
the source tree, so there is no need to get it from PyPi.  Moreover the
PyPi package referred to is an out-of-date version of upip which is
basically unrelated to our upip.py because the source is taken from a fork
of micropython-lib instead of this repository.
2021-01-30 14:39:22 +11:00
Christopher Tse
ddb53c9458 docs/esp8266/quickref: Add warning block about NeoPixel timing. 2021-01-30 14:36:30 +11:00
Christopher Tse
5c37e76e4f esp8266/modules/neopixel.py: Add timing param to NeoPixel constructor.
This matches the esp32 port.
2021-01-30 14:35:54 +11:00
Chris Hemingway
993ab6aa2c nrf/README: Add use of "make submodules" in alternative build paragraph.
Add "make submodules" to commands when building for the first time.
Otherwise, on a first time build, the submodules have not been checked out
and a lot of `fatal error: nrfx.h: No such file or directory` errors are
printed.
2021-01-30 14:32:55 +11:00
Jim Mussared
2aecf378be tools/makemanifest.py: Add check that freeze path is a directory.
Avoids accidentally writing

    freeze("path/to/file.py")

and getting unexpected results.
2021-01-30 14:15:33 +11:00
Andrew Scheller
499e199add docs,stm32: Fix minor typos in RTC docs, and->an. 2021-01-30 14:13:30 +11:00
stijn
37c2f507a0 github/workflows: Add workflow to verify commit message format.
Using the new tools/verifygitlog.py script.
2021-01-30 14:09:21 +11:00
stijn
d48860c7dd tools/verifygitlog.py: Add script for verifying commit message format.
The main rules enforced are:
- At most 72 characters in the subject line, with a ": " in it.
- At most 75 characters per line in the body.
- No "noreply" email addresses.
2021-01-30 14:08:29 +11:00
stijn
fca2730ea0 lib/utils/pyexec: Remove obsolete LCD initialization.
This was added a long time ago in 75abee206d
when USB host support was added to the stm (now stm32) port, and when this
pyexec code was actually part of the stm port.  It's unlikely to work as
intended anymore.  If it is needed in the future then generic hook macros
can be added in pyexec.
2021-01-30 13:41:36 +11:00
stijn
b9a35bebf7 py/qstr.h: Remove QSTR_FROM_STR_STATIC macro.
It practically does the same as qstr_from_str and was only used in one
place, which should actually use the compile-time MP_QSTR_XXX form for
consistency; qstr_from_str is for runtime strings only.
2021-01-30 13:40:48 +11:00
Jim Mussared
47d02b3104 extmod/nimble: Improve the flow control for l2cap recv path.
If the _IRQ_L2CAP_RECV handler does the actual consumption of the incoming
data (i.e. via l2cap_recvinto), rather than setting a flag for
non-scheduler-context to handle it later, then two things can happen:

- It can starve the VM (i.e. the scheduled task never terminates).  This is
  because calling l2cap_recvinto will empty the rx buffer, which will grant
  more credits to the channel (an HCI command), meaning more data can
  arrive.  This means that the loop in hal_uart.c that keeps reading HCI
  data from the uart and executing NimBLE events as they are created will
  not terminate, preventing other VM code from running.

- There's no flow control (i.e. data will arrive too quickly).  The channel
  shouldn't be given credits until after we return from scheduler context.

It's preferable that no work is done in scheduler/IRQ context.  But to
prevent this being a problem this commit changes l2cap_recvinto so that if
it is called in IRQ context, and the Python handler empties the rx buffer,
then don't grant credits until the Python handler is complete.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2021-01-30 13:22:40 +11:00
Jim Mussared
0f9a9129da stm32/rfcore: Fix flow control for IPCC RX IRQ.
Don't clear the IPCC channel flag until we've actually handled the incoming
data, or else the wireless firmware may clobber the IPCC buffer if more
data arrives.  This requires masking the IRQ until the data is handled.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2021-01-30 13:21:04 +11:00
Damien George
b8f4c623f9 github/workflows: Add CI workflow for rp2 port.
Signed-off-by: Damien George <damien@micropython.org>
2021-01-30 00:42:29 +11:00