user.c 478 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * user.c
  3. *
  4. * Created on: 2 июн. 2023 г.
  5. * Author: Andrey Koryagin https://blog.avislab.com/
  6. */
  7. #include "u_foc.h"
  8. #include "position.h"
  9. extern volatile SettingsStruct Settings;
  10. void USER_Init(void) {
  11. }
  12. void USER_While(void) {
  13. HAL_Delay(10);
  14. }
  15. void USER_Tasks(void) {
  16. }
  17. #ifdef USER_PROTOCOL_ENABLE
  18. extern uint8_t PACKET_REQUEST[PACKET_LENGTH];
  19. extern uint8_t PACKET_RESPONSE[PACKET_LENGTH];
  20. uint8_t USER_Packet_Handling(void) {
  21. return 0;
  22. }
  23. #endif