-
Notifications
You must be signed in to change notification settings - Fork 3
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 pins 2 #101
Make pins 2 #101
Conversation
Signed-off-by: NikhitaR-IFX <Nikhita.Rajasekhar@infineon.com>
Signed-off-by: NikhitaR-IFX <Nikhita.Rajasekhar@infineon.com>
Signed-off-by: NikhitaR-IFX <Nikhita.Rajasekhar@infineon.com>
Signed-off-by: NikhitaR-IFX <Nikhita.Rajasekhar@infineon.com>
Signed-off-by: NikhitaR-IFX <Nikhita.Rajasekhar@infineon.com>
@@ -2,7 +2,9 @@ | |||
#include "py/mphal.h" | |||
#include "machine_pin_phy.h" | |||
|
|||
machine_pin_phy_obj_t machine_pin_phy_obj[] = { | |||
// extern const uint8_t machine_pin_num_of_cpu_pins; |
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 can be removed or?
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.
Yep... done
#define MAX_PIN_IO MP_ARRAY_SIZE(machine_pin_phy_obj) | ||
machine_pin_io_obj_t *pin_io[MAX_PIN_IO] = {NULL}; | ||
|
||
machine_pin_io_obj_t *pin_io[MAX_IO_PINS] = {NULL}; |
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.
mmm MAX_IO_PINS is gone or=?
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.
MAX_IO_PINS is now defined in generated sources for boards. Will be in build.
ports/psoc6/modules/machine/pins.c
Outdated
@@ -0,0 +1,51 @@ | |||
// std includes | |||
#include <stdlib.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 should not be required.
Signed-off-by: NikhitaR-IFX <Nikhita.Rajasekhar@infineon.com>
Signed-off-by: NikhitaR-IFX <Nikhita.Rajasekhar@infineon.com>
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.
🥳
Signed-off-by: NikhitaR-IFX <Nikhita.Rajasekhar@infineon.com>
By creating this pull request you agree to the terms in CONTRIBUTING.md.
https://github.com/Infineon/.github/blob/master/CONTRIBUTING.md
--- DO NOT DELETE ANYTHING ABOVE THIS LINE ---
CONTRIBUTING.md also tells you what to expect in the PR process.
Description
Integrating pins refactor and make_pins feature