Created
May 16, 2015 13:28
-
-
Save kkmonster/5d2e896a0bd06f83da16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void PID_thread(void const * arg) | |
{ | |
while (true) | |
{ | |
osEvent evt = osSignalWait(SIGNAL_OUTPUT_1_TOGGLE, osWaitForever); | |
if (evt.status == osEventSignal) | |
{ | |
nrf_gpio_pin_set(GPIO_OUTPUT_0); | |
osDelay(1); | |
nrf_gpio_pin_clear(GPIO_OUTPUT_0); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment