Skip to content
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

Make configuration easier by including user_config.h #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

thierer
Copy link

@thierer thierer commented Feb 28, 2017

By including user_config.h at the top of the file, it's possible to make configuration changes while using the unmodified code from the repository.

To make that also possible for both PWM_DEBUG and PWM_USE_NMI, include them in ifndef like already done for SDK_PWM_PERIOD_COMPAT_MODE and PWM_MAX_CHANNELS.

This makes it possible to customize configuration values (for example
PWM_MAX_CHANNELS) without modifying pwm.c or including pwm.c from
another .c file.
Makes it easier to customize them.
The "Non-OS" SDK only defines ICACHE_FLASH_ATTR and locates functions
without specific annotations in RAM by default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant