Skip to content

Commit 46ac11c

Browse files
committed
hostmot2 bspi: add a comment about read fifos
1 parent 662a8de commit 46ac11c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • src/hal/drivers/mesa-hostmot2

src/hal/drivers/mesa-hostmot2/bspi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ int hm2_tram_add_bspi_frame(char *name, int chan, rtapi_u32 **wbuff, rtapi_u32 *
148148
return -1;
149149
}
150150
if (rbuff != NULL){
151+
// Reading from addr[0] instead of addr[chan] is intentional
152+
// here - all the channels share one receive FIFO.
151153
r = hm2_register_tram_read_region(hm2,hm2->bspi.instance[i].addr[0], sizeof(rtapi_u32),rbuff);
152154
if (r < 0) {
153155
HM2_ERR( "Failed to add TRAM read entry for %s\n", name);

0 commit comments

Comments
 (0)