Skip to content

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