This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Init

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?

Parents
  • 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.

Reply
  • 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.

Children
  • 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.