2 #include "../firmware.h"
4 #include "inc/hw_memmap.h"
5 #include "driverlib/gpio.h"
6 #include "driverlib/pin_map.h"
7 #include "driverlib/ssi.h"
8 #include "driverlib/sysctl.h"
10 #include "../cc1125/cc1125.h"
24 uint32_t pui32DataTx[10];
25 uint32_t pui32DataRx[10];
32 volatile uint32_t ui32Loop;
41 for(ui32Loop = 0; ui32Loop < 300000; ui32Loop++) {};
50 radio_reset_config(SPI_RADIO_TX, preferredSettings_cw,
sizeof(preferredSettings_cw)/
sizeof(
registerSetting_t));
51 radio_reset_config(SPI_RADIO_RX, preferredSettings,
sizeof(preferredSettings)/
sizeof(
registerSetting_t));
63 for(ui32Loop = 0; ui32Loop < 3000; ui32Loop++) {};
66 manualCalibration(SPI_RADIO_TX);
67 manualCalibration(SPI_RADIO_RX);
70 for(ui32Loop = 0; ui32Loop < 3000; ui32Loop++) {};
72 for(ui32Loop = 0; ui32Loop < 30000; ui32Loop++) {};
91 SPI_cmd(SPI_RADIO_RX, CC112X_SRX);
94 SPI_cmd(SPI_RADIO_TX, CC112X_STX);
99 for(ui32Loop = 0; ui32Loop < 300000; ui32Loop++) {};
CC1120 register export from SmartRF Studio.
void UART_init(uint8_t uart_num, uint32_t baudrate)
int main(void)
Runs all module tests.
uint8_t SPI_cmd(uint8_t spi_num, uint8_t cmd)
void UART_putc(uint8_t uart_num, char c)