aboutsummaryrefslogtreecommitdiff
path: root/stm32f091/test.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-26 19:18:26 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-26 19:18:26 +0200
commitd48374c0f38cb01d726958b49bda5c1b6e91ab91 (patch)
tree084ed6b96b31ed3d9c1118545ce44d6b89f6ae2b /stm32f091/test.c
parenta74368cb7eebb99b14060c9198dfa277a18c2234 (diff)
WIP working dma receive to buffer
Diffstat (limited to 'stm32f091/test.c')
-rw-r--r--stm32f091/test.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/stm32f091/test.c b/stm32f091/test.c
index 0960d0f..e25b071 100644
--- a/stm32f091/test.c
+++ b/stm32f091/test.c
@@ -3,23 +3,12 @@
#include <task.h>
#include "esp8266.h"
-#include "setup.h"
-#include "util.h"
-
-void ws_test_read_task() {
- uint8_t* buf; // TODO: not working
- while (1) {
- HAL_UART_Receive_DMA(&huart1, buf, 1);
- HAL_UART_Transmit(&huart2, buf, 1, 100);
- }
-}
void ws_test_write_task() {
uint8_t data[] = "AT\r\n";
while (1) {
ws_esp8266_send(data, sizeof(data));
- HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_5);
- vTaskDelay(portTICK_PERIOD_MS * 1000 * 1);
+ vTaskDelay(portTICK_PERIOD_MS * 100 * 1);
}
}