I confuse about palWritePort and palWritePad,
What is difference between Port and Pad ?.
Which one is good choice ?.
What is function to do like these ?.
GPIO_WriteBit (GPIOB, GPIO_Pin_8 | GPIO_Pin_9 | GPIO_Pin_10 , Bit_SET);
Giovanni Di Sirio
palWritePort() writes a whole GPIO port, palWritePad() writes a single bit (by position 0…15).
I think the closest equivalent to GPIO_WriteBit(…, Bit_SET) is:
palSetPort(GPIOB, GPIO_Pin_8 | GPIO_Pin_9 | GPIO_Pin_10);
This function sets the specified bits to 1 but does not touch the others.
Thanks you very much.