Mercurial > public > hwos_code
comparison src/hwos.asm @ 642:a9a0188091e4
fix rare upgrade issue with OSTC sport 2019 hardware
author | heinrichsweikamp |
---|---|
date | Thu, 14 Jan 2021 16:24:07 +0100 |
parents | 8c1f1f334275 |
children | 7d8a4c60ec1a 5b7fe7777425 |
comparison
equal
deleted
inserted
replaced
640:8c1f1f334275 | 642:a9a0188091e4 |
---|---|
171 | 171 |
172 movlw coding_speed_normal ; coding for normal CPU speed | 172 movlw coding_speed_normal ; coding for normal CPU speed |
173 movwf cpu_speed_request ; store CPU shall run with normal speed | 173 movwf cpu_speed_request ; store CPU shall run with normal speed |
174 movwf cpu_speed_state ; store CPU does run with normal speed | 174 movwf cpu_speed_state ; store CPU does run with normal speed |
175 | 175 |
176 bcf RCON,SBOREN ; brown-out off (not needed here, is handled in bootloader) | 176 ;bcf RCON,SBOREN ; brown-out off (not needed here, is handled in bootloader) |
177 bcf RCON,IPEN ; priority interrupts off | 177 bcf RCON,IPEN ; priority interrupts off |
178 | 178 |
179 banksel WDTCON | 179 banksel WDTCON |
180 movlw b'10000000' ; setup watchdog | 180 movlw b'10000000' ; setup watchdog |
181 movwf WDTCON ; ... | 181 movwf WDTCON ; ... |