Skip to content

Commit 48038e4

Browse files
committed
Change MTU2 channel number for LPTicker of GR-LYCHEE
MTU2(Multi function Timer pulse Unit 2) can create the low freaquency. Currently GR-LYCHEE uses MTU2 channel 3 for LPTicker, but I noticed that a part of it is used by another function. Thus, I changed MTU2 channel number for LPTicker to 2.
1 parent 6fca23e commit 48038e4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_GR_LYCHEE/PeripheralPins.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,11 @@ const PinMap PinMap_PWM[] = {
246246
{P7_9 , PWM_TIOC1A, 6},
247247
{P9_2 , PWM_TIOC1A, 5}, /* for 208QFP */
248248
{P2_7 , PWM_TIOC1A, 3},
249-
{P5_14 , PWM_TIOC2A, 4},
250-
{P7_0 , PWM_TIOC2A, 5},
251-
{P9_4 , PWM_TIOC2A, 5}, /* for 208QFP */
252-
{P2_6 , PWM_TIOC2A, 3},
249+
{P6_7 , PWM_TIOC3A, 5},
250+
{P2_5 , PWM_TIOC3A, 3},
251+
{P3_11 , PWM_TIOC3A, 3},
252+
{P6_9 , PWM_TIOC3C, 5},
253+
{P3_12 , PWM_TIOC3C, 3},
253254
{P5_8 , PWM_TIOC4A, 3},
254255
{P2_4 , PWM_TIOC4A, 3},
255256
{P5_10 , PWM_TIOC4C, 3},

targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_GR_LYCHEE/mbed_drv_cfg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
#define RENESAS_RZ_A1_P0_CLK CM1_RENESAS_RZ_A1_P0_CLK
3636

37-
#define LP_TICKER_MTU2_CH 3
37+
#define LP_TICKER_MTU2_CH 2
3838

3939
/* flash (W25Q64JV) */
4040
#define FLASH_BASE (0x18000000UL) /**< Flash Base Address */

0 commit comments

Comments
 (0)