@ArakelTheDragon I think I somewhat got a hold on the WTD. Following the schematic in the Datasheet/Guide helped a lot with this.
@MrChips I'm trying to decode your struct, and I have a couple of questions.
You write
Why is it necessary to store these variables in a pragma location?
Where is this 0x0020? If I look at the memory map on page 25 in the user guide, I land on the 8 Bit Peripheral Module section
@MrChips I'm trying to decode your struct, and I have a couple of questions.
You write
C:
#pragma LOCATION(P1IN_bit, 0x0020);
#pragma LOCATION(P1OUT_bit, 0x0021);
Where is this 0x0020? If I look at the memory map on page 25 in the user guide, I land on the 8 Bit Peripheral Module section