Jelajahi Sumber

max80: change esp_ctr debug signal to 4 Hz

H. Peter Anvin 3 tahun lalu
induk
melakukan
b5e39487bd
5 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      fpga/max80.sv
  2. TEMPAT SAMPAH
      fpga/output_files/max80.jbc
  3. TEMPAT SAMPAH
      fpga/output_files/max80.jic
  4. TEMPAT SAMPAH
      fpga/output_files/max80.pof
  5. TEMPAT SAMPAH
      fpga/output_files/max80.sof

+ 1 - 1
fpga/max80.sv

@@ -834,7 +834,7 @@ module max80 (
 	.irq	( iodev_irq_esp )
 	);
 `else // !`ifdef REALLY_ESP32
-   reg [5:0] esp_ctr;
+   reg [5:-13] esp_ctr;		// 32768 * 2^-13 = 4 Hz
 
    always @(posedge ctr_32khz)
      esp_ctr <= esp_ctr + 1'b1;

TEMPAT SAMPAH
fpga/output_files/max80.jbc


TEMPAT SAMPAH
fpga/output_files/max80.jic


TEMPAT SAMPAH
fpga/output_files/max80.pof


TEMPAT SAMPAH
fpga/output_files/max80.sof