UPD morse delay slower for fast morse, 2024 standard time
This commit is contained in:
parent
64c43796e6
commit
545dd0c17d
@ -26,7 +26,7 @@ extern "C" {
|
|||||||
#define STR(x) STR_HELPER(x)
|
#define STR(x) STR_HELPER(x)
|
||||||
#endif
|
#endif
|
||||||
#define VERSION_MAJOR 0
|
#define VERSION_MAJOR 0
|
||||||
#define VERSION_MINOR 4
|
#define VERSION_MINOR 5
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#define VERSION_DEBUG ".D"
|
#define VERSION_DEBUG ".D"
|
||||||
#else
|
#else
|
||||||
@ -41,7 +41,7 @@ extern "C" {
|
|||||||
|
|
||||||
/* #define COMPILE_YEAR (__DATE__ + 7) */
|
/* #define COMPILE_YEAR (__DATE__ + 7) */
|
||||||
#define DATE_COMPILE_CENTURY (20)
|
#define DATE_COMPILE_CENTURY (20)
|
||||||
#define DATE_COMPILE_YEAR (22)
|
#define DATE_COMPILE_YEAR (24)
|
||||||
|
|
||||||
#if !defined _SYS_ERRNO_H_ && !defined __ERRNO_H__ && !defined __AT1_ERROR_NUMBERS__
|
#if !defined _SYS_ERRNO_H_ && !defined __ERRNO_H__ && !defined __AT1_ERROR_NUMBERS__
|
||||||
#define __AT1_ERROR_NUMBERS__
|
#define __AT1_ERROR_NUMBERS__
|
||||||
|
@ -57,7 +57,6 @@ static const cmd_table_t cmd_table[] = {
|
|||||||
{"hidden", 2, CMD_HIDDEN, do_test },
|
{"hidden", 2, CMD_HIDDEN, do_test },
|
||||||
{"info", 1, CMD_NO_FLAG, do_info },
|
{"info", 1, CMD_NO_FLAG, do_info },
|
||||||
{"sinfo", 1, CMD_SECRET, do_sinfo },
|
{"sinfo", 1, CMD_SECRET, do_sinfo },
|
||||||
|
|
||||||
{"time", 1, CMD_NO_FLAG, do_time },
|
{"time", 1, CMD_NO_FLAG, do_time },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#include <at1_defines.h> /* include my defines from a global view, else */
|
#include <at1_defines.h> /* include my defines from a global view, else */
|
||||||
#ifndef DATE_COMPILE_CENTURY
|
#ifndef DATE_COMPILE_CENTURY
|
||||||
#define DATE_COMPILE_CENTURY (20)
|
#define DATE_COMPILE_CENTURY (20)
|
||||||
#define DATE_COMPILE_YEAR (22)
|
#define DATE_COMPILE_YEAR (24)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined _SYS_ERRNO_H_ && !defined __ERRNO_H__ && !defined __AT1_ERROR_NUMBERS__
|
#if !defined _SYS_ERRNO_H_ && !defined __ERRNO_H__ && !defined __AT1_ERROR_NUMBERS__
|
||||||
|
@ -585,10 +585,10 @@ static void MX_RTC_Init(void)
|
|||||||
{
|
{
|
||||||
Error_Handler();
|
Error_Handler();
|
||||||
}
|
}
|
||||||
sDate.WeekDay = RTC_WEEKDAY_MONDAY;
|
sDate.WeekDay = RTC_WEEKDAY_TUESDAY;
|
||||||
sDate.Month = RTC_MONTH_AUGUST;
|
sDate.Month = RTC_MONTH_DECEMBER;
|
||||||
sDate.Date = 0x1;
|
sDate.Date = 0x31;
|
||||||
sDate.Year = 0x22;
|
sDate.Year = 0x24;
|
||||||
|
|
||||||
if (HAL_RTC_SetDate(&hrtc, &sDate, RTC_FORMAT_BCD) != HAL_OK)
|
if (HAL_RTC_SetDate(&hrtc, &sDate, RTC_FORMAT_BCD) != HAL_OK)
|
||||||
{
|
{
|
||||||
@ -832,7 +832,7 @@ int _write(int fd, unsigned char *p, int len)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void print_system_info(void) {
|
void print_system_info(void) {
|
||||||
puts("*************************************");
|
puts("***************************************");
|
||||||
puts(PROGRAM_ID " " AUTHOR_STRING);
|
puts(PROGRAM_ID " " AUTHOR_STRING);
|
||||||
puts("Compiled: " __DATE__ " " __TIME__);
|
puts("Compiled: " __DATE__ " " __TIME__);
|
||||||
puts(osKernelSystemId);
|
puts(osKernelSystemId);
|
||||||
@ -1082,7 +1082,7 @@ void start_morse_task(void *argument)
|
|||||||
if(++i % 32) { /* do this 31 times, then Morse my callsign once at high speed */
|
if(++i % 32) { /* do this 31 times, then Morse my callsign once at high speed */
|
||||||
morse(inst, "MO", morsedelay, clk);
|
morse(inst, "MO", morsedelay, clk);
|
||||||
} else {
|
} else {
|
||||||
morsedelay = delay/3;
|
morsedelay = delay/2;
|
||||||
morse(inst, "f0x.at1 de oe3tkt/p", morsedelay, clk);
|
morse(inst, "f0x.at1 de oe3tkt/p", morsedelay, clk);
|
||||||
morsedelay = delay;
|
morsedelay = delay;
|
||||||
}
|
}
|
||||||
@ -1114,7 +1114,7 @@ void start_clk2_task(void *argument)
|
|||||||
if(++i % 32) { /* do this 31 times, then Morse my callsign once at high speed */
|
if(++i % 32) { /* do this 31 times, then Morse my callsign once at high speed */
|
||||||
morse(inst, "MOe", morsedelay, clk);
|
morse(inst, "MOe", morsedelay, clk);
|
||||||
} else {
|
} else {
|
||||||
morsedelay = delay/3;
|
morsedelay = delay/2;
|
||||||
morse(inst, "f0x.at1 de oe3tkt/p", morsedelay, clk);
|
morse(inst, "f0x.at1 de oe3tkt/p", morsedelay, clk);
|
||||||
morsedelay = delay;
|
morsedelay = delay;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user