/ * @brief * Toggle a single pin in GPIO port data out register. * * @note * In order for the setting to take effect on the output pad, the pin must * have been configured properly. If not, it will take effect whenever the * pin has been properly configured. * * @param[in] port * The GPIO port to access. * * @param[in] pin * The pin to toggle. *****************************
| 352 | * The pin to toggle. |
| 353 | ******************************************************************************/ |
| 354 | void GPIO_PinOutToggle(GPIO_Port_TypeDef port, unsigned int pin) |
| 355 | { |
| 356 | EFM_ASSERT(GPIO_PORT_VALID(port) && GPIO_PIN_VALID(pin)); |
| 357 | |
| 358 | GPIO->P[port].DOUTTGL = 1 << pin; |
| 359 | } |
| 360 | |
| 361 | |
| 362 | /***************************************************************************//** |