p_mic_det
This commit is contained in:
@@ -8,6 +8,7 @@ on tile[1]: out port p_led_d1 = PORT_LED_D1; // FOOTSTEPS indicator
|
||||
on tile[1]: out port p_led_d2 = PORT_LED_D2; // MIC MUTE indicator
|
||||
on tile[1]: out port p_led_d3 = PORT_LED_D3; // GUNSHOT (4A bit3)
|
||||
on tile[1]: out port p_led_d4_d7_d6 = PORT_LED_D4_7_6; // 4D: bit3=D4, bit2=D7, bit0=D6
|
||||
on tile[1]: in port p_mic_det = PORT_MIC_DET; // MIC DETECT indicator
|
||||
|
||||
// TX1 HTR3236 RGB LED driver control
|
||||
// 改动原因:与 xu316_qf60.xn 中 PORT_HTR3236_SDB 一致,避免硬编码端口与 xn 脱节
|
||||
@@ -24,11 +25,14 @@ void tx1_led_helper_task(server interface tx1_led_if led_if)
|
||||
{
|
||||
// Local state mirrors for tile[1] ports
|
||||
unsigned d1_state = 1; // active low: 1=off, 0=on
|
||||
unsigned mic_det_state = 0;
|
||||
unsigned d2_state = 1;
|
||||
unsigned d3_state = 0xF; // 4-bit port, bit3 controls D3
|
||||
unsigned d5_state = 1;
|
||||
unsigned d4_d7_d6_state = 0xF; // bit3=D4, bit2=D7, bit0=D6
|
||||
|
||||
p_mic_det :> mic_det_state;
|
||||
|
||||
// Init all LEDs off
|
||||
p_led_d1 <: 1;
|
||||
p_led_d2 <: 1;
|
||||
|
||||
Reference in New Issue
Block a user