hal.c 445 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * hal.c
  3. *
  4. * Created on: 14.06.2017
  5. * Author: balbekova
  6. */
  7. #include "stm32f4xx.h"
  8. #ifndef BT6702_SERVICE
  9. #include "log.h"
  10. #include "snmp_api.h"
  11. #include "trap_api.h"
  12. #endif
  13. #include <stddef.h>
  14. #include "FreeRTOS.h"
  15. #include "task.h"
  16. void Reboot(void) {
  17. #ifndef BT6702_SERVICE
  18. SNMP_SendUserTrap(DEVICE_REBOOTED);
  19. log_event_data(LOG_SYSTEM_BOOT, name_login);
  20. vTaskDelay(1010);
  21. LOG_Disable();
  22. #endif
  23. NVIC_SystemReset();
  24. }