From 4db4032cc463cd647989dd0220b4d629d73c378f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=A5rtensson?= Date: Sat, 27 Apr 2024 23:05:07 +0200 Subject: [PATCH] Update examples --- Src/Examples/Open SAE J1939/CAN Traffic.txt | 6 +++--- Src/Examples/Open SAE J1939/Internal callback.txt | 6 +++--- Src/Examples/Open SAE J1939/Main.txt | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Src/Examples/Open SAE J1939/CAN Traffic.txt b/Src/Examples/Open SAE J1939/CAN Traffic.txt index 7c272f3..f6f7fbd 100644 --- a/Src/Examples/Open SAE J1939/CAN Traffic.txt +++ b/Src/Examples/Open SAE J1939/CAN Traffic.txt @@ -32,9 +32,9 @@ void Callback_Function_Traffic(uint32_t ID, uint8_t DLC, uint8_t data[], bool is printf("\n"); } -void Callback_Function_Delay(uint8_t uint8) -{ - /* Apply your delay here */ +/* Apply your delay here */ +void Callback_Function_Delay(uint8_t delay){ + /* Place your hardware delay here e.g HAL_Delay(delay); for STM32 */ } int main() { diff --git a/Src/Examples/Open SAE J1939/Internal callback.txt b/Src/Examples/Open SAE J1939/Internal callback.txt index 8096fbf..01979e8 100644 --- a/Src/Examples/Open SAE J1939/Internal callback.txt +++ b/Src/Examples/Open SAE J1939/Internal callback.txt @@ -31,9 +31,9 @@ void Callback_Function_Read(uint32_t* ID, uint8_t data[], bool* is_new_data) { *is_new_data = true; } -void Callback_Function_Delay(uint8_t uint8) -{ - /* Apply your delay here */ +/* Apply your delay here */ +void Callback_Function_Delay(uint8_t delay){ + /* Place your hardware delay here e.g HAL_Delay(delay); for STM32 */ } int main() { diff --git a/Src/Examples/Open SAE J1939/Main.txt b/Src/Examples/Open SAE J1939/Main.txt index 5949cc6..be7381c 100644 --- a/Src/Examples/Open SAE J1939/Main.txt +++ b/Src/Examples/Open SAE J1939/Main.txt @@ -60,9 +60,9 @@ void Callback_Function_Traffic(uint32_t ID, uint8_t DLC, uint8_t data[], bool is printf("\n"); } -void Callback_Function_Delay(uint8_t uint8) -{ - /* Apply your delay here */ +/* Apply your delay here */ +void Callback_Function_Delay(uint8_t delay){ + /* Place your hardware delay here e.g HAL_Delay(delay); for STM32 */ } int main() {