add parse threads

This commit is contained in:
wmano
2025-10-25 23:44:23 +08:00
parent d52c94b866
commit 604fe4688c
38 changed files with 1597 additions and 956 deletions
+2 -22
View File
@@ -6,35 +6,15 @@
#include "chrg_switch.h"
#include "chrg_def.h"
// 北向1路 继电器
#define PIN_NORTH_CH0_P0 GET_PIN(C, 3)
#define PIN_NORTH_CH0_P1 GET_PIN(C, 2)
#define PIN_NORTH_CH0_P2 GET_PIN(C, 1)
// 北向2路 继电器
#define PIN_NORTH_CH1_P0 GET_PIN(A, 5)
#define PIN_NORTH_CH1_P1 GET_PIN(A, 4)
#define PIN_NORTH_CH1_P2 GET_PIN(A, 1)
// 北向3路 继电器
#define PIN_NORTH_CH2_P0 GET_PIN(C, 5)
#define PIN_NORTH_CH2_P1 GET_PIN(C, 4)
#define PIN_NORTH_CH2_P2 GET_PIN(A, 7)
// 北向4路 继电器
#define PIN_NORTH_CH3_P0 GET_PIN(B, 15)
#define PIN_NORTH_CH3_P1 GET_PIN(B, 14)
#define PIN_NORTH_CH3_P2 GET_PIN(B, 13)
struct chrg_rel_t {
rt_base_t p0; // connect K1/K3 for sink
rt_base_t p1; // connect K2/K4 for source
rt_base_t p2; // connect K5 for PGND
rt_base_t p2; // connect K5 for GND/PGND
};
extern struct chrg_rel_t chrgrel[TOTAL_CHS];
extern void chrg_north_sw_rel (eIDX_CH ch, eIDX_ID id);
extern void chrg_nor_sw_rel (eIDX_CH ch, eIDX_ID id);
#endif