safety interlocking and a bunch of other fun stuff

This commit is contained in:
Thaddeus Hughes
2026-01-05 19:47:51 -06:00
parent 53bea4eb04
commit 15e2145560
19 changed files with 1004 additions and 935 deletions

26
main/sc_err.h Normal file
View File

@@ -0,0 +1,26 @@
/*
* sc_errors.h
*
* Created on: Jan 5, 2026
* Author: Thad
*/
#ifndef MAIN_SC_ERR_H_
#define MAIN_SC_ERR_H_
// from esp_err.h, from 0 -> 0x100 is clear
// as is 0x10D -> 0x3000
#define SC_ERR_EFUSE_TRIP_1 0x201
#define SC_ERR_EFUSE_TRIP_2 0x202
#define SC_ERR_EFUSE_TRIP_3 0x203
#define SC_ERR_SAFETY_TRIP 0x210
#define SC_ERR_LEASH_HIT 0x211
#define SC_ERR_RTC_NOT_SET 0x220
#define SC_ERR_LOW_BATTERY 0x230
#endif /* MAIN_SC_ERR_H_ */