Skip to content

Commit e0a0d97

Browse files
committed
bugfix incorrect internal frequency lpx175x chips
1 parent 14f65bb commit e0a0d97

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

targets/chip/lpc1752/startup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void __attribute__((__constructor__(101))) __target_startup() {
2222
// oscillator)
2323
// ((16 * 2 * 12Mhz) / 1 = 384Mhz) / 4 = 96Mhz
2424
clock::set_main<clock::source::main, 12'000'000, 16, 1, 4>();
25-
// clock::set_main<clock::source::internal, 12'000'000, 48, 1, 4>();
25+
// clock::set_main<clock::source::internal, 4'000'000, 48, 1, 4>();
2626

2727
// setup the irq handler before main is called. This
2828
// moves the vector table to ram so it can be changed

targets/chip/lpc1756/startup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void __attribute__((__constructor__(101))) __target_startup() {
2222
// oscillator)
2323
// ((16 * 2 * 12Mhz) / 1 = 384Mhz) / 4 = 96Mhz
2424
clock::set_main<clock::source::main, 12'000'000, 16, 1, 4>();
25-
// clock::set_main<clock::source::internal, 12'000'000, 48, 1, 4>();
25+
// clock::set_main<clock::source::internal, 4'000'000, 48, 1, 4>();
2626

2727
// setup the irq handler before main is called. This
2828
// moves the vector table to ram so it can be changed

targets/chip/lpc1759/startup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void __attribute__((__constructor__(101))) __target_startup() {
2222
// oscillator)
2323
// ((16 * 2 * 12Mhz) / 1 = 384Mhz) / 4 = 96Mhz
2424
clock::set_main<clock::source::main, 12'000'000, 16, 1, 4>();
25-
// clock::set_main<clock::source::internal, 12'000'000, 48, 1, 4>();
25+
// clock::set_main<clock::source::internal, 4'000'000, 48, 1, 4>();
2626

2727
// setup the irq handler before main is called. This
2828
// moves the vector table to ram so it can be changed

0 commit comments

Comments
 (0)