mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-06-19 00:55:37 -04:00

書き換え失敗時、(中断ではなく、データ異常など)復旧を試みる 無限ループや暴走はまずい... git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@120 013db118-44a6-b54f-8bf7-843cb86687b1
67 lines
1.9 KiB
C
67 lines
1.9 KiB
C
/*****************************************************************************
|
|
ビルド時刻を埋め込みます。
|
|
ビルドの度に更新されるようにする必要があります。
|
|
(touchしてね)
|
|
****************************************************************************/
|
|
#include "config.h"
|
|
|
|
// V0.5 (ニセ0.1改)
|
|
#pragma section @@CNSTL MGC_LOAD AT 0x0FF6
|
|
__far static const unsigned char MGC_LOAD[] = __TIME__;
|
|
|
|
#pragma section @@CNST MGC_MIMI AT 0x2100
|
|
static const unsigned char MGC_HEAD[] = __TIME__;
|
|
|
|
#pragma section @@CNST MGC_TAIL AT 0x4FF6
|
|
//static const unsigned char MGC_TAIL[] = __TIME__;
|
|
static const unsigned char MGC_TAIL[] = "fuga_";
|
|
|
|
|
|
// 0Dまでこれを使用
|
|
// #define SIG { 0x30, 0x38, 0x3A, 0x34, 0x35, 0x3A, 0x33, 0x39, 0x00, 0x00 }
|
|
|
|
|
|
// あーあ。
|
|
/*
|
|
// V0.5 (ニセ0.1改)
|
|
#define SIG { 0x30, 0x38, 0x3A, 0x34, 0x35, 0x3A, 0x33, 0x39, 0x00, 0x00 }
|
|
*/
|
|
|
|
/*
|
|
メモ
|
|
(未使用)
|
|
V0.2の署名 31 34 3A 33 35 3A 33 35 00 00
|
|
#define SIG { 0x31, 0x34, 0x3A, 0x33, 0x35, 0x3A, 0x33, 0x35, 0x00, 0x00 };
|
|
|
|
ctr_wm0
|
|
31373A30353A32310000
|
|
#define SIG { 0x31, 0x37, 0x3A, 0x30, 0x35, 0x3A, 0x32, 0x31, 0x00, 0x00 };
|
|
|
|
ctr_wm0_2
|
|
31303A34393A35390000
|
|
#define SIG { 0x31, 0x30, 0x3A, 0x34, 0x39, 0x3A, 0x35, 0x39, 0x00, 0x00 };
|
|
|
|
bsr_V0.2_090828_WM2
|
|
31323A35393A32350000
|
|
#define SIG { 0x31, 0x32, 0x3A, 0x35, 0x39, 0x3A, 0x32, 0x35, 0x00, 0x00 };
|
|
*/
|
|
|
|
|
|
/*
|
|
// V0.1の署名(日付) 30 38 3A 34 35 3A 33 39 00 00
|
|
#pragma section @@CNSTL MGC_LOAD AT 0x0FF6
|
|
__far static const unsigned char MGC_LOAD[] =
|
|
#define SIG { 0x30, 0x38, 0x3A, 0x34, 0x35, 0x3A, 0x33, 0x39, 0x00, 0x00 }
|
|
|
|
|
|
// V0.4以降
|
|
#pragma section @@CNSTL MGC_LOAD AT 0x0FF6
|
|
__far static const unsigned char MGC_LOAD[] = __TIME__;
|
|
|
|
#pragma section @@CNST MGC_MIMI AT 0x2100
|
|
static const unsigned char MGC_HEAD[] = __TIME__;
|
|
|
|
#pragma section @@CNST MGC_TAIL AT 0x47F6
|
|
static const unsigned char MGC_TAIL[] = __TIME__;
|
|
*/
|