Make colorchord work with W25Q40 memory, using the window of flash after the IRAM loaded section.
This commit is contained in:
parent
c90a00e290
commit
997ad27cc2
6 changed files with 60 additions and 13 deletions
|
@ -49,6 +49,13 @@ int main( int argc, char ** argv )
|
|||
return -2;
|
||||
}
|
||||
|
||||
|
||||
memcpy( mfsfat[fatpointer].name, "MPFSMPFS", 8 );
|
||||
mfsfat[fatpointer].start = 0;
|
||||
mfsfat[fatpointer].len = 0;
|
||||
fatpointer++;
|
||||
|
||||
|
||||
while ((dir = readdir(d)) != NULL)
|
||||
{
|
||||
if( dir->d_type & DT_REG )
|
||||
|
|
|
@ -7,6 +7,11 @@ globalParams = {};
|
|||
|
||||
function mainticker()
|
||||
{
|
||||
KickOscilloscope();
|
||||
KickDFT();
|
||||
KickNotes();
|
||||
KickLEDs();
|
||||
|
||||
QueueOperation( "CVR", ReceiveParameters );
|
||||
setTimeout( mainticker, 1000 );
|
||||
}
|
||||
|
@ -14,10 +19,6 @@ function mainticker()
|
|||
function maininit()
|
||||
{
|
||||
setTimeout( mainticker, 1000 );
|
||||
KickOscilloscope();
|
||||
KickDFT();
|
||||
KickNotes();
|
||||
KickLEDs();
|
||||
}
|
||||
|
||||
|
||||
|
@ -89,7 +90,7 @@ pause_oscilloscope = false;
|
|||
function KickOscilloscope()
|
||||
{
|
||||
$( "#OScopePauseButton" ).css( "background-color", (is_oscilloscope_running&&pause_oscilloscope)?"green":"red" );
|
||||
if( !is_oscilloscope_running && !pause_oscilloscope)
|
||||
if( !pause_oscilloscope)
|
||||
OScopeDataTicker();
|
||||
}
|
||||
|
||||
|
@ -169,7 +170,7 @@ pause_dft = false;
|
|||
function KickDFT()
|
||||
{
|
||||
$( "#DFTPauseButton" ).css( "background-color", (is_dft_running&&!pause_dft)?"green":"red" );
|
||||
if( !is_dft_running && !pause_dft )
|
||||
if( !pause_dft )
|
||||
DFTDataTicker();
|
||||
}
|
||||
|
||||
|
@ -246,9 +247,8 @@ function KickLEDs()
|
|||
{
|
||||
$( "#LEDPauseButton" ).css( "background-color", (is_leds_running&&!pause_led)?"green":"red" );
|
||||
|
||||
if( !is_leds_running && !pause_led )
|
||||
if( !pause_led )
|
||||
LEDDataTicker();
|
||||
|
||||
}
|
||||
|
||||
function ToggleLEDPause()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue