-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[bsp] add n32 pwm driver #11236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
[bsp] add n32 pwm driver #11236
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -41,6 +41,9 @@ if GetDepend(['RT_USING_DAC']): | |||||||||||||||
| if GetDepend(['RT_USING_CLOCK_TIME']): | ||||||||||||||||
| src += ['n32g45x_std_periph_driver/src/n32g45x_tim.c'] | ||||||||||||||||
|
|
||||||||||||||||
| if GetDepend(['RT_USING_PWM']): | ||||||||||||||||
| src += ['n32g45x_std_periph_driver/src/n32g45x_tim.c'] | ||||||||||||||||
|
|
||||||||||||||||
|
Comment on lines
41
to
+46
|
||||||||||||||||
| if GetDepend(['RT_USING_CLOCK_TIME']): | |
| src += ['n32g45x_std_periph_driver/src/n32g45x_tim.c'] | |
| if GetDepend(['RT_USING_PWM']): | |
| src += ['n32g45x_std_periph_driver/src/n32g45x_tim.c'] | |
| if GetDepend(['RT_USING_CLOCK_TIME']) or GetDepend(['RT_USING_PWM']): | |
| src += ['n32g45x_std_periph_driver/src/n32g45x_tim.c'] |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -35,6 +35,9 @@ if GetDepend(['RT_USING_DAC']): | |||||||||||||||||
| if GetDepend(['RT_USING_CLOCK_TIME']): | ||||||||||||||||||
| src += ['n32g4fr_std_periph_driver/src/n32g4fr_tim.c'] | ||||||||||||||||||
|
|
||||||||||||||||||
| if GetDepend(['RT_USING_PWM']): | ||||||||||||||||||
| src += ['n32g4fr_std_periph_driver/src/n32g4fr_tim.c'] | ||||||||||||||||||
|
|
||||||||||||||||||
|
Comment on lines
35
to
+40
|
||||||||||||||||||
| if GetDepend(['RT_USING_CLOCK_TIME']): | |
| src += ['n32g4fr_std_periph_driver/src/n32g4fr_tim.c'] | |
| if GetDepend(['RT_USING_PWM']): | |
| src += ['n32g4fr_std_periph_driver/src/n32g4fr_tim.c'] | |
| if GetDepend(['RT_USING_CLOCK_TIME']) or GetDepend(['RT_USING_PWM']): | |
| src += ['n32g4fr_std_periph_driver/src/n32g4fr_tim.c'] |
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -36,6 +36,9 @@ if GetDepend(['RT_USING_DAC']): | |||||||||||||||
| if GetDepend(['RT_USING_CLOCK_TIME']): | ||||||||||||||||
| src += ['n32l40x_std_periph_driver/src/n32l40x_tim.c'] | ||||||||||||||||
|
|
||||||||||||||||
| if GetDepend(['RT_USING_PWM']): | ||||||||||||||||
| src += ['n32l40x_std_periph_driver/src/n32l40x_tim.c'] | ||||||||||||||||
|
|
||||||||||||||||
|
Comment on lines
36
to
+41
|
||||||||||||||||
| if GetDepend(['RT_USING_CLOCK_TIME']): | |
| src += ['n32l40x_std_periph_driver/src/n32l40x_tim.c'] | |
| if GetDepend(['RT_USING_PWM']): | |
| src += ['n32l40x_std_periph_driver/src/n32l40x_tim.c'] | |
| if GetDepend(['RT_USING_CLOCK_TIME']) or GetDepend(['RT_USING_PWM']): | |
| src += ['n32l40x_std_periph_driver/src/n32l40x_tim.c'] |
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -36,6 +36,9 @@ if GetDepend(['RT_USING_DAC']): | |||||||||||||||
| if GetDepend(['RT_USING_CLOCK_TIME']): | ||||||||||||||||
| src += ['n32l43x_std_periph_driver/src/n32l43x_tim.c'] | ||||||||||||||||
|
|
||||||||||||||||
| if GetDepend(['RT_USING_PWM']): | ||||||||||||||||
| src += ['n32l43x_std_periph_driver/src/n32l43x_tim.c'] | ||||||||||||||||
|
Comment on lines
36
to
+40
|
||||||||||||||||
| if GetDepend(['RT_USING_CLOCK_TIME']): | |
| src += ['n32l43x_std_periph_driver/src/n32l43x_tim.c'] | |
| if GetDepend(['RT_USING_PWM']): | |
| src += ['n32l43x_std_periph_driver/src/n32l43x_tim.c'] | |
| if GetDepend(['RT_USING_CLOCK_TIME']) or GetDepend(['RT_USING_PWM']): | |
| src += ['n32l43x_std_periph_driver/src/n32l43x_tim.c'] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,6 +36,9 @@ if GetDepend(['RT_USING_DAC']): | |
| if GetDepend(['RT_USING_CLOCK_TIME']): | ||
| src += ['n32wb452_std_periph_driver/src/n32wb452_tim.c'] | ||
|
|
||
| if GetDepend(['RT_USING_PWM']): | ||
| src += ['n32wb452_std_periph_driver/src/n32wb452_tim.c'] | ||
|
|
||
|
Comment on lines
36
to
+41
|
||
| if GetDepend(['RT_USING_RTC']): | ||
| src += ['n32wb452_std_periph_driver/src/n32wb452_rtc.c'] | ||
| src += ['n32wb452_std_periph_driver/src/n32wb452_pwr.c'] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[bug/缺陷]: Duplicate source inclusion of
n32g43x_tim.cEnglish:
n32g43x_tim.cis appended in both theRT_USING_CLOCK_TIMEandRT_USING_PWMconditions. When both are enabled, the same source may be compiled twice and break the build with duplicate symbols. Ensure it is included only once.中文:
n32g43x_tim.c同时在RT_USING_CLOCK_TIME与RT_USING_PWM条件下加入;两者同时开启时可能导致重复编译并引发重复符号的构建失败。请确保只加入一次。