Move the embedded stuff into architecture-specific folders
This commit is contained in:
parent
09be0f349b
commit
f2a1086c97
11 changed files with 479 additions and 23 deletions
13
embeddedx86/Makefile
Normal file
13
embeddedx86/Makefile
Normal file
|
@ -0,0 +1,13 @@
|
|||
all : embeddedcc
|
||||
|
||||
CFLAGS:=-Ofast -DCCEMBEDDED -I.. -flto -m32
|
||||
LDFLAGS:=-ffunction-sections -Wl,--gc-sections -fno-asynchronous-unwind-tables -Wl,--strip-all
|
||||
|
||||
embeddedcc : ../embeddednf.c ../DFT32.c embeddedcc.c
|
||||
gcc -o $@ $^ $(CFLAGS) $(LDFLAGS)
|
||||
|
||||
runembedded : embeddedcc
|
||||
parec --format=u8 --rate=8000 --channels=1 --device=alsa_output.pci-0000_00_1b.0.analog-stereo.monitor | ./embeddedcc
|
||||
|
||||
clean :
|
||||
rm -rf embeddedcc *~
|
32
embeddedx86/embeddedcc.c
Normal file
32
embeddedx86/embeddedcc.c
Normal file
|
@ -0,0 +1,32 @@
|
|||
//
|
||||
// This is the teststrap for the Embedded ColorChord System.
|
||||
// It is intended as a minimal scaffolding for testing Embedded ColorChord.
|
||||
//
|
||||
|
||||
#include <stdio.h>
|
||||
#include "embeddednf.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
int wf = 0;
|
||||
int ci;
|
||||
Init();
|
||||
while( ( ci = getchar() ) != EOF )
|
||||
{
|
||||
int cs = ci - 0x80;
|
||||
#ifdef USE_32DFT
|
||||
PushSample32( ((int8_t)cs)*32 );
|
||||
#else
|
||||
Push8BitIntegerSkippy( (int8_t)cs );
|
||||
#endif
|
||||
//printf( "%d ", cs ); fflush( stdout );
|
||||
wf++;
|
||||
if( wf == 64 )
|
||||
{
|
||||
HandleFrameInfo();
|
||||
wf = 0;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue