File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
/* Copyright (c) Microsoft Corporation.
2
2
Licensed under the MIT License. */
3
3
4
+ #include "tx_api.h"
4
5
#include "board_init.h"
5
6
6
7
#include "r_cmt_rx_if.h"
@@ -29,7 +30,7 @@ void board_init()
29
30
R_Config_SCI8_Start ();
30
31
31
32
// 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 );
33
34
34
35
// Setup Ethernet hardware
35
36
R_ETHER_Initial ();
Original file line number Diff line number Diff line change 1
1
/* Copyright (c) Microsoft Corporation.
2
2
Licensed under the MIT License. */
3
3
4
+ #include "tx_api.h"
4
5
#include "board_init.h"
5
6
6
7
#include "r_cmt_rx_if.h"
@@ -26,7 +27,7 @@ void board_init()
26
27
R_Config_SCI5_Start ();
27
28
28
29
// 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 );
30
31
31
32
// Initialize the Option Board sensors
32
33
init_sensors ();
You can’t perform that action at this time.
0 commit comments