Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

SPI bus #5

@aicastell

Description

@aicastell

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions