Skip to content

Commit d62ba0c

Browse files
Roy, ElizabethWalberg, Irun
authored andcommitted
wiring.c: just removed some comments about bootloader, not needed since we won't be using a bootloader
1 parent 7a7dee5 commit d62ba0c

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

cores/arduino/wiring.c

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ volatile uint32_t timerb3_overflow_count = 0;
5252
volatile uint32_t timerb3_millis = 0;
5353
static uint16_t timerb3_fract = 0;
5454

55-
inline uint16_t clockCyclesPerMicrosecond(uint32_t clk ){
56-
return ( (clk) / 1000000L );
55+
inline uint16_t clockCyclesPerMicrosecond(uint32_t clk ){
56+
return ( (clk) / 1000000L );
5757
}
5858

59-
inline uint16_t clockCyclesToMicroseconds(uint16_t cycles, uint32_t clk){
59+
inline uint16_t clockCyclesToMicroseconds(uint16_t cycles, uint32_t clk){
6060
return ( cycles / clockCyclesPerMicrosecond(clk) );
6161
}
6262

@@ -112,7 +112,7 @@ unsigned long micros() {
112112
cli();
113113

114114
/* Get current number of overflows and timer count */
115-
overflows = timerb3_overflow_count;
115+
overflows = timerb3_overflow_count;
116116
ticks = TCB3.CNTL;
117117

118118
/* If the timer overflow flag is raised, we just missed it,
@@ -259,7 +259,7 @@ void delayMicroseconds(unsigned int us)
259259
// per iteration, so execute it us/4 times
260260
// us is at least 4, divided by 4 gives us 1 (no zero delay bug)
261261
us >>= 2; // us div 4, = 4 cycles
262-
262+
263263

264264
#endif
265265

@@ -401,16 +401,6 @@ void init()
401401
| PORTMUX_USART0_ALT1_gc // SPARE
402402
| PORTMUX_USART3_ALT1_gc); // DEBUG
403403

404-
//
405-
// // the bootloader connects pins 0 and 1 to the USART; disconnect them
406-
// // here so they can be used as normal digital i/o; they will be
407-
// // reconnected in Serial.begin()
408-
// #if defined(UCSRB)
409-
// UCSRB = 0;
410-
// #elif defined(UCSR0B)
411-
// UCSR0B = 0;
412-
// #endif
413-
414404
/********************* TCB3 for system time tracking **************************/
415405

416406
/* Calculate relevant time tracking values */

0 commit comments

Comments
 (0)