change rel control
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
#ifndef __CHRG_REL_H__
|
||||
#define __CHRG_REL_H__
|
||||
|
||||
#include <rtthread.h>
|
||||
|
||||
#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
|
||||
};
|
||||
|
||||
extern struct chrg_rel_t chrgrel[TOTAL_CHS];
|
||||
|
||||
extern void chrg_north_sw_rel (eIDX_CH ch, eIDX_ID id);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user