1. 13 7月, 2023 4 次提交
  2. 15 6月, 2023 1 次提交
    • D
      stm32: Add initial support for H5 MCUs. · 61339aa5
      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>
      61339aa5
  3. 24 5月, 2023 1 次提交
  4. 21 3月, 2023 1 次提交
  5. 15 12月, 2022 1 次提交
  6. 18 11月, 2022 2 次提交
    • Y
      stm32/adc: Fix ADCAll.read_core_temp() on L4 MCUs. · f6b5d183
      yn386 提交于
      TS_CAL1 and TS_CAL2 of STM32L4 are at VDDA=3.0V, so the reference
      correction factor should be updated before reading tempsensor.
      f6b5d183
    • Y
      stm32/adc: Fix reading internal ADC channels on L4 MCUs. · 2154ee21
      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().
      2154ee21
  7. 25 9月, 2022 1 次提交
  8. 19 9月, 2022 3 次提交
  9. 06 9月, 2022 1 次提交
    • Y
      stm32/adc: Make ADCAll.read_channel reject invalid channels. · 8770cd2f
      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().
      8770cd2f
  10. 23 7月, 2022 1 次提交
  11. 03 5月, 2022 1 次提交
  12. 28 4月, 2022 1 次提交
  13. 22 3月, 2022 1 次提交
  14. 04 2月, 2022 2 次提交
  15. 01 2月, 2022 1 次提交
  16. 30 11月, 2021 1 次提交
  17. 16 9月, 2021 1 次提交
  18. 15 9月, 2021 1 次提交
  19. 05 7月, 2021 1 次提交
  20. 02 7月, 2021 2 次提交
  21. 18 12月, 2020 1 次提交
  22. 02 6月, 2020 1 次提交
  23. 15 5月, 2020 1 次提交
  24. 18 4月, 2020 1 次提交
  25. 05 4月, 2020 1 次提交
  26. 28 3月, 2020 1 次提交
  27. 28 2月, 2020 1 次提交
  28. 13 2月, 2020 1 次提交
    • D
      py: Add mp_raise_msg_varg helper and use it where appropriate. · ad7213d3
      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
      ad7213d3
  29. 15 10月, 2019 4 次提交