Skip to content

Commit 0029515

Browse files
author
Scrap Computing
committed
Move functions from flash to mem
1 parent 7e72c37 commit 0029515

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

firmware/src/TTLReader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ bool TTLReader::manualTTLMode() {
11551155
return false;
11561156
}
11571157

1158-
void TTLReader::checkAndUpdateMode() {
1158+
void __not_in_flash_func(TTLReader::checkAndUpdateMode)() {
11591159
// DBG_PRINT(std::cout << "Frame us=" << FrameUs << " Hz=" << VHz
11601160
// << " Polarity=" << getPolarityStr(VSyncPolarity)
11611161
// << " mode=" << modeToStr(Mode) << "\n";)
@@ -1255,7 +1255,7 @@ void TTLReader::changeProfile(bool Next) {
12551255
checkAndUpdateMode();
12561256
}
12571257

1258-
void __not_in_flash_func(TTLReader::handleButtons)() {
1258+
void TTLReader::handleButtons() {
12591259
AutoAdjustBtn.tick();
12601260
PxClkBtn.tick();
12611261

firmware/src/VGAWriter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ void __not_in_flash_func(VGAWriter::DrawLineVSyncHighMDA8x1)(unsigned Line) {
142142
pio_sm_put_blocking(VGAPio, VGASM, BlackMDA_8_V);
143143
}
144144

145-
void VGAWriter::tryChangePIOMode() {
145+
void __not_in_flash_func(VGAWriter::tryChangePIOMode)() {
146146
TimingsTTL = TTLReaderPtr->getMode();
147147

148148
if (TimingsTTL == LastMode)
@@ -259,7 +259,7 @@ void VGAWriter::restartCore1TTLReader(bool NoSignal) {
259259
DBG_PRINT(std::cout << "VGAWriter Wait Done\n";)
260260
}
261261

262-
void VGAWriter::checkInputSignal() {
262+
void __not_in_flash_func(VGAWriter::checkInputSignal()) {
263263
// If the HSync polarity PIO's buffer is empty then there is no TTL signal
264264
if (pio_sm_is_rx_fifo_empty(NoInputSignalPio, NoInputSignalSM)) {
265265
// No signal!
@@ -359,7 +359,7 @@ void __not_in_flash_func(VGAWriter::drawFrame8x1)() {
359359
DrawBlackLineWithMaskMDA8x1(BlackMDA_8);
360360
}
361361

362-
void VGAWriter::runForEver() {
362+
void __not_in_flash_func(VGAWriter::runForEver)() {
363363
uint32_t Cnt = 0;
364364
while (true) {
365365
switch (TimingsTTL.Mode) {

0 commit comments

Comments
 (0)