void GpioInit(void) { // Set to inputs FIO0DIR = \ FIO1DIR = \ FIO2DIR = \ FIO3DIR = \ FIO4DIR = 0;
// clear mask registers FIO0MASK =\ FIO1MASK =\ FIO2MASK =\ FIO3MASK =\ FIO4MASK = 0;
// Reset all GPIO pins to default primary function PINSEL0 =\ PINSEL1 =\ PINSEL2 =\ PINSEL3 =\ PINSEL4 =\ PINSEL7 =\ PINSEL8 =\ PINSEL9 =\ PINSEL10 = 0; }
How can I change PINSEL1 with this code?
the situation is worse when such an OP guides his juniors. Thats how it is done. - plain answer. The junior is left with no choice but to agree.
read the following psychological story. skeptics.stackexchange.com/.../was-the-experiment-with-five-monkeys-a-ladder-a-banana-and-a-water-spray-condu
While counter questioning, there is a motto that people actually learn the concept which can further be used whenever they want, may be even in another situation.