Skip to content

Commit 23cf8dd

Browse files
authored
Renesas RX workflow action (#175)
1 parent 7c0d9df commit 23cf8dd

File tree

3 files changed

+44
-1
lines changed

3 files changed

+44
-1
lines changed

.github/workflows/RSK-RX65N-2MB.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
![](https://github.com/azure-rtos/getting-started/workflows/Markdown%20links/badge.svg)
12
![](https://github.com/azure-rtos/getting-started/workflows/ATSAME54-XPRO/badge.svg)
23
![](https://github.com/azure-rtos/getting-started/workflows/AZ3166/badge.svg)
34
![](https://github.com/azure-rtos/getting-started/workflows/MIMXRT1050-EVKB/badge.svg)
45
![](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)
57
![](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)
78

89
# Getting Started with Azure RTOS and Azure IoT
910

core/src/sntp_client.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ static void set_sntp_time()
7171
{
7272
ULONG seconds;
7373
ULONG milliseconds;
74+
ULONG previous_time;
7475
UINT status;
7576
CHAR time_buffer[64];
7677

@@ -81,6 +82,9 @@ static void set_sntp_time()
8182
return;
8283
}
8384

85+
// calculate the time correction for printout
86+
previous_time = sntp_time_get();
87+
8488
tx_mutex_get(&time_mutex, TX_WAIT_FOREVER);
8589

8690
// Stash the Unix and ThreadX times
@@ -100,6 +104,7 @@ static void set_sntp_time()
100104
else
101105
{
102106
printf("SNTP time update: %s\r\n", time_buffer);
107+
printf("\tdrift correction: %lu seconds\r\n", sntp_time_get() - previous_time);
103108
}
104109

105110
// Flag the sync was successful

0 commit comments

Comments
 (0)