daily_automated
This commit is contained in:
2213
trunk/Arduino/TinyBasicPlus/TinyBasicPlus.cpp
Normal file
2213
trunk/Arduino/TinyBasicPlus/TinyBasicPlus.cpp
Normal file
File diff suppressed because it is too large
Load Diff
BIN
trunk/Arduino/TinyBasicPlus/TinyBasicPlus.exe
Normal file
BIN
trunk/Arduino/TinyBasicPlus/TinyBasicPlus.exe
Normal file
Binary file not shown.
2213
trunk/Arduino/TinyBasicPlus/TinyBasicPlus.ino
Normal file
2213
trunk/Arduino/TinyBasicPlus/TinyBasicPlus.ino
Normal file
File diff suppressed because it is too large
Load Diff
BIN
trunk/Arduino/TinyBasicPlus/TinyBasicPlus.zip
Normal file
BIN
trunk/Arduino/TinyBasicPlus/TinyBasicPlus.zip
Normal file
Binary file not shown.
11
trunk/Arduino/TinyBasicPlus/desktop.h
Normal file
11
trunk/Arduino/TinyBasicPlus/desktop.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifndef boolean
|
||||
#define boolean int
|
||||
#define true 1
|
||||
#define false 0
|
||||
#endif
|
||||
|
||||
#define kRamSize ( 64 * 1024 )
|
||||
|
||||
49
trunk/Arduino/TinyBasicPlus/main.cpp
Normal file
49
trunk/Arduino/TinyBasicPlus/main.cpp
Normal file
@@ -0,0 +1,49 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#if defined(__MINGW32__ )
|
||||
#include <dirent.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <dirent.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
/* these are used in the .ino */
|
||||
|
||||
void outchar( char ch )
|
||||
{
|
||||
printf( "%c", ch );
|
||||
}
|
||||
|
||||
|
||||
/* other helpers */
|
||||
|
||||
int cmd_Files( void )
|
||||
{
|
||||
DIR * theDir;
|
||||
|
||||
theDir = opendir( "." );
|
||||
if( !theDir ) return -2;
|
||||
|
||||
struct dirent *theDirEnt = readdir( theDir );
|
||||
while( theDirEnt ) {
|
||||
printf( " %s\n", theDirEnt->d_name );
|
||||
theDirEnt = readdir( theDir );
|
||||
}
|
||||
closedir( theDir );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void setup( void );
|
||||
void loop( void );
|
||||
|
||||
int main( int argc, char ** argv )
|
||||
{
|
||||
printf( "Starting up TinyBasic Plus...\n\n" );
|
||||
|
||||
setup();
|
||||
loop();
|
||||
}
|
||||
71
trunk/Arduino/TinyBasicPlus/makefile
Normal file
71
trunk/Arduino/TinyBasicPlus/makefile
Normal file
@@ -0,0 +1,71 @@
|
||||
#
|
||||
# makefile for command line TinyBasicPlus
|
||||
# (basic input version)
|
||||
#
|
||||
# requires GCC tools
|
||||
#
|
||||
# tested on OS X, MinGW
|
||||
# (we will autoconfigure for the right platform)
|
||||
|
||||
|
||||
########################################
|
||||
export ARCH := $(shell uname)
|
||||
ifeq ($(ARCH),MINGW32_NT-5.1)
|
||||
# Win XP
|
||||
export ARCH := MINGW
|
||||
endif
|
||||
ifeq ($(ARCH),MINGW32_NT-5.2)
|
||||
# Server 2003
|
||||
export ARCH := MINGW
|
||||
endif
|
||||
ifeq ($(ARCH),MINGW32_NT-6.1)
|
||||
# Windows 7
|
||||
export ARCH := MINGW
|
||||
endif
|
||||
|
||||
# mingw will be: MINGW
|
||||
# os x will be: Darwin
|
||||
|
||||
|
||||
ifeq ($(ARCH),MINGW)
|
||||
export EXEEXT := .exe
|
||||
else
|
||||
export EXEEXT :=
|
||||
endif
|
||||
|
||||
export CXXFLAGS += -DFORCE_DESKTOP -Wno-int-to-pointer-cast
|
||||
|
||||
export CXX := g++
|
||||
export CC := gcc
|
||||
|
||||
########################################
|
||||
PROG := TinyBasicPlus$(EXEEXT)
|
||||
|
||||
SRCS := TinyBasicPlus.cpp \
|
||||
main.cpp
|
||||
|
||||
OBJS := $(SRCS:%.cpp=%.o)
|
||||
|
||||
all: $(PROG)
|
||||
|
||||
$(PROG): TinyBasicPlus.o main.o
|
||||
@echo link $@
|
||||
@$(CXX) $(CXXFLAGS) $^ $(LDFLAGS) $(LIBS) -o $@
|
||||
|
||||
|
||||
TinyBasicPlus.cpp: TinyBasicPlus.ino
|
||||
@echo copy $< to $@
|
||||
@cp $< $@
|
||||
|
||||
%.o: %.cpp
|
||||
@echo compile $<
|
||||
@$(CXX) $(CXXFLAGS) $(DEFS) -c -o $@ $<
|
||||
|
||||
clean:
|
||||
@echo removing generated files
|
||||
@-rm -f $(OBJS) $(PROG) TinyBasicPlus.cpp
|
||||
.PHONY: clean
|
||||
|
||||
test: $(PROG)
|
||||
./$(PROG)
|
||||
.PHONY: test
|
||||
BIN
trunk/Arduino/TinyBasicPlus/tiny_basic_instructions.pdf
Normal file
BIN
trunk/Arduino/TinyBasicPlus/tiny_basic_instructions.pdf
Normal file
Binary file not shown.
Reference in New Issue
Block a user