//------------------------------------------------------------------------------ // void halBoardInit(void) // // DESCRIPTION: // Set up board. Initialize MCU, configure I/O pins and user interfaces //------------------------------------------------------------------------------ void halBoardInit(void) { halMcuInit(); halDigioConfig(&pinLed1); halDigioConfig(&pinLed2); halDigioConfig(&pinS1); halDigioConfig(&pinS2); halDigioConfig(&pinGDO0); halDigioConfig(&pinGDO2); halSpiInit(0); //halUartInit(0, 0); halIntOn(); }
/** * Initializes the SPI interface to the Module. * @note Module SPI clock speed < 4MHz. SPI port configured for clock polarity of 0, clock phase of 0, and MSB first. * @note On MDB the RFIC SPI port is USCIB1 * @note Modify this method for other hardware implementations. * @pre SPI pins configured correctly: Clock, MOSI, MISO configured as SPI function; Chip Select configured as an output; SRDY configured as an input. * @post SPI port is configured for RFIC communications. */ void halSpiInitModule() { halSpiInit(USCIB1, BAUD_RATE_2MHZ); SPI_SS_CLEAR(); }