initial check in based on SVN revision 575

This commit is contained in:
2025-05-14 12:57:39 -05:00
commit a3ef12e24a
217 changed files with 95547 additions and 0 deletions

42
source/safety_key.c Normal file
View 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
}