first changes for the HIVE
This commit is contained in:
parent
888bb06d9e
commit
d22ca436f7
|
@ -5,5 +5,5 @@ sd="${bin}/sdcard"
|
||||||
flash="${bin}/flash"
|
flash="${bin}/flash"
|
||||||
|
|
||||||
# Build the the boot program
|
# 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}/
|
mv boot.binary ${flash}/
|
||||||
|
|
|
@ -25,8 +25,14 @@ cp license.txt ${sd}
|
||||||
cp src/_shellrc ${sd}/bin
|
cp src/_shellrc ${sd}/bin
|
||||||
|
|
||||||
# Generate _sysparm and copy to root
|
# 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
|
date +%s >${sd}/_sysparm
|
||||||
echo -6 3 0 >>${sd}/_sysparm
|
echo 1 1 0 >>${sd}/_sysparm
|
||||||
echo 0 0 0 >>${sd}/_sysparm
|
echo 0 0 0 >>${sd}/_sysparm
|
||||||
echo "GPWD /" >>${sd}/_sysparm
|
echo "GPWD /" >>${sd}/_sysparm
|
||||||
echo "LSCRIPT_FILE /bin/_shellrc" >>${sd}/_sysparm
|
echo "LSCRIPT_FILE /bin/_shellrc" >>${sd}/_sysparm
|
||||||
|
|
|
@ -22,12 +22,15 @@ VAR
|
||||||
|
|
||||||
DAT
|
DAT
|
||||||
pins byte 255[4]
|
pins byte 255[4]
|
||||||
|
#ifndef __HIVE
|
||||||
sd_names byte "DO ", 0, "CLK", 0, "DI ", 0, "CS ", 0
|
sd_names byte "DO ", 0, "CLK", 0, "DI ", 0, "CS ", 0
|
||||||
|
#endif
|
||||||
|
|
||||||
PUB main | i, ptr, infile, handle
|
PUB main | i, ptr, infile, handle
|
||||||
longfill(sys#rendezvous, 0, ($8000 - sys#rendezvous)/4)
|
longfill(sys#rendezvous, 0, ($8000 - sys#rendezvous)/4)
|
||||||
c.start
|
c.start
|
||||||
if pins == 255
|
if pins == 255
|
||||||
|
#ifndef __HIVE
|
||||||
repeat
|
repeat
|
||||||
c.printf0(string("Press any key to start\n"))
|
c.printf0(string("Press any key to start\n"))
|
||||||
if ser.rxtime(1000) <> -1
|
if ser.rxtime(1000) <> -1
|
||||||
|
@ -38,6 +41,12 @@ PUB main | i, ptr, infile, handle
|
||||||
c.scanf1(string("%d"), @result)
|
c.scanf1(string("%d"), @result)
|
||||||
pins[i] := result
|
pins[i] := result
|
||||||
ptr += 4
|
ptr += 4
|
||||||
|
#else
|
||||||
|
pins[0] := 10
|
||||||
|
pins[1] := 11
|
||||||
|
pins[2] := 12
|
||||||
|
pins[3] := 13
|
||||||
|
#endif
|
||||||
WriteEEPromLong(eeprom_pin, @pins)
|
WriteEEPromLong(eeprom_pin, @pins)
|
||||||
spi.start_explicit(pins, pins[1], pins[2], pins[3])
|
spi.start_explicit(pins, pins[1], pins[2], pins[3])
|
||||||
c.mount_explicit(pins, pins[1], pins[2], pins[3])
|
c.mount_explicit(pins, pins[1], pins[2], pins[3])
|
||||||
|
|
BIN
src/clibsd.bin
BIN
src/clibsd.bin
Binary file not shown.
Loading…
Reference in New Issue