- 13 7月, 2023 4 次提交
-
-
由 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 提交于
For STM32G4 series, the internal sensors are connected to: - ADC1_IN16: Temperature sensor - ADC1_IN17: Battery voltage monitoring - ADC1_IN18: Internal voltage reference but ADC_CHANNEL_TEMPSENSOR_ADC1, ADC_CHANNEL_VBAT, ADC_CHANNEL_VREFINT are not defined as 16, 17, 18. This commit converts channel 16, 17, 18 to ADC_CHANNEL_x in adc_get_internal_channel(). Signed-off-by: NYuuki NAGAO <wf.yn386@gmail.com>
-
由 Yuuki NAGAO 提交于
For STM32G4, * TS_CAL1 raw data acquired at a temperature of 30°C * TS_CAL2 raw data acquired at a temperature of 130°C Also, these values are at VDDA=3.0V. Signed-off-by: NYuuki NAGAO <wf.yn386@gmail.com>
-
由 Yuuki NAGAO 提交于
For STM32G4, ADC clock frequency should be equal or less than 60MHz. To satisfy this specification, ADC clock prescaler should be equal or greater than 4 (For example, NUCLEO_G474RE runs 170MHz). In addition, to obtain accurate internal channel value, the ADC clock prescaler is set to 16 because vbat needs at least 12us (16/170*247.5=23.3us). Signed-off-by: NYuuki NAGAO <wf.yn386@gmail.com>
-
- 15 6月, 2023 1 次提交
-
-
由 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>
-
- 24 5月, 2023 1 次提交
-
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
- 21 3月, 2023 1 次提交
-
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
- 15 12月, 2022 1 次提交
-
-
由 brave ulysses 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
- 18 11月, 2022 2 次提交
-
-
由 yn386 提交于
TS_CAL1 and TS_CAL2 of STM32L4 are at VDDA=3.0V, so the reference correction factor should be updated before reading tempsensor.
-
由 yn386 提交于
For STM32L4 series, the internal sensors are connected to: - ADC1_IN0: Internal voltage reference - ADC1_IN17: Temperature sensor - ADC1_IN18: VBAT battery voltage monitoring but ADC_CHANNEL_VREFINT, ADC_CHANNEL_VBAT, ADC_CHANNEL_TEMPSENSOR are not defined as 0, 17, 18. This commit converts channel 0, 17, 18 to ADC_CHANNEL_x in adc_get_internal_channel().
-
- 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>
-
- 06 9月, 2022 1 次提交
-
-
由 yn386 提交于
pyb.ADC(channel) checks whether specified channel is valid or have ADC capability but pyb.ADCAll().read_channel() does not. This change adds checking whether specified channel is valid and throw ValueError if channel is invalid. This is same as pyb.ADC().
-
- 23 7月, 2022 1 次提交
-
-
由 Tim Gates 提交于
Fixes: - Should read `definitions` rather than `defintions`. - Should read `resolution` rather than `resoultion`. - Should read `inefficient` rather than `inefficent`. - Should read `closed` rather than `closded`. Signed-off-by: NTim Gates <tim.gates@iress.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>
-
- 22 3月, 2022 1 次提交
-
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
- 04 2月, 2022 2 次提交
-
-
由 iabdalkader 提交于
-
由 iabdalkader 提交于
Use HAL macro to map decimal numbers to channel numbers. This is needed since updating L4 HAL v1.17.0 in a0f5b314. Fixes issue #8233.
-
- 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.
-
- 30 11月, 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>
-
- 15 9月, 2021 1 次提交
-
-
由 Jan Hrudka 提交于
-
- 05 7月, 2021 1 次提交
-
-
由 Damien George 提交于
The ADC_FIRST_GPIO_CHANNEL and ADC_LAST_GPIO_CHANNEL macros are no longer needed. Instead the pin_adcX table (X = 1, 2, 3) is now generated to be the exact size needed for a given MCU, and MP_ARRAY_SIZE(pin_adcX) is used to determine the upper bound. This commit also allows CPU pins to be excluded from ADC configuration if they are hidden by prefixing their name with a "-". Signed-off-by: NDamien George <damien@micropython.org>
-
- 02 7月, 2021 2 次提交
-
-
由 iabdalkader 提交于
-
由 iabdalkader 提交于
* Modify common functions in adc.c to accept ADC handle. * Most external channels are connected to ADC12 which is used by default. * For ADCAll (internal channels) ADC3 is used instead. * Issue #4435 is possibly related (at least partially fixed).
-
- 18 12月, 2020 1 次提交
-
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
- 02 6月, 2020 1 次提交
-
-
由 Damien George 提交于
-
- 15 5月, 2020 1 次提交
-
-
由 Thomas Roberts 提交于
-
- 18 4月, 2020 1 次提交
-
-
由 stijn 提交于
These are found when building with -Wfloat-conversion.
-
- 05 4月, 2020 1 次提交
-
-
由 Jim Mussared 提交于
-
- 28 3月, 2020 1 次提交
-
-
由 Damien George 提交于
Using new options enabled in the uncrustify configuration.
-
- 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
-
- 15 10月, 2019 4 次提交
-
-
由 iabdalkader 提交于
Set to 810 cycles following HAL examples.
-
由 iabdalkader 提交于
-
由 iabdalkader 提交于
The call to is_adcx_channel is redundant because the channel is already checked just before calling adc_init_single in adc_make_new.
-
由 iabdalkader 提交于
Use NB_TO_CHANNEL to map decimal numbers to channel numbers. And use the correct rank to initialize channels (ADC_REGULAR_RANK_1).
-