peripherals/c/wireless.c
//*****************************************************************************
// Used to initialize the Nordic nRF24L01+ radio.  The GPIO pins and SPI 
// interface are both configured.
//
// Configuration Info
//		Fill out relevant information in boardUtil.h.  boardUtil.h defines 
//		how various peripherals are physically connected to the board.
//  
//*****************************************************************************
Used to initialize the Nordic nRF24L01+ radio.  The GPIO pins and SPI
interface are both configured.

Configuration Info
Fill out relevant information in boardUtil.h.  boardUtil.h defines
how various peripherals are physically connected to the board.
Used to initialize the Nordic nRF24L01 + radio . The GPIO pins and SPI interface are both configured . Configuration Info Fill out relevant information in boardUtil . h . boardUtil . h defines how various peripherals are physically connected to the board .
void wireless_initialize(void)
{  
  gpio_enable_port(RF_GPIO_BASE);
  gpio_config_digital_enable(RF_GPIO_BASE, RF_CLK_PIN);
  gpio_config_alternate_function(RF_GPIO_BASE, RF_CLK_PIN);
  gpio_config_port_control(RF_GPIO_BASE, RF_SPI_CLK_PCTL_M, RF_CLK_PIN_PCTL);
  gpio_config_digital_enable(RF_GPIO_BASE, RF_MISO_PIN);
  gpio_config_alternate_function(RF_GPIO_BASE, RF_MISO_PIN);
  gpio_config_port_control(RF_GPIO_BASE, RF_SPI_MISO_PCTL_M, RF_MISO_PIN_PCTL);
  gpio_config_digital_enable(RF_GPIO_BASE, RF_MOSI_PIN);
  gpio_config_alternate_function(RF_GPIO_BASE, RF_MOSI_PIN);
  gpio_config_port_control(RF_GPIO_BASE, RF_SPI_MOSI_PCTL_M, RF_MOSI_PIN_PCTL);
  gpio_enable_port(RF_CS_BASE);
  gpio_config_digital_enable(RF_CS_BASE,RF_CS_PIN);
  gpio_config_enable_output(RF_CS_BASE,RF_CS_PIN);
  gpio_enable_port(RF_CE_GPIO_BASE);
  gpio_config_digital_enable(RF_CE_GPIO_BASE,RF_CE_PIN);
  gpio_config_enable_output(RF_CE_GPIO_BASE,RF_CE_PIN);
  initialize_spi( RF_SPI_BASE, 0, 10);
  RF_CE_PORT->DATA |= RF_CE_PIN;
}
void wireless_initialize ( void ) { gpio_enable_port ( RF_GPIO_BASE ) ; gpio_config_digital_enable ( RF_GPIO_BASE , RF_CLK_PIN ) ; gpio_config_alternate_function ( RF_GPIO_BASE , RF_CLK_PIN ) ; gpio_config_port_control ( RF_GPIO_BASE , RF_SPI_CLK_PCTL_M , RF_CLK_PIN_PCTL ) ; gpio_config_digital_enable ( RF_GPIO_BASE , RF_MISO_PIN ) ; gpio_config_alternate_function ( RF_GPIO_BASE , RF_MISO_PIN ) ; gpio_config_port_control ( RF_GPIO_BASE , RF_SPI_MISO_PCTL_M , RF_MISO_PIN_PCTL ) ; gpio_config_digital_enable ( RF_GPIO_BASE , RF_MOSI_PIN ) ; gpio_config_alternate_function ( RF_GPIO_BASE , RF_MOSI_PIN ) ; gpio_config_port_control ( RF_GPIO_BASE , RF_SPI_MOSI_PCTL_M , RF_MOSI_PIN_PCTL ) ; gpio_enable_port ( RF_CS_BASE ) ; gpio_config_digital_enable ( RF_CS_BASE , RF_CS_PIN ) ; gpio_config_enable_output ( RF_CS_BASE , RF_CS_PIN ) ; gpio_enable_port ( RF_CE_GPIO_BASE ) ; gpio_config_digital_enable ( RF_CE_GPIO_BASE , RF_CE_PIN ) ; gpio_config_enable_output ( RF_CE_GPIO_BASE , RF_CE_PIN ) ; initialize_spi ( RF_SPI_BASE , 0 , 10 ) ; RF_CE_PORT -> DATA |= RF_CE_PIN ; }
Used to initialize the Nordic nRF24L01+ radio.
Used to initialize the Nordic nRF24L01 + radio .
// Configure SPI CLK // Configure SPI MISO // Configure SPI MOSI // Configure CS to be a normal GPIO pin that is controlled  // explicitly by software // Configure CE Pin as an output  