ports: analog: Add MAX32650 & MAX32665 - #11329
Open
Brandon-Hurst wants to merge 23 commits into
Open
Conversation
Signed-off-by: Brandon <brandon.hurst97@gmail.com>
Signed-off-by: Brandon <brandon.hurst97@gmail.com>
Signed-off-by: Brandon <brandon.hurst97@gmail.com>
Signed-off-by: Brandon <brandon.hurst97@gmail.com>
Signed-off-by: Brandon <brandon.hurst97@gmail.com>
- Add include entries for MAX32650 and MAX32666 - Rename MAX32666 macro to MAX32665 to be compatible with MSDK naming and GNU Make variables from MSDK. Signed-off-by: Brandon <brandon.hurst97@gmail.com>
Signed-off-by: Brandon <brandon.hurst97@gmail.com>
Signed-off-by: Brandon <brandon.hurst97@gmail.com>
Signed-off-by: Brandon <brandon.hurst97@gmail.com>
Cleanup and re-organize port-level Makefile. - Eliminate redundant include / source additions - Unify comment style and create logical sections - Inlude MSDK peripheral makefiles for each target - Mostly unify separate INC and SRC_C blocks - Refactor CFLAGs ordering - Add "pristine" build target for convenience - Reorganize build & flash rules
Signed-off-by: Brandon-Hurst <brandon.hurst97@gmail.com>
- *usb.c*: Place USB hardware clock / power into separate init_usb functions. - *internal_flash.c*: Move Flash and Instruction Cache Controller operations into different functions for different targets. - *port.c*: Create macros abstracting RTC alarms & enables for different register structures. Signed-off-by: Brandon-Hurst <brandon.hurst97@gmail.com>
Signed-off-by: Brandon-Hurst <brandon.hurst97@gmail.com>
- Add MCU-specific includes in peripherals/pins.h for MAX32650 & MAX32665 - Fix some issues with SPI pins not matching the datasheet / MSDK for MAX32650 / MAX32665 Signed-off-by: Brandon-Hurst <brandon.hurst97@gmail.com>
…ntroller - *microcontroller/Pin.c*: Use mxc_gpio_reva_regs_t for standardizing different GPIO register structures. - *microcontroller/Processor.c*: - Guard MAX32690 GPIO4 specific operations with preproc macros. - Use mxc_gpio_reva_regs_t for direct register operations to improve portability. Signed-off-by: Brandon-Hurst <brandon.hurst97@gmail.com>
- Add gpio_init function to normalize disparate GPIO_Init usage of port parameter - Modify ticks usage in interrupt_after_ticks to fix possible zero result from integer division Signed-off-by: Brandon-Hurst <brandon.hurst97@gmail.com>
- Move Init & Flow Control into wrapper functions in peripherals/ - Unify API differences (e.g. AsyncHandler doesn't always return an err) - Create UART register macro for TX_BUSY checking in peripherals/ Signed-off-by: Brandon-Hurst <brandon.hurst97@gmail.com>
Use register wrapper macros to improve portability for I2C. This includes macros for the CTRL, STATUS, INTFL0, and FIFO registers. Additionally, some field values for MST_MODE, BUSY, ACK, and NACK are used. Signed-off-by: Brandon-Hurst <brandon.hurst97@gmail.com>
- Unify initialization into spi_init function in peripherals - Use mxc_spi_mode_t to unify SPI mode handling across MSDK APIs - Set default TX data with MXC_SPI_SetDefaultTXData to account for different mxc_spi_req_t structures across parts. - Implement spi_init for MAX32690/MAX32650/MAX32665 Signed-off-by: Brandon-Hurst <brandon.hurst97@gmail.com>
- Unify common PeriphDriver files outside of MCU-specific .mk files. - Add warning suppression for "set-but-unused" to accommodate DMA driver update Signed-off-by: Brandon-Hurst <brandon.hurst97@gmail.com>
- Fix pinsToSpi function signature to correctly matchup pins - Pin changes for MAX32665 to match package on common Eval boards - Use '&' instead of '==' for pinmasks to allow for easier pin usage in C code (This may make it simpler to copy GPIO structs from MSDK down the line) Signed-off-by: Brandon-Hurst <brandon.hurst97@gmail.com>
Signed-off-by: Brandon-Hurst <brandon.hurst97@gmail.com>
Signed-off-by: Brandon Hurst <brandon.hurst97@gmail.com>
tannewt
requested changes
Sep 9, 2026
tannewt
left a comment
Member
There was a problem hiding this comment.
Thanks for the updates! A couple files I don't think add value and should be deleted. Otherwise ok.
Member
There was a problem hiding this comment.
Don't bother adding this. It isn't helpful.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add support for MAX32650 and MAX32665-based evaluation boards to the
analogport. Includes some cleanup of the build system, linkerscripts, and peripheral drivers for portability.Testing
Tested builds of all boards successfully + functionally tested on MAX32650FTHR.