This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2538: how to get Beagle Bone Black GPIO_SRDY & GPIO_MRDY Pins.

Part Number: CC2538


Hello E2E Community,

I am trying to implement SPI interface on CC2538 ZNP device. 

For that I am studding the following documentation & HA 1.2.2a ZNP application code.

As mentioned in NPI_Gateway.cfg SRDY MRDY pins are configure as follows.

[GPIO_SRDY.GPIO]
value="/sys/class/gpio/gpio132/value"
direction="/sys/class/gpio/gpio132/direction"
active_high_low=1 ; (Active Low=0, Active High=1)

[GPIO_SRDY.LEVEL_SHIFTER]
value="/sys/class/gpio/gpio137/value"
direction="/sys/class/gpio/gpio137/direction"
active_high_low=1 ; (Active Low=0, Active High=1)

[GPIO_MRDY.GPIO]
value="/sys/class/gpio/gpio135/value"
direction="/sys/class/gpio/gpio135/direction"
active_high_low=1 ; (Active Low=0, Active High=1)

[GPIO_MRDY.LEVEL_SHIFTER]
value="/sys/class/gpio/gpio136/value"
direction="/sys/class/gpio/gpio136/direction"
active_high_low=1 ; (Active Low=0, Active High=1)

what is the use case of LEVEL_SHIFTER pins??.. 

are LEVEL_SHIFTER pins are connected some were or we just need to configure them & let them Open?...

  • Hi,

    This is not necessary for SPI mode, as indicated by the following code from hal_gpio.h:

    /*******************************************/
    
    /*** We will be using SPI mode so no need to support MRDY and SRDY ***/
    
    #define HAL_RNP_MRDY_CFG() HalGpioMrdyInit(0)
    
    #define HAL_RNP_MRDY_CLR() HalGpioMrdySet(0)
    
    #define HAL_RNP_MRDY_SET() HalGpioMrdySet(1)
    
    #define HAL_RNP_SRDY_CFG() HalGpioSrdyInit(0)
    
    #define HAL_RNP_SRDY_CLR() HalGpioSrdyCheck(0)
    #define HAL_RNP_SRDY_SET() HalGpioSrdyCheck(1)
    
    #define HAL_RNP_SRDY_RX() HAL_RNP_SRDY_SET()
    #define HAL_RNP_SRDY_TX() HAL_RNP_SRDY_CLR()

    Regards,
    Toby