| 1234567891011121314151617181920212223242526272829 | 
							- /*
 
-  * hal.c
 
-  *
 
-  *  Created on: 14.06.2017
 
-  *      Author: balbekova
 
-  */
 
- #include "stm32f4xx.h"
 
- #ifndef BT6702_SERVICE
 
- #include "log.h"
 
- #include "snmp_api.h"
 
- #include "trap_api.h"
 
- #endif
 
- #include <stddef.h>
 
- #include "FreeRTOS.h"
 
- #include "task.h"
 
- void Reboot(void) {
 
- #ifndef BT6702_SERVICE
 
- 	SNMP_SendUserTrap(DEVICE_REBOOTED);
 
- 	log_event_data(LOG_SYSTEM_BOOT, "Администратор");
 
- 	vTaskDelay(1010);
 
- 	LOG_Disable();
 
- #endif
 
-     NVIC_SystemReset();
 
- }
 
 
  |