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

    But there are those other times, when the OP isnt really bothered about the car, the route or the distance or the time or any other resources invested to reach the station. He will readily take an aerial route (least bothering about the amount of resources needed to be invested) or will take a "around the city tour" and get down at the station when it comes - wasting a lot of time. Such OPs would learn nothing in the process resulting to a birth of yet another "i have a bachelor of Engineering degree" guy. Life's such a waste. the situation is worse when such an OP guides his juniors.

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

    But there are those other times, when the OP isnt really bothered about the car, the route or the distance or the time or any other resources invested to reach the station. He will readily take an aerial route (least bothering about the amount of resources needed to be invested) or will take a "around the city tour" and get down at the station when it comes - wasting a lot of time. Such OPs would learn nothing in the process resulting to a birth of yet another "i have a bachelor of Engineering degree" guy. Life's such a waste. the situation is worse when such an OP guides his juniors.

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

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