Merge branch 'master' of ssh://home.hottis.de:2922/wolutator/mbusgateway3variant

This commit is contained in:
2020-10-25 22:44:42 +01:00

View File

@ -32,6 +32,11 @@ void helloWorld(void *handle) {
HAL_UART_Transmit_IT(&debugUart, (uint8_t*) hello, strlen(hello));
}
void helloMeterbus(void *handle) {
static char hello[] = "Hello Meterbus\n\r";
HAL_UART_Transmit_IT(&mbusUart, (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);
@ -60,6 +65,8 @@ void my_setup_2() {
// schAdd(enableLoop, NULL, 10000, 0);
// schAdd(disableLoop, NULL, 20000, 0);
schAdd(toggleLoop, NULL, 0, 10000);
schAdd(helloMeterbus, NULL, 0, 1000);
}
void my_loop() {