AIAANortheastern / karman-avionics

The avionics system for the Northeastern University AIAA Project Karman rocket
1 stars 0 forks source link

Need to enable peripheral clocks #6

Closed ADKaster closed 7 years ago

ADKaster commented 7 years ago

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.