I cleaned up the WPU, I think I had one on ADC.
more proof that blindly setting pin registers is bad practice and serves no purpose .
the safe setting is to leave them as default unless you need them to be different

if you use mcc its perfectly clear how each pin is set and self documenting
Name:  Untitled.jpg
Views: 11504
Size:  244.8 KB