-
-
Notifications
You must be signed in to change notification settings - Fork 39.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
Add basic support for lpc11uxx #21743
base: develop
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This update looks like a revert for the current state of the |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Apparently the |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -292,3 +292,63 @@ | |
# define K14 PAL_LINE(GPIOK, 14) | ||
# define K15 PAL_LINE(GPIOK, 15) | ||
#endif | ||
|
||
#if defined(MCU_LPC) | ||
// GPIO Port 0 | ||
# define P0_0 PAL_LINE(IOPORT0, 0) | ||
Comment on lines
+296
to
+298
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should probably be handled like https://github.com/qmk/qmk_firmware/blob/develop/platforms/chibios/vendors/RP/_pin_defs.h instead of creating a file full of platform ifdefs. |
||
# define P0_1 PAL_LINE(IOPORT0, 1) | ||
# define P0_2 PAL_LINE(IOPORT0, 2) | ||
# define P0_3 PAL_LINE(IOPORT0, 3) | ||
# define P0_4 PAL_LINE(IOPORT0, 4) | ||
# define P0_5 PAL_LINE(IOPORT0, 5) | ||
# define P0_6 PAL_LINE(IOPORT0, 6) | ||
# define P0_7 PAL_LINE(IOPORT0, 7) | ||
# define P0_8 PAL_LINE(IOPORT0, 8) | ||
# define P0_9 PAL_LINE(IOPORT0, 9) | ||
# define P0_10 PAL_LINE(IOPORT0, 10) | ||
# define P0_11 PAL_LINE(IOPORT0, 11) | ||
# define P0_12 PAL_LINE(IOPORT0, 12) | ||
# define P0_13 PAL_LINE(IOPORT0, 13) | ||
# define P0_14 PAL_LINE(IOPORT0, 14) | ||
# define P0_15 PAL_LINE(IOPORT0, 15) | ||
# define P0_16 PAL_LINE(IOPORT0, 16) | ||
# define P0_17 PAL_LINE(IOPORT0, 17) | ||
# define P0_18 PAL_LINE(IOPORT0, 18) | ||
# define P0_19 PAL_LINE(IOPORT0, 19) | ||
# define P0_20 PAL_LINE(IOPORT0, 20) | ||
# define P0_21 PAL_LINE(IOPORT0, 21) | ||
# define P0_22 PAL_LINE(IOPORT0, 22) | ||
# define P0_23 PAL_LINE(IOPORT0, 23) | ||
// GPIO Port 1 | ||
Comment on lines
+321
to
+322
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does the whole LPC family have only pins 0…23 on P0, or is that specific to a particular chip in that family? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The other chips have the same amount or less in that family. It depends on the size of the chip. |
||
# define P1_0 PAL_LINE(IOPORT1, 0) | ||
# define P1_1 PAL_LINE(IOPORT1, 1) | ||
# define P1_2 PAL_LINE(IOPORT1, 2) | ||
# define P1_3 PAL_LINE(IOPORT1, 3) | ||
# define P1_4 PAL_LINE(IOPORT1, 4) | ||
# define P1_5 PAL_LINE(IOPORT1, 5) | ||
# define P1_6 PAL_LINE(IOPORT1, 6) | ||
# define P1_7 PAL_LINE(IOPORT1, 7) | ||
# define P1_8 PAL_LINE(IOPORT1, 8) | ||
# define P1_9 PAL_LINE(IOPORT1, 9) | ||
# define P1_10 PAL_LINE(IOPORT1, 10) | ||
# define P1_11 PAL_LINE(IOPORT1, 11) | ||
# define P1_12 PAL_LINE(IOPORT1, 12) | ||
# define P1_13 PAL_LINE(IOPORT1, 13) | ||
# define P1_14 PAL_LINE(IOPORT1, 14) | ||
# define P1_15 PAL_LINE(IOPORT1, 15) | ||
# define P1_16 PAL_LINE(IOPORT1, 16) | ||
# define P1_17 PAL_LINE(IOPORT1, 17) | ||
# define P1_18 PAL_LINE(IOPORT1, 18) | ||
# define P1_19 PAL_LINE(IOPORT1, 19) | ||
# define P1_20 PAL_LINE(IOPORT1, 20) | ||
# define P1_21 PAL_LINE(IOPORT1, 21) | ||
# define P1_22 PAL_LINE(IOPORT1, 22) | ||
# define P1_23 PAL_LINE(IOPORT1, 23) | ||
# define P1_24 PAL_LINE(IOPORT1, 24) | ||
# define P1_25 PAL_LINE(IOPORT1, 25) | ||
# define P1_26 PAL_LINE(IOPORT1, 26) | ||
# define P1_27 PAL_LINE(IOPORT1, 27) | ||
# define P1_28 PAL_LINE(IOPORT1, 28) | ||
# define P1_29 PAL_LINE(IOPORT1, 29) | ||
# define P1_31 PAL_LINE(IOPORT1, 31) | ||
#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.
No need to update this file (submodule updates refer to some specific commits anyway).