add spi, not tested yet

This commit is contained in:
Edward Emelianov
2024-03-07 19:40:21 +03:00
parent 4a6086a182
commit 8ea835d80f
17 changed files with 433 additions and 49 deletions

View File

@@ -17,6 +17,7 @@
*/
#include "can.h"
#include "encoder.h"
#include "flash.h"
#include "gpio.h"
#include "hardware.h"
@@ -60,6 +61,7 @@ int main(void){
hw_setup();
// getSwitches() and set module role & CAN ID
CAN_setup(the_conf.CANspeed);
encoder_setup();
USBPU_ON();
while(1){
IWDG->KR = IWDG_REFRESH;