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
  • Well, it isn't too common that a C expression might be long.

    But the OP should by now have figured out that the C compiler does not need any \ at the end of the lines to concatenate individual text lines into a single line. Not even when someone needs to print a very long text string is it needed to use any \ to split the text string over multiple lines.

Reply
  • Well, it isn't too common that a C expression might be long.

    But the OP should by now have figured out that the C compiler does not need any \ at the end of the lines to concatenate individual text lines into a single line. Not even when someone needs to print a very long text string is it needed to use any \ to split the text string over multiple lines.

Children