Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cfceb7e

Browse files
authored
Update Renesas samples to use TX_TIMER_TICKS_PER_SECOND instead of fixed time ticks (#336)
1 parent 5bc4b03 commit cfceb7e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎Renesas/RSK_RX65N_2MB/app/board_init.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* Copyright (c) Microsoft Corporation.
22
Licensed under the MIT License. */
33

4+
#include "tx_api.h"
45
#include "board_init.h"
56

67
#include "r_cmt_rx_if.h"
@@ -29,7 +30,7 @@ void board_init()
2930
R_Config_SCI8_Start();
3031

3132
// Create periodic timer for the system tick
32-
R_CMT_CreatePeriodic(100u, timer_callback, &chan);
33+
R_CMT_CreatePeriodic(TX_TIMER_TICKS_PER_SECOND, timer_callback, &chan);
3334

3435
// Setup Ethernet hardware
3536
R_ETHER_Initial();

‎Renesas/RX65N_Cloud_Kit/app/board_init.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* Copyright (c) Microsoft Corporation.
22
Licensed under the MIT License. */
33

4+
#include "tx_api.h"
45
#include "board_init.h"
56

67
#include "r_cmt_rx_if.h"
@@ -26,7 +27,7 @@ void board_init()
2627
R_Config_SCI5_Start();
2728

2829
// Create periodic timer for the system tick
29-
R_CMT_CreatePeriodic(100u, timer_callback, &chan);
30+
R_CMT_CreatePeriodic(TX_TIMER_TICKS_PER_SECOND, timer_callback, &chan);
3031

3132
// Initialize the Option Board sensors
3233
init_sensors();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /