-
Notifications
You must be signed in to change notification settings - Fork 108
feat(PeriphDrivers): Add Clock Setter APIs for MAX32690 & MAX78002 Peripherals, Add Dual Mode TMR Support, Add MAX32690 Clock Calibration API for IPO, Add MAX32690 RISCV Clock Setter, CFS Support Functions #1108
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
Merged
Merged
Changes from 33 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
4fa9e78
Fix and improve basic AI87 UART clock source APIs
Jake-Carter f2902e3
Add AI87 UART APIs for more explicit clock config
Jake-Carter d5a5a83
Revert me! Example clock config usage in AI87 BSP
Jake-Carter 6353775
Implement MXC_SYS_SetBypass for ME18
Jake-Carter e73cb02
Implement MXC_USB_SetClockSource for ME18
Jake-Carter 5286e6c
Implement MXC_SYS_ClockCalibrate for ME18
Jake-Carter d7965cf
Implement MXC_ADC_SetClockSource, SetClockDiv, LockClockSource for ME18
Jake-Carter bdb1835
Implement MXC_UART_LockClockSource for ME18
Jake-Carter 1b1167f
Implement MXC_WDT_LockClockSource for ME18
Jake-Carter f8a1f11
Update ME18 SYS drivers to support RISC-V system clock sources
Jake-Carter 662583c
Add 'mxc.h' for ME18
Jake-Carter 9df6bd8
Bypass ME18 AES header (not implemented?)
Jake-Carter 9f2298a
Implement MXC_USB_LockClockSource
Jake-Carter 8a91daf
Implement MXC_ADC_LockClockSource for ME18
Jake-Carter 2f35390
Add MXC_WDT_APB_CLK definition for ME18
Jake-Carter 58c0fb0
Expose MXC_WDT_LockClockSource for ME18
Jake-Carter f26b2ea
Add ClockInit stub for CFS
Jake-Carter 9a61b44
Fix register typo for RISC-V builds
Jake-Carter 7b1ff00
Fix register typo for RISC-V builds
Jake-Carter b2ff7e8
Include stdbool for ADC Rev B
Jake-Carter c5f3cfb
Fix TMR RevB dual-mode configurations for 16B
Jake-Carter 9092534
AI87/ME18 TMR: Only full reset for 32-bit cascade modes
Jake-Carter 2324646
TMR: Implement LockClockSource, SetClockSorce, and SetPrescalar for A…
Jake-Carter 78455a9
TMR: Implement LockClockSource, SetClockSorce, and SetPrescalar for A…
Jake-Carter 9d2e34c
Revert "Update ME18 SYS drivers to support RISC-V system clock sources"
Jake-Carter d8099a2
ME18: Implement MXC_SYS_RISCVClockSelect
Jake-Carter 068b73c
ME18: Fix TMR build errors
Jake-Carter e20e42e
Revert "Revert me! Example clock config usage in AI87 BSP"
Jake-Carter 2f4f1e9
AI87: Remove MXC_UART_Enable (Use MXC_SYS_ClockEnable instead)
Jake-Carter 9f7b45a
ME18: Call new SetClockSource as part of UART Init routine
Jake-Carter fbf719f
AI87: Fix USB clock setter errors and warnings
Jake-Carter f752702
Only expose USB clock APIs for MAX32690
Jake-Carter 7af7592
clang-format
Jake-Carter 4a29a79
(test): Don't call SetClockSource in ME18 UART init
Jake-Carter 1795b40
ME18: Update UART SetClockSource/GetClockSource
Jake-Carter f45eb77
Fix linter errors
Jake-Carter 5de0fea
Add developer note to max32690.h
Jake-Carter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/****************************************************************************** | ||
* | ||
* Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by | ||
* Analog Devices, Inc.), | ||
* Copyright (C) 2023-2024 Analog Devices, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
******************************************************************************/ | ||
|
||
#ifndef LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32690_MXC_H_ | ||
#define LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32690_MXC_H_ | ||
|
||
#ifdef __riscv | ||
// TODO(JC): This is a somewhat ugly hack added to avoid | ||
// implicit function warnings on RISC-V projects | ||
// when LIB_BOARD was added to libs.mk. When the | ||
// RISC-V build system is improved to use libs.mk | ||
// this should be removed. | ||
#ifndef LIB_BOARD | ||
#define LIB_BOARD | ||
#endif | ||
#endif | ||
|
||
#include "mxc_device.h" | ||
#include "mxc_delay.h" | ||
#include "mxc_assert.h" | ||
#include "mxc_errors.h" | ||
#include "mxc_lock.h" | ||
#include "mxc_pins.h" | ||
#include "mxc_sys.h" | ||
#include "nvic_table.h" | ||
#ifdef LIB_BOARD | ||
#include "board.h" | ||
#endif | ||
|
||
/* | ||
* Peripheral Driver Includes | ||
*/ | ||
#include "adc.h" | ||
// #include "aes.h" // TODO(JC): AES drivers not implemented for ME18 (?) | ||
#include "can.h" | ||
#include "crc.h" | ||
#include "ctb.h" | ||
#include "dma.h" | ||
#include "emcc.h" | ||
#include "flc.h" | ||
#include "gpio.h" | ||
#include "hpb.h" | ||
#include "i2c.h" | ||
#include "i2s.h" | ||
#include "icc.h" | ||
#include "lp.h" | ||
#include "lpcmp.h" | ||
#include "owm.h" | ||
#include "pt.h" | ||
#include "rtc.h" | ||
#include "sema.h" | ||
#include "spi.h" | ||
#include "spixf.h" | ||
#include "spixr.h" | ||
#include "tmr.h" | ||
#include "trng.h" | ||
#include "uart.h" | ||
#include "wdt.h" | ||
#include "wut.h" | ||
|
||
#endif // LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32690_MXC_H_ |
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
Oops, something went wrong.
Oops, something went wrong.
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.
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 you add this note to the header device files (max32690.h)? Some developers only pull the CMSIS.
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.
5de0fea