On Tuesday 14 July 2020 11:27:46 andy pugh wrote: > On Tue, 14 Jul 2020 at 16:20, Gene Heskett <ghesk...@shentel.net> wrote: > > twopass: load_the_modules cmd=<orig_loadrt hm2_rpspi > > {config={"num_encoders=4 num_pwmgens=1 num_stepgens=4"}} spi_debug=3 > > spiclk_rate=41666 spiclk_rate_rd=25000> > > What does the "loadrt hm2_rpspi" line look like before twopass > processing? > from the .ini file: [HOSTMOT2] DRIVER = hm2_rpspi BOARD = 7i90 CONFIG = "num_encoders=4 num_pwmgens=1 num_stepgens=4"
from the .hal file: # load low-level driver loadrt [HOSTMOT2](DRIVER) config=[HOSTMOT2](CONFIG) spi_debug=3 spiclk_rate=41666 spiclk_rate_rd=25000 The spi_debug=3 gets this at launch time w/o the two_pass: hm2: loading Mesa HostMot2 driver version 0.15 hm2_rpspi: Platform: Raspberry Pi 4 Model B Rev 1.1 hm2_rpspi: Base address 0xfe000000 size 0x01800000 hm2_rpspi: Mapped peripherals from 0xfe000000 (size 0x01800000) to gpio:0x0xb4836000, spi:0x0xb483a000, aux:0x0xb484b000 hm2_rpspi: SPI0/CE0 clock rate: 41666000/25000000 Hz, VPU clock rate: 550000000 Hz hm2_rpspi: SPI0/CE0 write clock rate calculated: 39285714 Hz (clkdiv=14) hm2_rpspi: SPI0/CE0 read clock rate calculated: 25000000 Hz (clkdiv=22) hm2_rpspi: SPI0/CE0 Valid cookie matched hm2_rpspi: SPI0/CE0 Base: hm2_7i90.0 hm2/hm2_7i90.0: Low Level init 0.15 hm2/hm2_7i90.0: MD 2: 3x IOPort v0: accepted, using 3 hm2/hm2_7i90.0: MD 0: 1x Hostmot2 DPLL v0: accepted, using 1 hm2/hm2_7i90.0: MD 1: 1x Watchdog v0: accepted, using 1 hm2/hm2_7i90.0: MD 3: 4x Encoder v2: accepted, using 4 hm2/hm2_7i90.0: MD 4: 2x PWMGen v0: accepted, using 1 hm2/hm2_7i90.0: MD 5: 4x StepGen v2: accepted, using 4 hm2/hm2_7i90.0: MD 6: 1x LED v0: accepted, using 1 > (Incidentally, I see that the driver uses mosi and miso, which have > been deprecated. > https://www.oshwa.org/a-resolution-to-redefine-spi-signal-names ) Tell that to Prof. Bertho Stultans. Or not, This is someone determined to confuse the people and make the code harder to understand just to be "PC". Besides that, the only usage is in that driver. Since it is hardware, not people, and the relationship IS as master and slave, I see zero reason to change it just to be changing it. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene> _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers