Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
yuji-katori authored Mar 8, 2024
1 parent f7044bc commit cdd4ef8
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 2 deletions.
24 changes: 24 additions & 0 deletions mtkernel_3/device/rtc/sysdepend/tb_rx23w/dev_rtc.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
*----------------------------------------------------------------------
* micro T-Kernel 3.00.00
*
* Copyright (C) 2022 by Yuji Katori.
* This software is distributed under the T-License 2.2.
*----------------------------------------------------------------------
*/

/*
* dev_rtc.h
*/

#define RTC_OPEN( )
#define RTC_CLOSE( )
#define RTC_READ( ) dt->d_year = 100; \
dt->d_month = 1; \
dt->d_day = 1; \
dt->d_hour = 0; \
dt->d_min = 0; \
dt->d_sec = 0;

#define RTC_WRITE( )
#define RTC_INIT( )
Binary file modified mtkernel_3/docs/uTK3.0_EK-RX72N実装仕様書.pdf
Binary file not shown.
Binary file modified mtkernel_3/docs/uTK3.0_FatFs実装手順書.pdf
Binary file not shown.
Binary file modified mtkernel_3/docs/uTK3.0_TCP-IP構築手順書.pdf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ ID cepid = stacd;
D t1, t2, t3, t4;
dstaddr.ipaddr = NTPSERVER; // サーバのIPアドレスを設定
dstaddr.portno = 123; // サーバのポート番号を設定
// 自局のポート番号はCFG_UDP_CEPID*_PORT_NUMBERで123を指定
// 自局のポート番号はCFG_UDP_CEPID#_PORT_NUMBERで123を指定
t1 = 4294967296000 * UTCBASE; // UTCのベース時刻を設定
tim.hi = t1 >> 32; tim.lo = t1; // システム時刻用の変数を初期化
tk_set_utc( &tim ); // UTC時刻を初期化
Expand All @@ -76,7 +76,7 @@ D t1, t2, t3, t4;
t1 = ( ( t2 - t1 ) + ( t3 - t4 ) ) / 2; // オフセットを算出
tk_get_utc( &tim ); // UTC時刻を参照
t1 += t4 = ( ( t4 = tim.hi ) << 32 ) + tim.lo; // 同期UTC時刻を算出
t1 += t4 = ( t4 / 1000 >> 32 << 32 ) * 1000; // 2036年問題を補正
t1 += t4 = ( t4 / 1000 >> 32 << 32 ) * 1000; // 2036年問題を補正
tim.hi = t1 >> 32; tim.lo = t1; // 同期UTC時刻を設定
tk_set_utc( &tim ); // 同期UTC時刻を設定
UTCtoDATETIM( tim.hi, tim.lo ); // UTC時刻を表示
Expand Down
6 changes: 6 additions & 0 deletions mtkernel_3/others/CC-RX_V3.06.00/RXv1/utkernel.csv
Original file line number Diff line number Diff line change
Expand Up @@ -652,3 +652,9 @@ _siic_wait,,,
_siic_open,,,
_siic_abort,,,
_siic_exec,,,
_rtc_event,,,
_rtc_close,,,
_rtc_wait,,,
_rtc_open,,,
_rtc_abort,,,
_rtc_exec,,,
6 changes: 6 additions & 0 deletions mtkernel_3/others/CC-RX_V3.06.00/RXv2/utkernel.csv
Original file line number Diff line number Diff line change
Expand Up @@ -652,3 +652,9 @@ _siic_wait,,,
_siic_open,,,
_siic_abort,,,
_siic_exec,,,
_rtc_event,,,
_rtc_close,,,
_rtc_wait,,,
_rtc_open,,,
_rtc_abort,,,
_rtc_exec,,,
6 changes: 6 additions & 0 deletions mtkernel_3/others/CC-RX_V3.06.00/RXv3/utkernel.csv
Original file line number Diff line number Diff line change
Expand Up @@ -654,3 +654,9 @@ _siic_wait,,,
_siic_open,,,
_siic_abort,,,
_siic_exec,,,
_rtc_event,,,
_rtc_close,,,
_rtc_wait,,,
_rtc_open,,,
_rtc_abort,,,
_rtc_exec,,,

0 comments on commit cdd4ef8

Please sign in to comment.