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?
Some times it happens that the OP is a really genuine person who wants to get to station but doesnt know what are the possible ways to commute. But he is really interested to find good solution. Such OP really learns a lot from the counter question. A knowledge hungry OP - as i would term it.
That's very disturbing.
I will continue to carry my map so that I never need to ask you for directions.
That's very disturbing. There is nothing disturbing. Sometimes OPs dont have a smartphone or may not know that their mobilephone has a GPS access or may not know how to use the GPS feature on smartphone or may have a map which is in pieces. That doesnt mean that he is forbidden to go to station and that nobody must help him. If he is willing to learn and solve it on his own - with some assistance, the assistance must be given.
People are not born with maps or have learnt to use the maps just from their mothers womb.
And a lot of people on the forum are supposedly functional adults, and yet at the same time are totally clueless, or at venues of higher learning which seemed to have missed the bus on logical thinking, and problem solving.
So telling someone the station is a mile, or so, down the street is the appropriate answer, not trying to engage in intellectual combat, or argue about time-table or carriage appointment and paint schemes.