diff --git a/src/comps/hv.c b/src/comps/hv.c index b886895e..b2761980 100644 --- a/src/comps/hv.c +++ b/src/comps/hv.c @@ -64,8 +64,6 @@ struct hv_ctx_t { uint16_t timeout; }; -volatile uint32_t foobar; - static void nrt_init(volatile void *ctx_ptr, volatile hal_pin_inst_t *pin_ptr) { struct hv_ctx_t *ctx = (struct hv_ctx_t *)ctx_ptr; struct hv_pin_ctx_t *pins = (struct hv_pin_ctx_t *)pin_ptr; diff --git a/src/comps/hw/io4.c b/src/comps/hw/io4.c index dc8b23ed..99bf65d6 100644 --- a/src/comps/hw/io4.c +++ b/src/comps/hw/io4.c @@ -25,20 +25,20 @@ HAL_PIN(fan); HAL_PIN(state); HAL_PIN(fault); -HAL_PIN(brake); +//outputs HAL_PIN(out0); HAL_PIN(out1); HAL_PIN(out2); -HAL_PIN(in0); -HAL_PIN(in1); -HAL_PIN(ind0); -HAL_PIN(ind1); -HAL_PIN(ind0n); -HAL_PIN(ind1n); -HAL_PIN(th0); -HAL_PIN(th1); +HAL_PIN(in0); //input 0, analog +HAL_PIN(in1); //input 1, analog +HAL_PIN(ind0); //input 0, digital +HAL_PIN(ind1); //input 1, digital +HAL_PIN(ind0n); //input 0 inverted +HAL_PIN(ind1n); //input 0 inverted +HAL_PIN(th0); //voltage threshold in0 +HAL_PIN(th1); //voltage threshold in1 HAL_PIN(CTX); HAL_PIN(CRX); @@ -51,20 +51,16 @@ HAL_PIN(swd_remap); HAL_PIN(DIO); HAL_PIN(CK); +//rj45 leds HAL_PIN(fb0g); HAL_PIN(fb0y); HAL_PIN(fb1g); HAL_PIN(fb1y); -// HAL_PIN(cmdc); -// HAL_PIN(cmdc_en); -// HAL_PIN(cmdd); -// HAL_PIN(cmdd_en); HAL_PIN(cmdg); HAL_PIN(cmdy); - HAL_PIN(fb0); HAL_PIN(fb1); HAL_PIN(fbd0); @@ -74,7 +70,7 @@ HAL_PIN(fbd1n); HAL_PIN(fbth0); HAL_PIN(fbth1); - +//a,b,z inputs of fb0 and fb1 HAL_PIN(fb0a); HAL_PIN(fb0b); HAL_PIN(fb0z);