Compare commits

...

1 Commits

Author SHA1 Message Date
Joerg Deckert d22ca436f7 first changes for the HIVE 2014-05-06 08:36:29 +02:00
4 changed files with 17 additions and 2 deletions

View File

@ -5,5 +5,5 @@ sd="${bin}/sdcard"
flash="${bin}/flash"
# Build the the boot program
bstc -b -O cgru src/boot.spin
bstc -D __HIVE -b -O a src/boot.spin
mv boot.binary ${flash}/

View File

@ -25,8 +25,14 @@ cp license.txt ${sd}
cp src/_shellrc ${sd}/bin
# Generate _sysparm and copy to root
# - UNIX Time
# - timezone config shell_level
# - ifflag whileflag scriptline
# - ENV variable 1
# - ...
# - ENV variable n
date +%s >${sd}/_sysparm
echo -6 3 0 >>${sd}/_sysparm
echo 1 1 0 >>${sd}/_sysparm
echo 0 0 0 >>${sd}/_sysparm
echo "GPWD /" >>${sd}/_sysparm
echo "LSCRIPT_FILE /bin/_shellrc" >>${sd}/_sysparm

View File

@ -22,12 +22,15 @@ VAR
DAT
pins byte 255[4]
#ifndef __HIVE
sd_names byte "DO ", 0, "CLK", 0, "DI ", 0, "CS ", 0
#endif
PUB main | i, ptr, infile, handle
longfill(sys#rendezvous, 0, ($8000 - sys#rendezvous)/4)
c.start
if pins == 255
#ifndef __HIVE
repeat
c.printf0(string("Press any key to start\n"))
if ser.rxtime(1000) <> -1
@ -38,6 +41,12 @@ PUB main | i, ptr, infile, handle
c.scanf1(string("%d"), @result)
pins[i] := result
ptr += 4
#else
pins[0] := 10
pins[1] := 11
pins[2] := 12
pins[3] := 13
#endif
WriteEEPromLong(eeprom_pin, @pins)
spi.start_explicit(pins, pins[1], pins[2], pins[3])
c.mount_explicit(pins, pins[1], pins[2], pins[3])

Binary file not shown.