Skip to content

Commit 78c997e

Browse files
PeterJhonRbb666
authored andcommitted
增加RC驱动
1 parent 44478cc commit 78c997e

File tree

14 files changed

+367
-3
lines changed

14 files changed

+367
-3
lines changed

target/infineon/edge-e83/drivers/SConscript

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ if GetDepend('BSP_USING_ETH'):
3838
if GetDepend('BSP_USING_IPC'):
3939
src += ['drv_ipc.c']
4040

41+
if GetDepend('BSP_USING_RC'):
42+
src += ['drv_rc.c']
43+
4144
path = [cwd]
4245
path += [cwd + '/config']
4346

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
/******************************************************************************
2+
* Copyright 2024 The Firmament Authors. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*****************************************************************************/
16+
17+
#include <firmament.h>
18+
19+
#include "hal/rc/ppm.h"
20+
#include "hal/rc/rc.h"
21+
#include "hal/rc/sbus.h"
22+
23+
#include "cy_pdl.h"
24+
#include "cycfg_peripherals.h"
25+
26+
#ifndef min // mod by prife
27+
#define min(x, y) (x < y ? x : y)
28+
#endif
29+
30+
#define TIMER_FREQ_HZ 1000000UL
31+
32+
#define RC_CONFIG_DEFAULT \
33+
{ \
34+
RC_PROTOCOL_AUTO, /* auto */ \
35+
6, /* 6 channel */ \
36+
0.05f, /* sample time */ \
37+
1000, /* minimal 1000us */ \
38+
2000, /* maximal 2000us */ \
39+
}
40+
41+
static ppm_decoder_t ppm_decoder;
42+
static sbus_decoder_t sbus_decoder;
43+
44+
void RC_TIMER_IRQHandler(void)
45+
{
46+
rt_interrupt_enter();
47+
48+
uint32_t int_source = Cy_TCPWM_GetInterruptStatusMasked(RC_TIMER_HW, RC_TIMER_NUM);
49+
50+
if (int_source & CY_TCPWM_INT_ON_CC0) {
51+
uint32_t capture = Cy_TCPWM_Counter_GetCapture0Val(RC_TIMER_HW, RC_TIMER_NUM) + 1;
52+
ppm_update(&ppm_decoder, capture);
53+
}
54+
Cy_TCPWM_ClearInterrupt(RC_TIMER_HW, RC_TIMER_NUM, CY_TCPWM_INT_ON_CC0);
55+
56+
rt_interrupt_leave();
57+
}
58+
59+
static rt_err_t rc_init(rc_dev_t dev)
60+
{
61+
(void)dev;
62+
63+
RT_TRY(ppm_decoder_init(&ppm_decoder, TIMER_FREQ_HZ));
64+
65+
if (CY_TCPWM_SUCCESS != Cy_TCPWM_Counter_Init(RC_TIMER_HW, RC_TIMER_NUM, &RC_TIMER_config)) {
66+
return RT_ERROR;
67+
}
68+
69+
Cy_TCPWM_Counter_Enable(RC_TIMER_HW, RC_TIMER_NUM);
70+
Cy_TCPWM_TriggerStart_Single(RC_TIMER_HW, RC_TIMER_NUM);
71+
72+
Cy_TCPWM_SetInterruptMask(RC_TIMER_HW, RC_TIMER_NUM, CY_TCPWM_INT_ON_CC0);
73+
74+
cy_stc_sysint_t intr_cfg = {
75+
.intrSrc = RC_TIMER_IRQ,
76+
.intrPriority = 3U,
77+
};
78+
79+
if (CY_SYSINT_SUCCESS != Cy_SysInt_Init(&intr_cfg, RC_TIMER_IRQHandler)) {
80+
return RT_ERROR;
81+
}
82+
83+
NVIC_EnableIRQ(RC_TIMER_IRQ);
84+
85+
return RT_EOK;
86+
}
87+
88+
static rt_err_t rc_control(rc_dev_t rc, int cmd, void* arg)
89+
{
90+
switch (cmd) {
91+
case RC_CMD_CHECK_UPDATE: {
92+
uint8_t updated = 0;
93+
94+
if (rc->config.protocol == RC_PROTOCOL_SBUS) {
95+
updated = sbus_data_ready(&sbus_decoder);
96+
} else if (rc->config.protocol == RC_PROTOCOL_PPM) {
97+
updated = ppm_data_ready(&ppm_decoder);
98+
}
99+
100+
*(uint8_t*)arg = updated;
101+
} break;
102+
103+
default:
104+
break;
105+
}
106+
107+
return RT_EOK;
108+
}
109+
110+
static rt_uint16_t rc_read(rc_dev_t rc, rt_uint16_t chan_mask, rt_uint16_t* chan_val)
111+
{
112+
uint16_t* index = chan_val;
113+
rt_uint16_t rb = 0;
114+
uint8_t i;
115+
116+
if (rc->config.protocol == RC_PROTOCOL_SBUS) {
117+
if (sbus_data_ready(&sbus_decoder) == 0) {
118+
return 0;
119+
}
120+
121+
sbus_lock(&sbus_decoder);
122+
123+
for (i = 0; i < min(rc->config.channel_num, sbus_decoder.rc_count); i++) {
124+
*(index++) = sbus_decoder.sbus_val[i];
125+
rb += 2;
126+
}
127+
sbus_data_clear(&sbus_decoder);
128+
129+
sbus_unlock(&sbus_decoder);
130+
} else if (rc->config.protocol == RC_PROTOCOL_PPM) {
131+
if (ppm_data_ready(&ppm_decoder) == 0) {
132+
return 0;
133+
}
134+
135+
ppm_lock(&ppm_decoder);
136+
137+
for (i = 0; i < min(rc->config.channel_num, ppm_decoder.total_chan); i++) {
138+
if (chan_mask & (1 << i)) {
139+
*(index++) = ppm_decoder.ppm_val[i];
140+
rb += 2;
141+
}
142+
}
143+
ppm_data_clear(&ppm_decoder);
144+
145+
ppm_unlock(&ppm_decoder);
146+
}
147+
148+
return rb;
149+
}
150+
151+
const static struct rc_ops rc_ops = {
152+
.rc_init = rc_init,
153+
.rc_config = NULL,
154+
.rc_control = rc_control,
155+
.rc_read = rc_read,
156+
};
157+
158+
static struct rc_device rc_dev = {
159+
.config = RC_CONFIG_DEFAULT,
160+
.ops = &rc_ops,
161+
};
162+
163+
rt_err_t drv_rc_init(void)
164+
{
165+
RT_TRY(hal_rc_register(&rc_dev, "rc", RT_DEVICE_FLAG_RDWR, NULL));
166+
return RT_EOK;
167+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/******************************************************************************
2+
* Copyright 2024 The Firmament Authors. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*****************************************************************************/
16+
17+
#ifndef DRV_RC_H__
18+
#define DRV_RC_H__
19+
20+
#include <firmament.h>
21+
22+
#ifdef __cplusplus
23+
extern "C" {
24+
#endif
25+
26+
rt_err_t drv_rc_init(void);
27+
28+
#ifdef __cplusplus
29+
}
30+
#endif
31+
32+
#endif

target/infineon/edge-e83/libraries/mtb-device-support-pse8xxgp/pdl/SConscript

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,9 @@ if GetDepend('BSP_USING_ADC'):
8080
if GetDepend('BSP_USING_SDCARD'):
8181
src += ['drivers/source/cy_sd_host.c']
8282

83+
# RC driver
84+
if GetDepend('BSP_USING_RC'):
85+
src += ['drivers/source/cy_tcpwm_counter.c']
86+
8387
group = DefineGroup('Libraries', src, depend=[''], CPPPATH=path)
8488
Return('group')

target/infineon/edge-e83/libs/TARGET_APP_KIT_PSE84_EVAL_EPC2/config/GeneratedSource/cycfg_peripheral_clocks.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ void init_cycfg_peripheral_clocks(void)
4545
Cy_SysClk_PeriPclkDisableDivider((en_clk_dst_t)CYBSP_PWM_DT_CLK_DIV_GRP_NUM, CY_SYSCLK_DIV_8_BIT, 3U);
4646
Cy_SysClk_PeriPclkSetDivider((en_clk_dst_t)CYBSP_PWM_DT_CLK_DIV_GRP_NUM, CY_SYSCLK_DIV_8_BIT, 3U, 249U);
4747
Cy_SysClk_PeriPclkEnableDivider((en_clk_dst_t)CYBSP_PWM_DT_CLK_DIV_GRP_NUM, CY_SYSCLK_DIV_8_BIT, 3U);
48+
Cy_SysClk_PeriPclkDisableDivider((en_clk_dst_t)PERI_0_GROUP_1_DIV_8_4_GRP_NUM, CY_SYSCLK_DIV_8_BIT, 4U);
49+
Cy_SysClk_PeriPclkSetDivider((en_clk_dst_t)PERI_0_GROUP_1_DIV_8_4_GRP_NUM, CY_SYSCLK_DIV_8_BIT, 4U, 99U);
50+
Cy_SysClk_PeriPclkEnableDivider((en_clk_dst_t)PERI_0_GROUP_1_DIV_8_4_GRP_NUM, CY_SYSCLK_DIV_8_BIT, 4U);
4851
Cy_SysClk_PeriPclkDisableDivider((en_clk_dst_t)CYBSP_I2C_CONTROLLER_CLK_DIV_GRP_NUM, CY_SYSCLK_DIV_16_BIT, 0U);
4952
Cy_SysClk_PeriPclkSetDivider((en_clk_dst_t)CYBSP_I2C_CONTROLLER_CLK_DIV_GRP_NUM, CY_SYSCLK_DIV_16_BIT, 0U, 9U);
5053
Cy_SysClk_PeriPclkEnableDivider((en_clk_dst_t)CYBSP_I2C_CONTROLLER_CLK_DIV_GRP_NUM, CY_SYSCLK_DIV_16_BIT, 0U);

target/infineon/edge-e83/libs/TARGET_APP_KIT_PSE84_EVAL_EPC2/config/GeneratedSource/cycfg_peripheral_clocks.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,19 @@ extern "C" {
9090
#define CYBSP_PWM_DT_CLK_DIV_GRP_NUM CYBSP_PWM_DT_CLK_DIV_GRP_NUM
9191
#endif /* !defined (CYBSP_PWM_DT_CLK_DIV_GRP_NUM) */
9292

93+
#define peri_0_group_1_div_8_4_ENABLED 1U
94+
95+
#if !defined (CY_USING_HAL) && !defined (CY_USING_HAL_LITE)
96+
#define peri_0_group_1_div_8_4_HW CY_SYSCLK_DIV_8_BIT
97+
#endif /* !defined (CY_USING_HAL) && !defined (CY_USING_HAL_LITE) */
98+
99+
#define peri_0_group_1_div_8_4_NUM 4U
100+
#define PERI_0_GROUP_1_DIV_8_4_GRP_NUM ((1U << PERI_PCLK_GR_NUM_Pos) | (0U << PERI_PCLK_INST_NUM_Pos))
101+
102+
#if !defined (peri_0_group_1_div_8_4_GRP_NUM)
103+
#define peri_0_group_1_div_8_4_GRP_NUM PERI_0_GROUP_1_DIV_8_4_GRP_NUM
104+
#endif /* !defined (peri_0_group_1_div_8_4_GRP_NUM) */
105+
93106
#define CYBSP_I2C_CONTROLLER_CLK_DIV_ENABLED 1U
94107

95108
#if !defined (CY_USING_HAL) && !defined (CY_USING_HAL_LITE)

target/infineon/edge-e83/libs/TARGET_APP_KIT_PSE84_EVAL_EPC2/config/GeneratedSource/cycfg_peripherals.c

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#define tcpwm_0_group_0_cnt_5_INPUT_DISABLED 0x7U
3434
#define CYBSP_DEAD_TIME_PWM_INPUT_DISABLED 0x7U
3535
#define CYBSP_SMARTIO_PWM_INPUT_DISABLED 0x7U
36+
#define RC_TIMER_INPUT_DISABLED 0x7U
3637

3738
cy_stc_autanalog_cfg_t autonomous_analog_cfg =
3839
{
@@ -1355,6 +1356,65 @@ const mtb_hal_pwm_configurator_t CYBSP_SMARTIO_PWM_hal_config =
13551356
};
13561357
#endif /* defined (COMPONENT_MTB_HAL) && (MTB_HAL_DRIVER_AVAILABLE_PWM) */
13571358

1359+
const cy_stc_tcpwm_counter_config_t RC_TIMER_config =
1360+
{
1361+
.period = 65535,
1362+
.clockPrescaler = CY_TCPWM_COUNTER_PRESCALER_DIVBY_1,
1363+
.runMode = CY_TCPWM_COUNTER_CONTINUOUS,
1364+
.countDirection = CY_TCPWM_COUNTER_COUNT_UP,
1365+
.compareOrCapture = CY_TCPWM_COUNTER_MODE_CAPTURE,
1366+
.compare0 = 16384,
1367+
.compare1 = 16384,
1368+
.enableCompareSwap = false,
1369+
.interruptSources = (CY_TCPWM_INT_ON_TC & 0U) | (CY_TCPWM_INT_ON_CC0 ) | (CY_TCPWM_INT_ON_CC1 & 0U),
1370+
.captureInputMode = CY_TCPWM_INPUT_RISINGEDGE,
1371+
.captureInput = TCPWM0_GRP1_CNT20_CAPTURE0_VALUE,
1372+
.reloadInputMode = RC_TIMER_INPUT_DISABLED & 0x3U,
1373+
.reloadInput = CY_TCPWM_INPUT_0,
1374+
.startInputMode = RC_TIMER_INPUT_DISABLED & 0x3U,
1375+
.startInput = CY_TCPWM_INPUT_0,
1376+
.stopInputMode = RC_TIMER_INPUT_DISABLED & 0x3U,
1377+
.stopInput = CY_TCPWM_INPUT_0,
1378+
.countInputMode = RC_TIMER_INPUT_DISABLED & 0x3U,
1379+
.countInput = CY_TCPWM_INPUT_1,
1380+
.capture1InputMode = RC_TIMER_INPUT_DISABLED & 0x3U,
1381+
.capture1Input = CY_TCPWM_INPUT_0,
1382+
.compare2 = 16384,
1383+
.compare3 = 16384,
1384+
.enableCompare1Swap = false,
1385+
.trigger0Event = CY_TCPWM_CNT_TRIGGER_ON_DISABLED,
1386+
.trigger1Event = CY_TCPWM_CNT_TRIGGER_ON_DISABLED,
1387+
#if defined (CY_IP_MXS40TCPWM)
1388+
.buffer_swap_enable = false,
1389+
.direction_mode = CY_TCPWM_COUNTER_DIRECTION_DISABLE,
1390+
.glitch_filter_enable = false,
1391+
.gf_depth = CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_0,
1392+
#endif /* defined (CY_IP_MXS40TCPWM) */
1393+
};
1394+
1395+
#if defined (COMPONENT_MTB_HAL)
1396+
const mtb_hal_peri_div_t RC_TIMER_clock_ref =
1397+
{
1398+
.clk_dst = (en_clk_dst_t)PCLK_TCPWM0_CLOCK_COUNTER_EN276,
1399+
.div_type = CY_SYSCLK_DIV_8_BIT,
1400+
.div_num = 4,
1401+
};
1402+
const mtb_hal_clock_t RC_TIMER_hal_clock =
1403+
{
1404+
.clock_ref = &RC_TIMER_clock_ref,
1405+
.interface = &mtb_hal_clock_peri_interface,
1406+
};
1407+
#endif /* defined (COMPONENT_MTB_HAL) */
1408+
1409+
#if defined (COMPONENT_MTB_HAL) && (MTB_HAL_DRIVER_AVAILABLE_TIMER)
1410+
const mtb_hal_timer_configurator_t RC_TIMER_hal_config =
1411+
{
1412+
.tcpwm_base = RC_TIMER_HW,
1413+
.clock = &RC_TIMER_hal_clock,
1414+
.tcpwm_cntnum = 276U,
1415+
};
1416+
#endif /* defined (COMPONENT_MTB_HAL) && (MTB_HAL_DRIVER_AVAILABLE_TIMER) */
1417+
13581418
void init_cycfg_peripherals(void)
13591419
{
13601420
Cy_SysClk_PeriGroupSlaveInit(CY_MMIO_PASS_PERI_NR, CY_MMIO_PASS_GROUP_NR, CY_MMIO_PASS_SLAVE_NR, CY_MMIO_PASS_CLK_HF_NR);
@@ -1410,4 +1470,8 @@ void init_cycfg_peripherals(void)
14101470
Cy_SysClk_PeriGroupSlaveInit(CY_MMIO_TCPWM0_PERI_NR, CY_MMIO_TCPWM0_GROUP_NR, CY_MMIO_TCPWM0_SLAVE_NR, CY_MMIO_TCPWM0_CLK_HF_NR);
14111471
#endif /* defined (CY_DEVICE_CONFIGURATOR_IP_ENABLE_FEATURE) */
14121472
Cy_SysClk_PeriphAssignDivider(PCLK_TCPWM0_CLOCK_COUNTER_EN262, CY_SYSCLK_DIV_16_5_BIT, 1U);
1473+
#if defined (CY_DEVICE_CONFIGURATOR_IP_ENABLE_FEATURE)
1474+
Cy_SysClk_PeriGroupSlaveInit(CY_MMIO_TCPWM0_PERI_NR, CY_MMIO_TCPWM0_GROUP_NR, CY_MMIO_TCPWM0_SLAVE_NR, CY_MMIO_TCPWM0_CLK_HF_NR);
1475+
#endif /* defined (CY_DEVICE_CONFIGURATOR_IP_ENABLE_FEATURE) */
1476+
Cy_SysClk_PeriphAssignDivider(PCLK_TCPWM0_CLOCK_COUNTER_EN276, CY_SYSCLK_DIV_8_BIT, 4U);
14131477
}

target/infineon/edge-e83/libs/TARGET_APP_KIT_PSE84_EVAL_EPC2/config/GeneratedSource/cycfg_peripherals.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ extern "C" {
219219
#define CYBSP_SMARTIO_PWM_ENABLED 1U
220220
#define CYBSP_SMARTIO_PWM_HW TCPWM0
221221
#define CYBSP_SMARTIO_PWM_NUM 262UL
222+
#define RC_TIMER_ENABLED 1U
223+
#define RC_TIMER_HW TCPWM0
224+
#define RC_TIMER_NUM 276UL
225+
#define RC_TIMER_IRQ tcpwm_0_interrupts_276_IRQn
222226

223227
extern cy_stc_autanalog_cfg_t autonomous_analog_cfg;
224228
extern cy_stc_autanalog_stt_t autonomous_analog_stt[];
@@ -420,6 +424,17 @@ extern const mtb_hal_clock_t CYBSP_SMARTIO_PWM_hal_clock;
420424
extern const mtb_hal_pwm_configurator_t CYBSP_SMARTIO_PWM_hal_config;
421425
#endif /* defined (COMPONENT_MTB_HAL) && (MTB_HAL_DRIVER_AVAILABLE_PWM) */
422426

427+
extern const cy_stc_tcpwm_counter_config_t RC_TIMER_config;
428+
429+
#if defined (COMPONENT_MTB_HAL)
430+
extern const mtb_hal_peri_div_t RC_TIMER_clock_ref;
431+
extern const mtb_hal_clock_t RC_TIMER_hal_clock;
432+
#endif /* defined (COMPONENT_MTB_HAL) */
433+
434+
#if defined (COMPONENT_MTB_HAL) && (MTB_HAL_DRIVER_AVAILABLE_TIMER)
435+
extern const mtb_hal_timer_configurator_t RC_TIMER_hal_config;
436+
#endif /* defined (COMPONENT_MTB_HAL) && (MTB_HAL_DRIVER_AVAILABLE_TIMER) */
437+
423438
void init_cycfg_peripherals(void);
424439

425440
#if defined(__cplusplus)

target/infineon/edge-e83/libs/TARGET_APP_KIT_PSE84_EVAL_EPC2/config/GeneratedSource/cycfg_routing.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,7 @@
3333

3434
void init_cycfg_routing(void)
3535
{
36-
Cy_TrigMux_Connect(PERI_0_TRIG_IN_MUX_0_SCB_TX_TR_OUT10, PERI_0_TRIG_OUT_MUX_0_PDMA0_TR_IN1, false, TRIGGER_TYPE_LEVEL);
36+
Cy_TrigMux_Connect(PERI_0_TRIG_IN_MUX_0_SCB_TX_TR_OUT2, PERI_0_TRIG_OUT_MUX_0_PDMA0_TR_IN1, false, TRIGGER_TYPE_LEVEL);
37+
Cy_TrigMux_Connect(PERI_0_TRIG_IN_MUX_0_SCB_TX_TR_OUT5, PERI_0_TRIG_OUT_MUX_0_PDMA0_TR_IN2, false, TRIGGER_TYPE_LEVEL);
38+
Cy_TrigMux_Connect(PERI_0_TRIG_IN_MUX_3_PERI1_HSIOM_TR_OUT1, PERI_0_TRIG_OUT_MUX_3_TCPWM0_ALL_CNT_TR_IN27, false, TRIGGER_TYPE_LEVEL);
3739
}

target/infineon/edge-e83/libs/TARGET_APP_KIT_PSE84_EVAL_EPC2/config/GeneratedSource/cycfg_routing.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ extern "C" {
5858
#define ioss_0_port_10_pin_5_HSIOM P10_5_ETH_RX_CTL
5959
#define ioss_0_port_10_pin_6_HSIOM P10_6_ETH_RXD0
6060
#define ioss_0_port_10_pin_7_HSIOM P10_7_ETH_RXD1
61+
#define ioss_0_port_11_pin_1_HSIOM P11_1_PERI1_TR_IO_INPUT1
6162
#define ioss_0_port_11_pin_2_HSIOM P11_2_ETH_TXD0
6263
#define ioss_0_port_11_pin_3_HSIOM P11_3_ETH_TXD1
6364
#define ioss_0_port_11_pin_4_HSIOM P11_4_ETH_TX_CTL
@@ -81,8 +82,14 @@ extern "C" {
8182
#define ioss_0_port_21_pin_1_HSIOM P21_1_TDM_TDM_TX_SD0
8283
#define ioss_0_port_21_pin_2_HSIOM P21_2_TDM_TDM_TX_SCK0
8384
#define ioss_0_port_21_pin_3_HSIOM P21_3_TDM_TDM_TX_MCK0
84-
#define CYBSP_DMA_TX_SPI_CONTROLLER_tr_in_0_TRIGGER_OUT PERI_0_TRIG_OUT_MUX_0_PDMA0_TR_IN1
85-
#define scb_10_tr_tx_req_0_TRIGGER_IN PERI_0_TRIG_IN_MUX_0_SCB_TX_TR_OUT10
85+
#define CYBSP_ARD_D7_digital_in_0_TRIGGER_IN PERI_0_TRIG_IN_MUX_3_PERI1_HSIOM_TR_OUT1
86+
#define CYBSP_ETH_RX_ER_digital_in_0_TRIGGER_IN CYBSP_ARD_D7_digital_in_0_TRIGGER_IN
87+
#define CYBSP_DEBUG_UART_tr_tx_req_0_TRIGGER_IN PERI_0_TRIG_IN_MUX_0_SCB_TX_TR_OUT2
88+
#define CYBSP_UART2_TX_DMA_tr_in_0_TRIGGER_OUT PERI_0_TRIG_OUT_MUX_0_PDMA0_TR_IN1
89+
#define CYBSP_UART5_tr_tx_req_0_TRIGGER_IN PERI_0_TRIG_IN_MUX_0_SCB_TX_TR_OUT5
90+
#define CYBSP_UART5_TX_DMA_tr_in_0_TRIGGER_OUT PERI_0_TRIG_OUT_MUX_0_PDMA0_TR_IN2
91+
#define RC_TIMER_capture0_0_TRIGGER_OUT PERI_0_TRIG_OUT_MUX_3_TCPWM0_ALL_CNT_TR_IN27
92+
#define TCPWM0_GRP1_CNT20_CAPTURE0_VALUE 0x1E
8693

8794
void init_cycfg_routing(void);
8895

0 commit comments

Comments
 (0)