I am trying to save ports in a struct to have them in a handy fashion for a function.
Code: Select all
typedef struct sensors_struct {
int bitport;
port channel_a, channel_b, hall_sensor;
unsigned bit_a, bit_b, bit_hs;
} sensors;
Code: Select all
portxy undeclared here