start script for build env, ignore editor swp, play with loop relay

This commit is contained in:
2020-10-24 19:27:40 +02:00
parent e7b964c86a
commit 69dd57fa55
3 changed files with 16 additions and 0 deletions

View File

@ -31,10 +31,22 @@ void helloWorld(void *handle) {
HAL_UART_Transmit_IT(&debugUart, (uint8_t*) hello, strlen(hello));
}
void enableLoop(void *handle) {
HAL_GPIO_WritePin(Loop_Enable_GPIO_Port, Loop_Enable_Pin, GPIO_PIN_SET);
HAL_GPIO_WritePin(Loop_Enable_GPIO_Port, Loop_Enable_Pin, GPIO_PIN_RESET);
}
void disableLoop(void *handle) {
HAL_GPIO_WritePin(Loop_Disable_GPIO_Port, Loop_Disable_Pin, GPIO_PIN_SET);
HAL_GPIO_WritePin(Loop_Disable_GPIO_Port, Loop_Disable_Pin, GPIO_PIN_RESET);
}
void my_setup_2() {
schAdd(blinkRed, NULL, 0, 500);
schAdd(blinkGreen, NULL, 0, 1000);
schAdd(helloWorld, NULL, 0, 5000);
schAdd(enableLoop, NULL, 10000, 0);
schAdd(disableLoop, NULL, 20000, 0);
}
void my_loop() {