Rev 827 | Rev 839 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 827 | Rev 828 | ||
|---|---|---|---|
| Line 169... | Line 169... | ||
| 169 | c = 0 |
169 | c = 0 |
| 170 | for line in applicationSection: |
170 | for line in applicationSection: |
| 171 | if line.find("<TIMER>") != -1: |
171 | if line.find("<TIMER>") != -1: |
| 172 | line = line[:line.find("=")+1] + hex(timers) + " /* <TIMER> -- DO NOT REMOVE THIS COMMENT -- */" |
172 | line = line[:line.find("=")+1] + hex(timers) + " /* <TIMER> -- DO NOT REMOVE THIS COMMENT -- */" |
| 173 | timers += 1 |
173 | timers += 1 |
| 174 | elif line.find(" |
174 | elif line.find("TIMER_NUM_TIMERS=") != -1: |
| 175 | line = |
175 | line = "TIMER_NUM_TIMERS=" + hex(timers) |
| 176 | elif line.find(" |
176 | elif line.find("NUMBER_OF_MODULES=") != -1: |
| 177 | line = |
177 | line = "NUMBER_OF_MODULES=" + hex(len(modules)) |
| 178 | 178 | ||
| 179 | applicationSection[c] = line; |
179 | applicationSection[c] = line; |
| 180 | c += 1 |
180 | c += 1 |
| 181 | 181 | ||
| 182 | config_inc = open('config.inc', 'w') |
182 | config_inc = open('config.inc', 'w') |