hal.c 402 B

123456789101112131415161718192021222324
  1. /*
  2. * hal.c
  3. *
  4. * Created on: 14.06.2017
  5. * Author: balbekova
  6. */
  7. #include "stm32f4xx.h"
  8. #include "log.h"
  9. #include "snmp_api.h"
  10. #include "trap_api.h"
  11. #include <stddef.h>
  12. #include "FreeRTOS.h"
  13. #include "task.h"
  14. void Reboot(void) {
  15. SNMP_SendUserTrap(DEVICE_REBOOTED);
  16. log_event_data(LOG_SYSTEM_BOOT, "Администратор");
  17. vTaskDelay(1010);
  18. LOG_Disable();
  19. NVIC_SystemReset();
  20. }