/hal_espressif-latest/components/hal/esp32/include/hal/ |
D | spi_ll.h | 548 static inline int spi_ll_freq_for_pre_n(int fapb, int pre, int n) in spi_ll_freq_for_pre_n() argument 550 return (fapb / (pre * n)); in spi_ll_freq_for_pre_n() 563 static inline int spi_ll_master_cal_clock(int fapb, int hz, int duty_cycle, spi_ll_clock_val_t *out… in spi_ll_master_cal_clock() argument 569 if (hz > ((fapb / 4) * 3)) { in spi_ll_master_cal_clock() 576 eff_clk = fapb; in spi_ll_master_cal_clock() 590 pre = ((fapb / n) + (hz / 2)) / hz; in spi_ll_master_cal_clock() 597 errval = abs(spi_ll_freq_for_pre_n(fapb, pre, n) - hz); in spi_ll_master_cal_clock() 619 eff_clk = spi_ll_freq_for_pre_n(fapb, pre, n); in spi_ll_master_cal_clock() 642 static inline int spi_ll_master_set_clock(spi_dev_t *hw, int fapb, int hz, int duty_cycle) in spi_ll_master_set_clock() argument 645 int freq = spi_ll_master_cal_clock(fapb, hz, duty_cycle, ®_val); in spi_ll_master_set_clock()
|
/hal_espressif-latest/components/hal/esp32s3/include/hal/ |
D | spi_ll.h | 675 static inline int spi_ll_freq_for_pre_n(int fapb, int pre, int n) in spi_ll_freq_for_pre_n() argument 677 return (fapb / (pre * n)); in spi_ll_freq_for_pre_n() 690 static inline int spi_ll_master_cal_clock(int fapb, int hz, int duty_cycle, spi_ll_clock_val_t *out… in spi_ll_master_cal_clock() argument 696 if (hz > ((fapb / 4) * 3)) { in spi_ll_master_cal_clock() 703 eff_clk = fapb; in spi_ll_master_cal_clock() 717 pre = ((fapb / n) + (hz / 2)) / hz; in spi_ll_master_cal_clock() 724 errval = abs(spi_ll_freq_for_pre_n(fapb, pre, n) - hz); in spi_ll_master_cal_clock() 746 eff_clk = spi_ll_freq_for_pre_n(fapb, pre, n); in spi_ll_master_cal_clock() 769 static inline int spi_ll_master_set_clock(spi_dev_t *hw, int fapb, int hz, int duty_cycle) in spi_ll_master_set_clock() argument 772 int freq = spi_ll_master_cal_clock(fapb, hz, duty_cycle, ®_val); in spi_ll_master_set_clock()
|
/hal_espressif-latest/components/hal/esp32c6/include/hal/ |
D | spi_ll.h | 665 static inline int spi_ll_freq_for_pre_n(int fapb, int pre, int n) in spi_ll_freq_for_pre_n() argument 667 return (fapb / (pre * n)); in spi_ll_freq_for_pre_n() 680 static inline int spi_ll_master_cal_clock(int fapb, int hz, int duty_cycle, spi_ll_clock_val_t *out… in spi_ll_master_cal_clock() argument 686 if (hz > ((fapb / 4) * 3)) { in spi_ll_master_cal_clock() 693 eff_clk = fapb; in spi_ll_master_cal_clock() 707 pre = ((fapb / n) + (hz / 2)) / hz; in spi_ll_master_cal_clock() 714 errval = abs(spi_ll_freq_for_pre_n(fapb, pre, n) - hz); in spi_ll_master_cal_clock() 736 eff_clk = spi_ll_freq_for_pre_n(fapb, pre, n); in spi_ll_master_cal_clock() 759 static inline int spi_ll_master_set_clock(spi_dev_t *hw, int fapb, int hz, int duty_cycle) in spi_ll_master_set_clock() argument 762 int freq = spi_ll_master_cal_clock(fapb, hz, duty_cycle, ®_val); in spi_ll_master_set_clock()
|
/hal_espressif-latest/components/hal/esp32c2/include/hal/ |
D | spi_ll.h | 661 static inline int spi_ll_freq_for_pre_n(int fapb, int pre, int n) in spi_ll_freq_for_pre_n() argument 663 return (fapb / (pre * n)); in spi_ll_freq_for_pre_n() 676 static inline int spi_ll_master_cal_clock(int fapb, int hz, int duty_cycle, spi_ll_clock_val_t *out… in spi_ll_master_cal_clock() argument 682 if (hz > ((fapb / 4) * 3)) { in spi_ll_master_cal_clock() 689 eff_clk = fapb; in spi_ll_master_cal_clock() 703 pre = ((fapb / n) + (hz / 2)) / hz; in spi_ll_master_cal_clock() 710 errval = abs(spi_ll_freq_for_pre_n(fapb, pre, n) - hz); in spi_ll_master_cal_clock() 732 eff_clk = spi_ll_freq_for_pre_n(fapb, pre, n); in spi_ll_master_cal_clock() 755 static inline int spi_ll_master_set_clock(spi_dev_t *hw, int fapb, int hz, int duty_cycle) in spi_ll_master_set_clock() argument 758 int freq = spi_ll_master_cal_clock(fapb, hz, duty_cycle, ®_val); in spi_ll_master_set_clock()
|
/hal_espressif-latest/components/hal/esp32c3/include/hal/ |
D | spi_ll.h | 661 static inline int spi_ll_freq_for_pre_n(int fapb, int pre, int n) in spi_ll_freq_for_pre_n() argument 663 return (fapb / (pre * n)); in spi_ll_freq_for_pre_n() 676 static inline int spi_ll_master_cal_clock(int fapb, int hz, int duty_cycle, spi_ll_clock_val_t *out… in spi_ll_master_cal_clock() argument 682 if (hz > ((fapb / 4) * 3)) { in spi_ll_master_cal_clock() 689 eff_clk = fapb; in spi_ll_master_cal_clock() 703 pre = ((fapb / n) + (hz / 2)) / hz; in spi_ll_master_cal_clock() 710 errval = abs(spi_ll_freq_for_pre_n(fapb, pre, n) - hz); in spi_ll_master_cal_clock() 732 eff_clk = spi_ll_freq_for_pre_n(fapb, pre, n); in spi_ll_master_cal_clock() 755 static inline int spi_ll_master_set_clock(spi_dev_t *hw, int fapb, int hz, int duty_cycle) in spi_ll_master_set_clock() argument 758 int freq = spi_ll_master_cal_clock(fapb, hz, duty_cycle, ®_val); in spi_ll_master_set_clock()
|
/hal_espressif-latest/components/hal/esp32h2/include/hal/ |
D | spi_ll.h | 667 static inline int spi_ll_freq_for_pre_n(int fapb, int pre, int n) in spi_ll_freq_for_pre_n() argument 669 return (fapb / (pre * n)); in spi_ll_freq_for_pre_n() 682 static inline int spi_ll_master_cal_clock(int fapb, int hz, int duty_cycle, spi_ll_clock_val_t *out… in spi_ll_master_cal_clock() argument 688 if (hz > ((fapb / 4) * 3)) { in spi_ll_master_cal_clock() 695 eff_clk = fapb; in spi_ll_master_cal_clock() 709 pre = ((fapb / n) + (hz / 2)) / hz; in spi_ll_master_cal_clock() 716 errval = abs(spi_ll_freq_for_pre_n(fapb, pre, n) - hz); in spi_ll_master_cal_clock() 738 eff_clk = spi_ll_freq_for_pre_n(fapb, pre, n); in spi_ll_master_cal_clock() 761 static inline int spi_ll_master_set_clock(spi_dev_t *hw, int fapb, int hz, int duty_cycle) in spi_ll_master_set_clock() argument 764 int freq = spi_ll_master_cal_clock(fapb, hz, duty_cycle, ®_val); in spi_ll_master_set_clock()
|
/hal_espressif-latest/components/hal/esp32s2/include/hal/ |
D | spi_ll.h | 623 static inline int spi_ll_freq_for_pre_n(int fapb, int pre, int n) in spi_ll_freq_for_pre_n() argument 625 return (fapb / (pre * n)); in spi_ll_freq_for_pre_n() 638 static inline int spi_ll_master_cal_clock(int fapb, int hz, int duty_cycle, spi_ll_clock_val_t *out… in spi_ll_master_cal_clock() argument 644 if (hz > ((fapb / 4) * 3)) { in spi_ll_master_cal_clock() 651 eff_clk = fapb; in spi_ll_master_cal_clock() 665 pre = ((fapb / n) + (hz / 2)) / hz; in spi_ll_master_cal_clock() 672 errval = abs(spi_ll_freq_for_pre_n(fapb, pre, n) - hz); in spi_ll_master_cal_clock() 694 eff_clk = spi_ll_freq_for_pre_n(fapb, pre, n); in spi_ll_master_cal_clock() 717 static inline int spi_ll_master_set_clock(spi_dev_t *hw, int fapb, int hz, int duty_cycle) in spi_ll_master_set_clock() argument 720 int freq = spi_ll_master_cal_clock(fapb, hz, duty_cycle, ®_val); in spi_ll_master_set_clock()
|
/hal_espressif-latest/components/hal/ |
D | spi_hal.c | 117 int spi_hal_master_cal_clock(int fapb, int hz, int duty_cycle) in spi_hal_master_cal_clock() argument 119 return spi_ll_master_cal_clock(fapb, hz, duty_cycle, NULL); in spi_hal_master_cal_clock()
|
/hal_espressif-latest/components/hal/include/hal/ |
D | spi_hal.h | 242 int spi_hal_master_cal_clock(int fapb, int hz, int duty_cycle);
|
/hal_espressif-latest/components/driver/spi/include/driver/ |
D | spi_master.h | 365 int spi_get_actual_clock(int fapb, int hz, int duty_cycle) __attribute__((deprecated("Please use sp…
|
/hal_espressif-latest/components/driver/spi/gpspi/ |
D | spi_master.c | 533 int spi_get_actual_clock(int fapb, int hz, int duty_cycle) in spi_get_actual_clock() argument 535 return spi_hal_master_cal_clock(fapb, hz, duty_cycle); in spi_get_actual_clock()
|