diff --git a/.github/workflows/RSK-RX65N-2MB.yml b/.github/workflows/RSK-RX65N-2MB.yml new file mode 100644 index 00000000..a717ff27 --- /dev/null +++ b/.github/workflows/RSK-RX65N-2MB.yml @@ -0,0 +1,37 @@ +name: RSK-RX65N-2MB + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +defaults: + run: + working-directory: Renesas/RSK_RX65N_2MB + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + submodules: recursive + + - name: rx-elf-gcc + uses: ryanwinter/rx-elf-gcc@main + with: + release: '8.3.0.202004' + + - name: Install Ninja + uses: seanmiddleditch/gha-setup-ninja@v3 + + - name: Build project + run: | + cmake -Bbuild -GNinja -DCMAKE_TOOLCHAIN_FILE="../../cmake/renesas-rx-gcc-rx65n.cmake" + cmake --build build diff --git a/README.md b/README.md index 4babbf71..44384734 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ +![](https://github.com/azure-rtos/getting-started/workflows/Markdown%20links/badge.svg) ![](https://github.com/azure-rtos/getting-started/workflows/ATSAME54-XPRO/badge.svg) ![](https://github.com/azure-rtos/getting-started/workflows/AZ3166/badge.svg) ![](https://github.com/azure-rtos/getting-started/workflows/MIMXRT1050-EVKB/badge.svg) ![](https://github.com/azure-rtos/getting-started/workflows/MIMXRT1060-EVK/badge.svg) +![](https://github.com/azure-rtos/getting-started/workflows/RSK-RX65N-2MB/badge.svg) ![](https://github.com/azure-rtos/getting-started/workflows/STM32L4_L4+/badge.svg) -![](https://github.com/azure-rtos/getting-started/workflows/Markdown%20links/badge.svg) # Getting Started with Azure RTOS and Azure IoT diff --git a/core/src/sntp_client.c b/core/src/sntp_client.c index 1afae0dd..b2318ff1 100644 --- a/core/src/sntp_client.c +++ b/core/src/sntp_client.c @@ -71,6 +71,7 @@ static void set_sntp_time() { ULONG seconds; ULONG milliseconds; + ULONG previous_time; UINT status; CHAR time_buffer[64]; @@ -81,6 +82,9 @@ static void set_sntp_time() return; } + // calculate the time correction for printout + previous_time = sntp_time_get(); + tx_mutex_get(&time_mutex, TX_WAIT_FOREVER); // Stash the Unix and ThreadX times @@ -100,6 +104,7 @@ static void set_sntp_time() else { printf("SNTP time update: %s\r\n", time_buffer); + printf("\tdrift correction: %lu seconds\r\n", sntp_time_get() - previous_time); } // Flag the sync was successful