This commit is contained in:
jazzpi 2022-08-08 01:21:22 +02:00
parent 72c26fb758
commit 6dab1a5eb7
2 changed files with 3 additions and 6 deletions

View File

@ -14,7 +14,7 @@
#include "stm32g441xx.h" #include "stm32g441xx.h"
#define NUMBEROFSLAVES 7 #define NUMBEROFSLAVES 9
#define NUMBEROFCELLS 10 #define NUMBEROFCELLS 10
#define NUMBEROFTEMPS 32 #define NUMBEROFTEMPS 32

View File

@ -14,11 +14,8 @@
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>
// 3 should be programmed with CAN id 2 const uint16_t slave_CAN_id_to_slave_index[10] = {
// const uint16_t slave_CAN_id_to_slave_index[7] = { 0, 1, 2, 3, 4, 5, 6, 7, 255, 8}; // TODO: Make this pretty pls
// 255, 255, 0, 255, 255, 255, 1}; // TODO: Make this pretty pls
const uint16_t slave_CAN_id_to_slave_index[7] = {
0, 1, 2, 3, 4, 5, 6}; // TODO: Make this pretty pls
canFrame framebuffer[CANFRAMEBUFFERSIZE] = {0}; canFrame framebuffer[CANFRAMEBUFFERSIZE] = {0};
uint32_t framebufferwritepointer = 0; uint32_t framebufferwritepointer = 0;
uint32_t framebufferreadpointer = 0; uint32_t framebufferreadpointer = 0;