user.c 494 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. POT_Process();
  15. }
  16. void USER_Tasks(void) {
  17. }
  18. #ifdef USER_PROTOCOL_ENABLE
  19. extern uint8_t PACKET_REQUEST[PACKET_LENGTH];
  20. extern uint8_t PACKET_RESPONSE[PACKET_LENGTH];
  21. uint8_t USER_Packet_Handling(void) {
  22. return 0;
  23. }
  24. #endif