- 13 7月, 2023 8 次提交
-
-
由 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>
-
由 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>
-
由 Yuuki NAGAO 提交于
For STMG4 MCUs, the peripheral registers for DAC have to be accessed by words (32bits) because DAC is connected to AHB directly. (This requirement is also there for other MCU series. However, if DAC is connected to APB like F4/L1/L4 MCUs, AHB byte or half-word transfer is changed into a 32-bit APB transfer. This means that PSIZE does not have to be DMA_PDATAALIGN_WORD on these MCUs, and in fact must be BYTE/HALFWORD to function correctly.) Fixes issue #9563. Signed-off-by: NYuuki NAGAO <wf.yn386@gmail.com>
-
由 Elvis Pfutzenreuter 提交于
This board requires slightly different configuration to work. It is important to hard reset (cycle power) if you try to initialize LAN and it fails, before trying again with new parameters. Discussion: https://github.com/orgs/micropython/discussions/11446 AliExpress purchase link: https://pt.aliexpress.com/item/1005002023196214.htmlSigned-off-by: NElvis Pfutzenreuter <epxx@epxx.co>
-
由 Glenn Moloney 提交于
This is a fix for commit bccbaa92: - Should only wait for WIFI_EVENT_STA_START when invoked on the STA_IF interface. - The WIFI_EVENT_STA_START event is generated every time the STA_IF interface is set active(True) and it was previously inactive, ie. not only after calling esp_wifi_start(). - Also wait for WIFI_EVENT_STA_STOP when deactivating the interface. - Also wait for relevant AP events. Fixes issue #11910. Signed-off-by: NGlenn Moloney <glenn.moloney@gmail.com> Signed-off-by: NDamien George <damien@micropython.org>
-
- 11 7月, 2023 4 次提交
-
-
由 Damien George 提交于
Enabling mDNS put this firmware over the limit of the OTA partition size, so tweak the compiler settings to reduce the firmware size. Signed-off-by: NDamien George <damien@micropython.org>
-
由 Carlosgg 提交于
mDNS was disabled in e4650125. This commit re-enables it. For reference see: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/migration-guides/release-5.x/5.0/removed-components.htmlSigned-off-by: NCarlos Gil <carlosgilglez@gmail.com>
-
由 Damien George 提交于
To match the other functions in the machine module, in particular so that MICROPY_PY_MACHINE can be disabled without getting a compiler warning about unused code. Signed-off-by: NDamien George <damien@micropython.org>
-
由 Tobias Thyrrestrup 提交于
Signed-off-by: NTobias Thyrrestrup <tt@LEGO.com>
-
- 27 6月, 2023 12 次提交
-
-
由 Yuuki NAGAO 提交于
Also, it is needed only when USB is enabled. Signed-off-by: NYuuki NAGAO <wf.yn386@gmail.com>
-
由 Yuuki NAGAO 提交于
Signed-off-by: NYuuki NAGAO <wf.yn386@gmail.com>
-
由 elibdev 提交于
This may also call the garbage collector. Signed-off-by: NEli Bierman <eli@elib.dev>
-
由 elibdev 提交于
This fixes a bug where `gc.collect()` would crash due to emscripten_scan_stack being called synchronously within mp_js_do_str. The fix is to make mp_js_do_str asynchronous. Fixes #10692. Signed-off-by: NEli Bierman <eli@elib.dev>
-
由 robert-hh 提交于
Signed-off-by: Nrobert-hh <robert@hammelrath.com>
-
由 robert-hh 提交于
And move the setting to the samd-generic files, now that both samd21 and samd51 support it. Signed-off-by: Nrobert-hh <robert@hammelrath.com>
-
由 robert-hh 提交于
Signed-off-by: Nrobert-hh <robert@hammelrath.com>
-
由 robert-hh 提交于
They are used by both SAMD21 and SAMD51. Signed-off-by: Nrobert-hh <robert@hammelrath.com>
-
由 robert-hh 提交于
SAMD21: set the filesystem type to LFS1. SAMD51: the type is already set to LFS2, support is now dropped for LFS1. It has not been used and dropping it saves 10 k of flash. Signed-off-by: Nrobert-hh <robert@hammelrath.com>
-
由 Damien George 提交于
Fixes issue #11872. Signed-off-by: NDamien George <damien@micropython.org>
-
由 mbedNoobNinja 提交于
Signed-off-by: NmbedNoobNinja <novoltage@gmail.com>
-
由 mbedNoobNinja 提交于
This commit adds support for a new processor RA6M5. It also adds the following classes to the machine module: PWM, DAC, SDCard. Signed-off-by: NmbedNoobNinja <novoltage@gmail.com>
-
- 26 6月, 2023 5 次提交
-
-
由 Takeo Takahashi 提交于
* Use R_SCI_UART_BaudCalculate() of fsp/src/r_sci_uart/r_sci_uart.c * Support UART.init(baudrate) Signed-off-by: NTakeo Takahashi <takeo.takahashi.xv@renesas.com>
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
For coverage. Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
This commit adds the SSLContext class to the ssl module, and retains the existing ssl.wrap_socket() function to maintain backwards compatibility. CPython deprecated the ssl.wrap_socket() function since CPython 3.7 and instead one should use ssl.SSLContext().wrap_socket(). This commit makes that possible. For the axtls implementation: - ssl.SSLContext is added, although it doesn't hold much state because axtls requires calling ssl_ctx_new() for each new socket - ssl.SSLContext.wrap_socket() is added - ssl.PROTOCOL_TLS_CLIENT and ssl.PROTOCOL_TLS_SERVER are added For the mbedtls implementation: - ssl.SSLContext is added, and holds most of the mbedtls state - ssl.verify_mode is added (getter and setter) - ssl.SSLContext.wrap_socket() is added - ssl.PROTOCOL_TLS_CLIENT and ssl.PROTOCOL_TLS_SERVER are added The signatures match CPython: - SSLContext(protocol) - SSLContext.wrap_socket(sock, *, server_side=False, do_handshake_on_connect=True, server_hostname=None) The existing ssl.wrap_socket() functions retain their existing signature. Signed-off-by: NDamien George <damien@micropython.org>
-
- 25 6月, 2023 2 次提交
-
-
由 Damien George 提交于
The config header files with the same name have the same contents, so they don't need to be repeated for each board in the board's source directory. Signed-off-by: NDamien George <damien@micropython.org>
-
由 Wind261 提交于
Signed-off-by:
Wind-stormger <storm-wind@foxmail.com>
-
- 24 6月, 2023 1 次提交
-
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
- 23 6月, 2023 8 次提交
-
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
And change erase_flash to erase-flash, because the former is deprecated since IDF 4.4. Signed-off-by: NDamien George <damien@micropython.org>
-
由 Damien George 提交于
Signed-off-by: NDamien George <damien@micropython.org>
-
由 Glenn Moloney 提交于
IDF v5.0 provides access to rssi value for received espnow packets via recv_info arg to recv_cb(). Signed-off-by: NGlenn Moloney <glenn.moloney@gmail.com>
-
由 Damien George 提交于
This commit updates the esp32 port to work exclusively with ESP-IDF v5. IDF v5 is needed for some of the newer ESP32 SoCs to work, and it also cleans up a lot of the inconsistencies between existing SoCs (eg S2, S3, and C3). Support for IDF v4 is dropped because it's a lot of effort to maintain both versions at the same time. The following components have been verified to work on the various SoCs: ESP32 ESP32-S2 ESP32-S3 ESP32-C3 build pass pass pass pass SPIRAM pass pass pass N/A REPL (UART) pass pass pass pass REPL (USB) N/A pass pass N/A filesystem pass pass pass pass GPIO pass pass pass pass SPI pass pass pass pass I2C pass pass pass pass PWM pass pass pass pass ADC pass pass pass pass WiFi STA pass pass pass pass WiFi AP pass pass pass pass BLE pass N/A pass pass ETH pass -- -- -- PPP pass pass pass -- sockets pass pass pass pass SSL pass ENOMEM pass pass RMT pass pass pass pass NeoPixel pass pass pass pass I2S pass pass pass N/A ESPNow pass pass pass pass ULP-FSM pass pass pass N/A SDCard pass N/A N/A pass WDT pass pass pass pass Signed-off-by: NDamien George <damien@micropython.org> Signed-off-by: NJim Mussared <jim.mussared@gmail.com>
-
由 Damien George 提交于
The hall sensor is no longer supported by IDF v5. Signed-off-by: NDamien George <damien@micropython.org>
-