|
|
@@ -1,5 +1,6 @@
|
|
1
|
1
|
#include <avr/io.h>
|
|
2
|
2
|
#include <stdint.h>
|
|
|
3
|
+#include <util/delay.h>
|
|
3
|
4
|
|
|
4
|
5
|
#include "pin_programming.h"
|
|
5
|
6
|
|
|
|
@@ -30,10 +31,12 @@ void Configure_Pin_Programming_Pins(void)
|
|
30
|
31
|
PIN_PROG_2_DDR &= ~(1 << PIN_PROG_2_PIN);
|
|
31
|
32
|
PIN_PROG_3_DDR &= ~(1 << PIN_PROG_3_PIN);
|
|
32
|
33
|
|
|
33
|
|
- /* Enable pull-ups */ // TODO: enable once the boards have been fixed!
|
|
|
34
|
+ /* Enable pull-ups */
|
|
34
|
35
|
PIN_PROG_1_PORT |= (1 << PIN_PROG_1_PIN);
|
|
35
|
36
|
PIN_PROG_2_PORT |= (1 << PIN_PROG_2_PIN);
|
|
36
|
37
|
PIN_PROG_3_PORT |= (1 << PIN_PROG_3_PIN);
|
|
|
38
|
+
|
|
|
39
|
+ _delay_us(20);
|
|
37
|
40
|
}
|
|
38
|
41
|
|
|
39
|
42
|
uint8_t Get_Own_Identifier(void)
|