initial check in based on SVN revision 575
This commit is contained in:
42
source/safety_key.c
Normal file
42
source/safety_key.c
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* safety_key.c
|
||||
*
|
||||
* Created on: Sep 1, 2023
|
||||
* Author: Keith.Lloyd
|
||||
*/
|
||||
|
||||
#include "pro_key.h"
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include "keys.h"
|
||||
#include "frq.h"
|
||||
#include "display.h"
|
||||
#include "main.h"
|
||||
#include "timer.h"
|
||||
#include "pwr_level.h"
|
||||
#include "utils.h"
|
||||
|
||||
|
||||
|
||||
extern uint8_t Task;
|
||||
extern uint8_t frequency,old_freq,frq_chg_tmr;
|
||||
extern uint32_t new_freq;
|
||||
|
||||
extern uint8_t keyval,Safety_Select,Safe_Mode, Over_Voltage_Flag;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void safe_key(void)
|
||||
{
|
||||
// Safe_Mode = false; // ensure safe mode operating
|
||||
/// Over_Voltage_Flag = true;
|
||||
|
||||
if(KEY_GetPressed() == ON_OFF_KEY)// || KEY_POWER)//(key_bits)
|
||||
Power_Down(); // Stores last settings and powers off
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user