Correct UC3 global interrupt functions.
Replace all calls and references to _delay_ms() in the code with the architecture-agnostic Delay_MS() function. Improve code generation for the Delay_MS() function on the AVR8 architecture when called with a constant input.
This commit is contained in:
parent
70284d390f
commit
de9bd767dc
9 changed files with 28 additions and 18 deletions
|
@ -109,7 +109,7 @@ int main(void)
|
|||
|
||||
/* Enable pull-up on the JTAG TCK pin so we can use it to select the mode */
|
||||
PORTF |= (1 << 4);
|
||||
_delay_ms(10);
|
||||
Delay_MS(10);
|
||||
|
||||
/* If the TCK pin is not jumpered to ground, start the user application instead */
|
||||
RunBootloader = (!(PINF & (1 << 4)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue