The following code should be added to SpiTask.c and RadioTask.c. Or maybe main.c/init.c.
sysclk_enable_module(SYSCLK_PORT_C, SYSCLK_SPI); /* Enable SPI Peripheral clock on port C */
sysclk_enable_module(SYSCLK_PORT_D, SYSCLK_SPI); /* Enable SPI Peripheral clock on port D */
I'm not sure if it makes more sense to put all pin/clock initialization in the same place, or where it will be used.
This will replace the comments asking if its necessary to do so. Yes, yes it is. Check with the manual though.
The following code should be added to SpiTask.c and RadioTask.c. Or maybe main.c/init.c.
I'm not sure if it makes more sense to put all pin/clock initialization in the same place, or where it will be used.
This will replace the comments asking if its necessary to do so. Yes, yes it is. Check with the manual though.