Expanded on stdio logging functionality, also configuration of logging is now entirely in CMakeLists.txt for convenience, also warns now for logging configurations that make no sense; Clarification in CV table comment; Moved pin definitions into board definition files; two_std_dev() now works mostly with integers; Added function for resetting all CVs saved in flash; Added various LOG() messages;

This commit is contained in:
gab-k committed 2024-12-22 21:48:41 +01:00
1 parent 7b1d5ed152
commit f8b99de801
9 files changed
+311 -119

No files matched your search

+3 -3
View File
@@ -2,10 +2,10 @@
#include "pico/stdlib.h"
#define CV_ARRAY_SIZE 1024
// All CVs are 8-bit numbers ranging from (0 - 255)dec = (0b00000000 - 0b11111111)bin = (0x00 - 0xFF)hex
// Note : CV_1 = index 0, CV_2 = index 1, CV_3 = index 2, ...
// All CVs are 8-bit numbers or bytes ranging from (0 - 255)dec = (0b00000000 - 0b11111111)bin = (0x00 - 0xFF)hex
// IMPORTANT NOTE : CV_1 @ array_index = 0; CV_2 @ array_index = 1; CV_3 @ array_index = 2; ...;
// This effectively means: array_index = cv_index - 1
// Explicitly write CV_ARRAY_DEFAULT into flash memory using __in_flash attribute macro
uint8_t CV_ARRAY_DEFAULT [CV_ARRAY_SIZE] = {
0b00000011, //CV_1 - Basic address - CV_1 = 0 and CV_1 > 127 are not valid - Default = 3
0b00001000, //CV_2 - V_min - Default = 8