aboutsummaryrefslogtreecommitdiff
path: root/projects/hsm
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2017-08-31 17:37:53 -0400
committerPaul Selkirk <paul@psgd.org>2017-08-31 17:37:53 -0400
commitd283110c051fbd20792bedb7bd67239e30c2a29a (patch)
tree293bc58e8e1c524a5b6610b6ade1833d44d74ac3 /projects/hsm
parent8b4fd991922f5e33a6d52cc7b0059e1cf5cc59ab (diff)
Withdraw SysTick_hook (commit 9ffead1), because it turns out there was already a user-callback mechanism with HAL_SYSTICK_IRQHandler() and HAL_SYSTICK_Callback().
Diffstat (limited to 'projects/hsm')
-rw-r--r--projects/hsm/hsm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/projects/hsm/hsm.c b/projects/hsm/hsm.c
index 28a1e68..800edcc 100644
--- a/projects/hsm/hsm.c
+++ b/projects/hsm/hsm.c
@@ -266,7 +266,7 @@ volatile uart_ringbuf_t uart_ringbuf = {0, {0}};
size_t uart_rx_max = 0;
-static void uart_rx_task(void)
+void HAL_SYSTICK_Callback(void)
{
size_t count = RINGBUF_COUNT(uart_ringbuf);
if (uart_rx_max < count) uart_rx_max = count;
@@ -438,8 +438,6 @@ int main(void)
Error_Handler();
/* Start the UART receiver. */
- extern void set_SysTick_hook(void (*hook)(void));
- set_SysTick_hook(uart_rx_task);
if (HAL_UART_Receive_DMA(&huart_user, (uint8_t *) uart_ringbuf.buf, sizeof(uart_ringbuf.buf)) != CMSIS_HAL_OK)
Error_Handler();