Hi everyone, I'm a little bit stuck and hoping for some internet help.
I am using AVR studio and a SAMR21 Xplained Pro development board.
I have significant experience in assembly and C for PICs, AVRs and STM32 microcontrollers, so very frustrated that this has me stumped. I have never used the software frameworks for any of the microcontrollers Iv'e used, and wasn't planning on using the ASF framework for the SAMR21 either.
I can't seem to figure out how to configure a particular pin as an input with pull-up by using the registers defined in port.h
To configure a pin as output for example, I can just use :
//Make PA19 output
REG_PORT_DIRSET0 |= (1 << 19);
But I'm not sure how to access the REG_PORT_PINCFG0 register.
Any guidance other than 'Use the ASF' very much appreciated.