-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
arm/stm32f401rc-rs485: Add support to GPIO Subsystem #15861
base: master
Are you sure you want to change the base?
Conversation
[Experimental Bot, please feedback here] The provided information is a good start but is missing crucial details required by the NuttX PR template. Here's a breakdown of what's missing and how to improve it: Missing/Incomplete Information:
Example of an Improved PR Description:
nsh> gpio /dev/gpio0
nsh> gpio -o 0 /dev/gpio0
|
Please remember to fill in the Commit Description. (Just copy from PR Summary) Thanks :-) |
Hi! #if BOARD_NGPIOINT > 0
#endif It's a personal preference, but, #ifdef BOARD_NGPIOINT
#endif If one or more gpio is needed, use #define BOARD_NGPIOINT number else do not define BOARD_NGPIOINT at all. Current implementation assumes that BOARD_NGPIOINT should always be defined and numeric value, But, it's just my suggestion. |
This commit adds support to GPIO Subsystem for STM32F401RC RS485 board. Signed-off-by: Rodrigo Sim <[email protected]>
6dcfae8
to
7c83e56
Compare
Thanks for your suggestion @LuchianMihai , but if BOARD_NGPIOINT is defined as 0 (maybe by mistake), we will also have some problems. So I will keep this way. But once again, thanks for the suggestion.
|
Sure, won't argue, but #define BOARD_NGPIOINT 0 and no define at all is the same thing. Preprocessor assigns 0 to the defines not given. |
Summary
This PR adds support to GPIO Subsystem for STM32F401RC RS485 board.
Impact
Users will be able to use GPIO subsystem, including adding GPIO as Output, Input and Input with Interruption.
Testing