classB.c 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /************************************************************************
  2. Project:
  3. Filename: spi_master.c
  4. Partner Filename: N/A
  5. Description: Partner file of uart_appl.h
  6. Complier: IAR Embedded Workbench for ARM 6.50, IAR Systems.
  7. CPU TYPE : ST32F0xx
  8. *************************************************************************
  9. Copyright (c) 2013 Welling Motor Technology(Shanghai) Co. Ltd.
  10. All rights reserved.
  11. *************************************************************************
  12. *************************************************************************
  13. Revising History (ECL of this file):
  14. M0_20170410, by liyue, create this file;
  15. ************************************************************************/
  16. /************************************************************************
  17. Beginning of File, do not put anything above here except notes
  18. Compiler Directives:
  19. *************************************************************************/
  20. #ifndef _CLASSB_C_
  21. #define _CLASSB_C_
  22. #endif
  23. /************************************************************************
  24. Included File
  25. *************************************************************************/
  26. #include "user.h"
  27. /*************************************************************************
  28. Local Functions (N/A)
  29. *************************************************************************/
  30. /*
  31. void FailSafeErr(void)
  32. {
  33. //clas_blclassBErrFlg = 1;
  34. pwm_voPWMDisable();
  35. DISABLE_IRQ;
  36. //NVIC_SystemReset();
  37. while(1)
  38. {
  39. IWDG_ReloadCounter();
  40. }
  41. }
  42. */
  43. /*************************************************************************
  44. Copyright (c) 2013 Welling Motor Technology(Shanghai) Co. Ltd.
  45. All rights reserved.
  46. *************************************************************************/
  47. #ifdef _CLASSB_C_
  48. #undef _CLASSB_C_
  49. #endif
  50. /*************************************************************************
  51. End of this File (EOF)!
  52. Do not put anything after this part!
  53. *************************************************************************/