FreeCalypso > hg > freecalypso-tools
annotate ffstools/caltools/Makefile @ 497:74610c4f10f7
target-utils: added 10 ms delay at the end of abb_power_off()
The deosmification of the ABB access code (replacement of osmo_delay_ms()
bogus delays with correctly-timed ones, which are significantly shorter)
had one annoying side effect: when executing the poweroff command from
any of the programs, one last '=' prompt character was being sent (and
received by the x86 host) as the Calypso board powers off. With delays
being shorter now, the abb_power_off() function was returning and the
standalone program's main loop was printing its prompt before the Iota chip
fully executed the switch-off sequence!
I thought about inserting an endless tight loop at the end of the
abb_power_off() function, but the implemented solution of a 10 ms delay
is a little nicer IMO because if the DEVOFF operation doesn't happen for
some reason in a manual hacking scenario, there won't be an artificial
blocker in the form of a tight loop keeping us from further poking around.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 25 May 2019 20:44:05 +0000 |
parents | 68c7e4edc4da |
children | e5ef798e2d35 |
rev | line source |
---|---|
292
0af5009bd52f
fc-cal2bin written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= gcc |
0af5009bd52f
fc-cal2bin written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -O2 |
484
68c7e4edc4da
fc-bin2rftab utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
473
diff
changeset
|
3 PROGS= c1xx-calextr fc-bin2rftab fc-cal2bin fc-rftab2c |
473
90d7c360a614
main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
439
diff
changeset
|
4 |
90d7c360a614
main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
439
diff
changeset
|
5 INSTALL_PREFIX= /opt/freecalypso |
90d7c360a614
main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
439
diff
changeset
|
6 |
90d7c360a614
main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
439
diff
changeset
|
7 INSTBIN=${INSTALL_PREFIX}/bin |
292
0af5009bd52f
fc-cal2bin written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
0af5009bd52f
fc-cal2bin written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 all: ${PROGS} |
0af5009bd52f
fc-cal2bin written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
0af5009bd52f
fc-cal2bin written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 LIBRFTAB= ../../librftab/librftab.a |
0af5009bd52f
fc-cal2bin written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
484
68c7e4edc4da
fc-bin2rftab utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
473
diff
changeset
|
13 BIN2RFTAB_OBJS= fc-bin2rftab.o ${LIBRFTAB} |
68c7e4edc4da
fc-bin2rftab utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
473
diff
changeset
|
14 |
294
1416fe200069
c1xx-calextr started
Mychaela Falconia <falcon@freecalypso.org>
parents:
292
diff
changeset
|
15 CAL2BIN_OBJS= fc-cal2bin.o ${LIBRFTAB} |
1416fe200069
c1xx-calextr started
Mychaela Falconia <falcon@freecalypso.org>
parents:
292
diff
changeset
|
16 |
295
79434b9de159
c1xx-calextr will need mkdir and librftab
Mychaela Falconia <falcon@freecalypso.org>
parents:
294
diff
changeset
|
17 CALEXTR_OBJS= c1xx-calextr.o mkdir.o ${LIBRFTAB} |
294
1416fe200069
c1xx-calextr started
Mychaela Falconia <falcon@freecalypso.org>
parents:
292
diff
changeset
|
18 |
439
f4a32c1025a2
fc-rftab2c program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
295
diff
changeset
|
19 RFTAB2C_OBJS= fc-rftab2c.o ${LIBRFTAB} |
f4a32c1025a2
fc-rftab2c program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
295
diff
changeset
|
20 |
484
68c7e4edc4da
fc-bin2rftab utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
473
diff
changeset
|
21 fc-bin2rftab: ${BIN2RFTAB_OBJS} |
68c7e4edc4da
fc-bin2rftab utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
473
diff
changeset
|
22 ${CC} ${CFLAGS} -o $@ ${BIN2RFTAB_OBJS} |
68c7e4edc4da
fc-bin2rftab utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
473
diff
changeset
|
23 |
294
1416fe200069
c1xx-calextr started
Mychaela Falconia <falcon@freecalypso.org>
parents:
292
diff
changeset
|
24 fc-cal2bin: ${CAL2BIN_OBJS} |
1416fe200069
c1xx-calextr started
Mychaela Falconia <falcon@freecalypso.org>
parents:
292
diff
changeset
|
25 ${CC} ${CFLAGS} -o $@ ${CAL2BIN_OBJS} |
1416fe200069
c1xx-calextr started
Mychaela Falconia <falcon@freecalypso.org>
parents:
292
diff
changeset
|
26 |
1416fe200069
c1xx-calextr started
Mychaela Falconia <falcon@freecalypso.org>
parents:
292
diff
changeset
|
27 c1xx-calextr: ${CALEXTR_OBJS} |
1416fe200069
c1xx-calextr started
Mychaela Falconia <falcon@freecalypso.org>
parents:
292
diff
changeset
|
28 ${CC} ${CFLAGS} -o $@ ${CALEXTR_OBJS} |
292
0af5009bd52f
fc-cal2bin written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 |
439
f4a32c1025a2
fc-rftab2c program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
295
diff
changeset
|
30 fc-rftab2c: ${RFTAB2C_OBJS} |
f4a32c1025a2
fc-rftab2c program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
295
diff
changeset
|
31 ${CC} ${CFLAGS} -o $@ ${RFTAB2C_OBJS} |
f4a32c1025a2
fc-rftab2c program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
295
diff
changeset
|
32 |
295
79434b9de159
c1xx-calextr will need mkdir and librftab
Mychaela Falconia <falcon@freecalypso.org>
parents:
294
diff
changeset
|
33 mkdir.o: ../cal2text/mkdir.c |
79434b9de159
c1xx-calextr will need mkdir and librftab
Mychaela Falconia <falcon@freecalypso.org>
parents:
294
diff
changeset
|
34 ${CC} ${CFLAGS} -c -o $@ $< |
79434b9de159
c1xx-calextr will need mkdir and librftab
Mychaela Falconia <falcon@freecalypso.org>
parents:
294
diff
changeset
|
35 |
292
0af5009bd52f
fc-cal2bin written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 install: |
0af5009bd52f
fc-cal2bin written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 mkdir -p ${INSTBIN} |
0af5009bd52f
fc-cal2bin written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 install -c ${PROGS} ${INSTBIN} |
0af5009bd52f
fc-cal2bin written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 |
0af5009bd52f
fc-cal2bin written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 clean: |
0af5009bd52f
fc-cal2bin written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 rm -f ${PROGS} *.o *errs *.out |