Skimming through code on github I see
Code: Select all
// CANFilter shiftx2_can_filter = {1, 0, 1, 0, 0x000E3700, 0x1FFFFF00}; // g_can_base_address, ANALOGX_CAN_FILTER_MASK
.
.
.
offset |= palReadPad(GPIOA, ADR1_ADDRESS_PORT) == PAL_HIGH ? 0x01 : 0x00;
offset |= palReadPad(GPIOA, ADR2_ADDRESS_PORT) == PAL_HIGH ? 0x02 : 0x00;