You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 13, 2025. It is now read-only.
I'm trying to run some simple tests with a slave sensor connected on the SPI bus with a master Jennic JN5148 micro controller. Master and slave are connected using VCC, GND, MISO, CS and CLK pins of the J4 connector .
I think the common API to use for all the platforms at userspace level is the one implemented at contiki-jn51xx/core/dev/spi.h, that is:
Also, I found some spi.c files for the cpu/msp430 and cpu/avr CPU's. But there isn't any equivalent file for the cpu/jennic. Comparing msp430 and avr source files, both declare a "spi_init" function that initialize the SPI bus. But I'm not sure if that initialization is also needed for the JN5148, or maybe not. If needed, this is a complex stuff to implement it by myself without any help. Does some of you have this initialization function for the JN5148, or can give some advice to try to implement it by myself?
Hello forum.
I'm trying to run some simple tests with a slave sensor connected on the SPI bus with a master Jennic JN5148 micro controller. Master and slave are connected using VCC, GND, MISO, CS and CLK pins of the J4 connector .
I think the common API to use for all the platforms at userspace level is the one implemented at contiki-jn51xx/core/dev/spi.h, that is:
SPI_WRITE(data)
SPI_WRITE_FAST(data)
SPI_READ(data)
SPI_FLUSH()
Is that true?
Also, I found some spi.c files for the cpu/msp430 and cpu/avr CPU's. But there isn't any equivalent file for the cpu/jennic. Comparing msp430 and avr source files, both declare a "spi_init" function that initialize the SPI bus. But I'm not sure if that initialization is also needed for the JN5148, or maybe not. If needed, this is a complex stuff to implement it by myself without any help. Does some of you have this initialization function for the JN5148, or can give some advice to try to implement it by myself?
Thank you in advance!!.
Best regards,
-- Ivan