mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-02-06 12:22:00 -05:00
Multiple fixes of clock switching related stability issues: * added RC oscillator hysteresis as in NXP example; * changed DCDC converter config; * configure PLL2 to be able to run on any CPU frequency level; * added switching to 1.275V (overdrive) voltage when applying any clock change above 12MHz as well as LDO or bandgap switching, as done in Mbed OS' lpm.c for RT1050; * changed BMCR AXI queues weighs for SDRAM in JLink scripts to disable operations reordering, as it is known to cause data integrity issues; * extracted some code to separate files; * smaller or bigger code cleanups.
16 lines
384 B
C++
16 lines
384 B
C++
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#include "RT1051DriverOscillator.hpp"
|
|
#include "board/rt1051/bsp/lpm/Oscillator.hpp"
|
|
|
|
namespace drivers
|
|
{
|
|
|
|
RT1051DriverOscillator::RT1051DriverOscillator() noexcept
|
|
{
|
|
bsp::SwitchToExternalOscillator();
|
|
}
|
|
|
|
} // namespace drivers
|