mirror of
https://github.com/fairwaves/UHD-Fairwaves.git
synced 2025-10-23 16:13:50 +00:00
zpu: move spi mask into spi.c
This commit is contained in:
Binary file not shown.
@@ -51,5 +51,5 @@ uint32_t spi_transact(bool readback, int slave, uint32_t data, int length, uint3
|
||||
if (!readback) return 0;
|
||||
|
||||
spi_wait();
|
||||
return readback_mux->spi;
|
||||
return readback_mux->spi & ((1 << length)-1);
|
||||
}
|
||||
|
@@ -45,9 +45,9 @@ umtrx_init(void)
|
||||
|
||||
// Check LMS presense
|
||||
res = spi_transact(SPI_TXRX, SPI_SS_LMS1, LMS_RD_CMD(0x04), 16, SPI_PUSH_FALL|SPI_LATCH_RISE);
|
||||
printf("LMS1 chip version = 0x%x\n", res & 0xffff);
|
||||
printf("LMS1 chip version = 0x%x\n", res);
|
||||
res = spi_transact(SPI_TXRX, SPI_SS_LMS2, LMS_RD_CMD(0x04), 16, SPI_PUSH_FALL|SPI_LATCH_RISE);
|
||||
printf("LMS2 chip version = 0x%x\n", res & 0xffff);
|
||||
printf("LMS2 chip version = 0x%x\n", res);
|
||||
|
||||
// Init GPSDO
|
||||
gpsdo_init();
|
||||
|
Reference in New Issue
Block a user