- 13 7月, 2023 2 次提交
-
-
由 Yuuki NAGAO 提交于
For STM32G4, there is a errata on ADC that may get wrong ADC result. According to the errata sheet, this can be avoid by performing two consecutive ADC conversions and keep second result. Signed-off-by: NYuuki NAGAO <wf.yn386@gmail.com>
-
由 Yuuki NAGAO 提交于
Signed-off-by: NYuuki NAGAO <wf.yn386@gmail.com>
-
- 15 6月, 2023 2 次提交
-
-
由 Damien George 提交于
This commit adds initial support for STM32H5xx MCUs. The following features have been confirmed to be working on an STM32H573: - UART over REPL and USB CDC - USB CDC and MSC - internal flash filesystem - machine.Pin - machine.SPI transfers with DMA - machine.ADC - machine.RTC - pyb.LED - pyb.Switch - pyb.rng - mboot Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
All MCUs can have 6-bit resolution; see adc_cr_to_bits_table. Signed-off-by: NDamien George <damien@micropython.org>
-
- 21 3月, 2023 1 次提交
-
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
- 25 9月, 2022 1 次提交
-
-
由 yn386 提交于
This change adds STM32L1 support to the STM32 port.
-
- 19 9月, 2022 3 次提交
-
-
由 Jim Mussared 提交于
Instead of being an explicit field, it's now a slot like all the other methods. This is a marginal code size improvement because most types have a make_new (100/138 on PYBV11), however it improves consistency in how types are declared, removing the special case for make_new. Signed-off-by: NJim Mussared <jim.mussared@gmail.com>
-
由 Jim Mussared 提交于
Signed-off-by: NJim Mussared <jim.mussared@gmail.com>
-
由 Jim Mussared 提交于
In preparation for upcoming rework of mp_obj_type_t layout. Signed-off-by: NJim Mussared <jim.mussared@gmail.com>
-
- 03 5月, 2022 1 次提交
-
-
由 Jim Mussared 提交于
This replaces occurences of foo_t *foo = m_new_obj(foo_t); foo->base.type = &foo_type; with foo_t *foo = mp_obj_malloc(foo_t, &foo_type); Excludes any places where base is a sub-field or when new0/memset is used. Signed-off-by: NJim Mussared <jim.mussared@gmail.com>
-
- 28 4月, 2022 1 次提交
-
-
由 Asensio Lorenzo Sempere 提交于
This commit adds support for the STM32G0 series of MCUs. Signed-off-by: NAsensio Lorenzo Sempere <asensio.aerospace@gmail.com>
-
- 04 2月, 2022 1 次提交
-
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
- 01 2月, 2022 1 次提交
-
-
由 Herwin Grobben 提交于
This commit adds support for the STM32G4 series of MCUs, and a board definition for NUCLEO_G474RE. This board has the REPL on LPUART1 which is connected to the on-board ST-link USB-UART.
-
- 14 12月, 2021 1 次提交
-
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
- 16 9月, 2021 1 次提交
-
-
由 Jan Staal 提交于
This commit is based upon prior work of @dpgeorge and @koendv. MCU support for the STM32H7A3 and B3 families MCUs: - STM32H7A3xx - STM32H7A3xxQ (SMPS) - STM32H7B3xx - STM32H7B3xxQ (SMPS) Support has been added for the STM32H7B3I_DK board. Signed-off-by: NJan Staal <info@janstaal.com>
-
- 29 4月, 2021 1 次提交
-
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
- 18 12月, 2020 1 次提交
-
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
- 29 10月, 2020 1 次提交
-
-
由 Damien George 提交于
Prior to this commit, the ADC calibration code was never executing because ADVREGEN bit was set making the CR register always non-zero. This commit changes the logic so that ADC calibration is always run when the ADC is disabled and an ADC channel is initialised. It also uses the LL API functions to do the calibration, to make sure it is done correctly on each MCU variant. Signed-off-by: NDamien George <damien@micropython.org>
-
- 02 6月, 2020 1 次提交
-
-
由 Damien George 提交于
-
- 05 4月, 2020 1 次提交
-
-
由 Jim Mussared 提交于
-
- 28 2月, 2020 1 次提交
-
-
由 Damien George 提交于
This is run with uncrustify 0.70.1, and black 19.10b0.
-
- 13 2月, 2020 1 次提交
-
-
由 Damien George 提交于
This commit adds mp_raise_msg_varg(type, fmt, ...) as a helper for nlr_raise(mp_obj_new_exception_msg_varg(type, fmt, ...)). It makes the C-level API for raising exceptions more consistent, and reduces code size on most ports: bare-arm: +28 +0.042% minimal x86: +100 +0.067% unix x64: -56 -0.011% unix nanbox: -300 -0.068% stm32: -204 -0.054% PYBV10 cc3200: +0 +0.000% esp8266: -64 -0.010% GENERIC esp32: -104 -0.007% GENERIC nrf: -136 -0.094% pca10040 samd: +0 +0.000% ADAFRUIT_ITSYBITSY_M4_EXPRESS
-
- 04 10月, 2019 1 次提交
-
-
由 Chris Mason 提交于
STM32F0 has PCLK=48MHz and maximum ADC clock is 14MHz so use PCLK/4=12MHz to stay within spec of the ADC peripheral. In pyb.ADC set common sampling time to approx 4uS for internal and external sources. In machine.ADC reduce sample time to approx 1uS for external source, leave internal at maximum sampling time.
-
- 12 9月, 2019 1 次提交
-
-
由 Damien George 提交于
-
- 06 9月, 2019 1 次提交
-
-
由 Damien George 提交于
-
- 04 9月, 2019 1 次提交
-
-
由 Damien George 提交于
-