1. 15 10月, 2019 1 次提交
    • D
      SPI: Ensure all read-only data pointers are marked as const (#3356) · b847f41e
      David J. Fiddes 提交于
      This changes all SPI functions that take data pointers which are
      not modified so that the declaration is const. This allows them
      to be used with const data (i.e. held in flash). No functional
      changes are required.
      
      The defnitions of spiWrite() and spiTransferBytes()  in
      esp-hal-spi.h/c have been updated to be consistent.
      
      Tests:
       - Build a simple sketch using SPI.writePattern() and
         SPI.transferBytes()  which uses const data and verify that the
         attached device functions as expected.
      b847f41e
  2. 09 1月, 2019 1 次提交
    • M
      Handle APB frequency change (#2250) · 2fd39b1a
      Me No Dev 提交于
      * Add APB change callbacks and move cpu code to own file
      
      * Properly set esp_timer and FreeRTOS tick dividers
      
      * Improve updated devisors
      
      * No need to update REF_TICK yet
      
      * Add initial handling for UART baud change
      
      * fix uartWriteBuf and uartDetectBaudrate
      
      * trigger callbacks even when APB did not change
      
      * toggle UART ISR on CPU change
      
      * add XTAL freq getter and add cpu freq validation
      
      * Support CPU frequency changes in I2C (#2287)
      
      **esp32-hal-i2c.c**
      * add callback for cpu frequency changes
      * adjust fifo thresholds based on cpu frequency and i2c bus frequency
      * reduce i2c bus frequency if differential is too small
      **Wire.h**
      * version to 1.1.0
      
      * Implement clock change for the other peripherals
      
      * remove bad CPU clock values from the menu
      
      * Add note to CPU freqs that support WiFi and BT
      2fd39b1a
  3. 20 12月, 2018 1 次提交
    • M
      CPU and APB Frequency support (#2220) · c827bb41
      Me No Dev 提交于
      * Add support to HAL for APB frequencies different than 80MHz
      
      * Add support for CPU frequencies in the IDE board menu
      
      * Switch to fast set_config
      
      * Add method to uart so debug can be reassigned after apb frequency switch
      
      * Return real APB frequency
      c827bb41
  4. 05 3月, 2018 1 次提交
  5. 18 9月, 2017 1 次提交
  6. 13 9月, 2017 1 次提交
  7. 16 5月, 2017 1 次提交
  8. 05 5月, 2017 1 次提交
    • S
      SPI_MODE2 and SPI_MODE3 configurations inverted (#345) · cc73f17a
      Severin Smith 提交于
      It appears that the configurations for `ck_out_edge` were inverted for `SPI_MODE2` and `SPI_MODE3`. You can check the technical reference manual on page 76, table 23 "Clock Polarity and Phase, and Corresponding SPI Register Values for SPI Master".
      
      I've check with my oscilloscope that the current configuration is wrong and this fix corrects the issue.
      cc73f17a
  9. 22 3月, 2017 1 次提交
  10. 14 2月, 2017 1 次提交
  11. 01 2月, 2017 1 次提交
  12. 16 1月, 2017 1 次提交
  13. 18 11月, 2016 1 次提交
  14. 14 11月, 2016 1 次提交
  15. 14 10月, 2016 1 次提交
  16. 11 10月, 2016 1 次提交
  17. 06 10月, 2016 1 次提交