Skip to content

Commit

Permalink
lmkconf: now the chip is powered down and back up before programming
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Lopez committed Oct 24, 2016
1 parent f8ee2c2 commit ae3b48e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lmkconf/lmkconf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ infile, outfile = args.inputfile, args.outputfile

with open(infile,"r") as inf, open(outfile,"w") as outf:
outf.write("const struct {int reg; uint32_t val;} "+args.sname+"[] = {\n")
outf.write("{1, 0x800201C1}, //POWERDOWN\n")
outf.write("{1, 0x800001C1}, //POWERUP\n")
for line in inf:
tmp=line.split("\t")
reg=tmp[0].partition(' ')[0][1:]
Expand Down

0 comments on commit ae3b48e

Please sign in to comment.