-
Notifications
You must be signed in to change notification settings - Fork 617
os/arch,board: consolidate PINs definitions #7002
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?
Conversation
e927715 to
7955db7
Compare
os/board/rtl8730e/src/board_pins.c
Outdated
| #if defined(CONFIG_RTL8730E_BOARD_AIL) || defined(CONFIG_RTL8730E_BOARD_AILP) || defined(CONFIG_RTL8730E_BOARD_AILPW) | ||
| // UART1 | ||
| {_PA_9, GPIO_PuPd_UP, GPIO_PuPd_UP}, | ||
| {_PA_10, GPIO_PuPd_UP, GPIO_PuPd_UP}, | ||
| #elif defined(CONFIG_RTL8730E_BOARD_AID) | ||
| {_PA_4, GPIO_PuPd_UP, GPIO_PuPd_UP}, | ||
| {_PA_5, GPIO_PuPd_DOWN, GPIO_PuPd_DOWN}, | ||
| #endif |
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.
Can we seperate this file to each board?
| ************************************************************************************/ | ||
| /* File name: rtl8730e_aid_board_pins.h */ | ||
|
|
||
| #ifndef RTL8730E_AID_BOARD_PINS_H |
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.
This file is seems just cal count each board.
How about make this file to common and move the error checking to each board_pins.c
#error Not Supported, Please check the board type configure
sorry for confusing my prev comment
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.
@ewoodev : board_pins.c will be for each board separately. like rtl8730e_aid_board_pins.c, rtl8730e_ailp_board_pins.c, etc.
and depending upon board type, one of these files will get into build using board type CONFIG option.
is it ok ?
0f2df12 to
4a09cad
Compare
This patch consolidates all definitions related to PINs being used for rtl8730e board. This version changes - creates one board specific file board_pins.c and modified one board specific file board_pins.h - board_pins.c Have all the board pins which are accessed according to enabled and disabled perpheral. - Disabled peripheral pins are mentioned as unused pins - Enabled peripheral pins are used in the pin_table start - board_pins.h used for accesing pin_table using Macro based indexing, It is called from the peripherals. - Pins are assigned during runtime.
4a09cad to
e08e2db
Compare
This patch consolidates all definitions related to PINs being used for rtl8730e board. This version changes