File tree Expand file tree Collapse file tree 3 files changed +44
-1
lines changed Expand file tree Collapse file tree 3 files changed +44
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : RSK-RX65N-2MB
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+
9
+ defaults :
10
+ run :
11
+ working-directory : Renesas/RSK_RX65N_2MB
12
+
13
+ jobs :
14
+ build :
15
+ runs-on : ${{ matrix.os }}
16
+ strategy :
17
+ matrix :
18
+ os : [ubuntu-latest]
19
+
20
+ steps :
21
+ - name : Checkout code
22
+ uses : actions/checkout@v2
23
+ with :
24
+ submodules : recursive
25
+
26
+ - name : rx-elf-gcc
27
+ uses : ryanwinter/rx-elf-gcc@main
28
+ with :
29
+ release : ' 8.3.0.202004'
30
+
31
+ - name : Install Ninja
32
+ uses : seanmiddleditch/gha-setup-ninja@v3
33
+
34
+ - name : Build project
35
+ run : |
36
+ cmake -Bbuild -GNinja -DCMAKE_TOOLCHAIN_FILE="../../cmake/renesas-rx-gcc-rx65n.cmake"
37
+ cmake --build build
Original file line number Diff line number Diff line change
1
+ ![ ] ( https://github.com/azure-rtos/getting-started/workflows/Markdown%20links/badge.svg )
1
2
![ ] ( https://github.com/azure-rtos/getting-started/workflows/ATSAME54-XPRO/badge.svg )
2
3
![ ] ( https://github.com/azure-rtos/getting-started/workflows/AZ3166/badge.svg )
3
4
![ ] ( https://github.com/azure-rtos/getting-started/workflows/MIMXRT1050-EVKB/badge.svg )
4
5
![ ] ( https://github.com/azure-rtos/getting-started/workflows/MIMXRT1060-EVK/badge.svg )
6
+ ![ ] ( https://github.com/azure-rtos/getting-started/workflows/RSK-RX65N-2MB/badge.svg )
5
7
![ ] ( https://github.com/azure-rtos/getting-started/workflows/STM32L4_L4+/badge.svg )
6
- ![ ] ( https://github.com/azure-rtos/getting-started/workflows/Markdown%20links/badge.svg )
7
8
8
9
# Getting Started with Azure RTOS and Azure IoT
9
10
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ static void set_sntp_time()
71
71
{
72
72
ULONG seconds ;
73
73
ULONG milliseconds ;
74
+ ULONG previous_time ;
74
75
UINT status ;
75
76
CHAR time_buffer [64 ];
76
77
@@ -81,6 +82,9 @@ static void set_sntp_time()
81
82
return ;
82
83
}
83
84
85
+ // calculate the time correction for printout
86
+ previous_time = sntp_time_get ();
87
+
84
88
tx_mutex_get (& time_mutex , TX_WAIT_FOREVER );
85
89
86
90
// Stash the Unix and ThreadX times
@@ -100,6 +104,7 @@ static void set_sntp_time()
100
104
else
101
105
{
102
106
printf ("SNTP time update: %s\r\n" , time_buffer );
107
+ printf ("\tdrift correction: %lu seconds\r\n" , sntp_time_get () - previous_time );
103
108
}
104
109
105
110
// Flag the sync was successful
You can’t perform that action at this time.
0 commit comments