From b7e05e41463cedbee2b31fad9e5b3a00dfb4708b Mon Sep 17 00:00:00 2001 From: Meli Date: Fri, 13 Feb 2015 22:40:56 +0100 Subject: [PATCH 1/8] Adding communication with other device and detect its address for communication --- ball_detect/main.c | 57 +++++++++++++++++++++++++++++++--------------- 1 file changed, 39 insertions(+), 18 deletions(-) diff --git a/ball_detect/main.c b/ball_detect/main.c index b18e382..3ba5739 100644 --- a/ball_detect/main.c +++ b/ball_detect/main.c @@ -10,6 +10,12 @@ #define BALL_SENSOR_1 0 #define BALL_SENSOR_2 1 #define BALL_SENSOR_3 2 +#define DIP_SWITCH_1 0 +#define DIP_SWITCH_2 1 +#define DIP_SWITCH_3 2 +#define DIP_SWITCH_4 3 +#define DIP_SWITCH_5 4 +#define DIP_SWITCH_6 5 #define F_OSC F_CPU #define ULTRASONIC_SENSOR 4 #define waitForTX() while (!(UCSR0A & 1< vision_result[j]) { - small = vision_result[j]; - index = j; - } - } - sendc('0' + index); - sendc('\r'); - sendc('\n'); - _delay_ms(200); } return 0; } From 99f8052914432b32b9f1124c058f4b7bbca240c1 Mon Sep 17 00:00:00 2001 From: Meli Date: Fri, 13 Feb 2015 22:52:53 +0100 Subject: [PATCH 2/8] repair of structure of last commit --- ball_detect/main.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ball_detect/main.c b/ball_detect/main.c index 3ba5739..663688f 100644 --- a/ball_detect/main.c +++ b/ball_detect/main.c @@ -38,10 +38,8 @@ void setup(void) { DDRD |= 1 << 3; //DIP-SWITCH INITIALIZATION - DDRC = 0; - PORTC |= \ - ((1 << DIP_SWITCH_1) | (1 << DIP_SWITCH_2) | (1 << DIP_SWITCH_3) | \ - (1 << DIP_SWITCH_4) | (1 << DIP_SWITCH_5) | (1 << DIP_SWITCH_6)); + DDRC = 0; + PORTC |= ((1 << DIP_SWITCH_1) | (1 << DIP_SWITCH_2) | (1 << DIP_SWITCH_3) | (1 << DIP_SWITCH_4) | (1 << DIP_SWITCH_5) | (1 << DIP_SWITCH_6)); //INTERRUPTS INIT DDRB = 0; @@ -79,10 +77,10 @@ ISR(USART_RX_vect) { uint32_t modulo, position; uint8_t read_char = UDR0, i, j; if(read_char == my_address) { - for(j = 2; j <= 0; j--) { + for(j = 2; j >= 0; j--) { modulo = vision_result[j]; position = 1000000; - for(i = 0;i < 7;i++) { + for(i = 0; i < 7; i++) { sendc('0' + ((modulo / position) % 10)); modulo %= position; position /= 10; From 75005da379ff98d12784aa9be09a7e7a4e5dde52 Mon Sep 17 00:00:00 2001 From: Meli Date: Sun, 15 Feb 2015 21:30:41 +0100 Subject: [PATCH 3/8] repair of lines with more than 80 characters Signed-off-by: Meli --- ball_detect/main.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ball_detect/main.c b/ball_detect/main.c index 663688f..c9e6a9f 100644 --- a/ball_detect/main.c +++ b/ball_detect/main.c @@ -39,11 +39,19 @@ void setup(void) { //DIP-SWITCH INITIALIZATION DDRC = 0; - PORTC |= ((1 << DIP_SWITCH_1) | (1 << DIP_SWITCH_2) | (1 << DIP_SWITCH_3) | (1 << DIP_SWITCH_4) | (1 << DIP_SWITCH_5) | (1 << DIP_SWITCH_6)); + PORTC |= ((1 << DIP_SWITCH_1) + | (1 << DIP_SWITCH_2) + | (1 << DIP_SWITCH_3) + | (1 << DIP_SWITCH_4) + | (1 << DIP_SWITCH_5) + | (1 << DIP_SWITCH_6)); //INTERRUPTS INIT DDRB = 0; - PORTB |= ((1 << BALL_SENSOR_1) | (1 << BALL_SENSOR_2) | (1 << BALL_SENSOR_3) | (1 << ULTRASONIC_SENSOR)); + PORTB |= ((1 << BALL_SENSOR_1) + | (1 << BALL_SENSOR_2) + | (1 << BALL_SENSOR_3) + | (1 << ULTRASONIC_SENSOR)); PCICR |= 1; PCMSK0 |= 0xF; From 722f13fe7bb0674a2af8272a7a75cb33a513894e Mon Sep 17 00:00:00 2001 From: Meli Date: Sun, 15 Feb 2015 21:39:35 +0100 Subject: [PATCH 4/8] repair of lines with more than 80 characters (tabs) Signed-off-by: Meli --- ball_detect/main.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ball_detect/main.c b/ball_detect/main.c index c9e6a9f..db1a58e 100644 --- a/ball_detect/main.c +++ b/ball_detect/main.c @@ -40,18 +40,18 @@ void setup(void) { //DIP-SWITCH INITIALIZATION DDRC = 0; PORTC |= ((1 << DIP_SWITCH_1) - | (1 << DIP_SWITCH_2) - | (1 << DIP_SWITCH_3) - | (1 << DIP_SWITCH_4) - | (1 << DIP_SWITCH_5) - | (1 << DIP_SWITCH_6)); + | (1 << DIP_SWITCH_2) + | (1 << DIP_SWITCH_3) + | (1 << DIP_SWITCH_4) + | (1 << DIP_SWITCH_5) + | (1 << DIP_SWITCH_6)); //INTERRUPTS INIT DDRB = 0; PORTB |= ((1 << BALL_SENSOR_1) - | (1 << BALL_SENSOR_2) - | (1 << BALL_SENSOR_3) - | (1 << ULTRASONIC_SENSOR)); + | (1 << BALL_SENSOR_2) + | (1 << BALL_SENSOR_3) + | (1 << ULTRASONIC_SENSOR)); PCICR |= 1; PCMSK0 |= 0xF; From b9875953fb196a87056651f8569a0c6356759efe Mon Sep 17 00:00:00 2001 From: Meli Date: Sun, 15 Feb 2015 21:42:34 +0100 Subject: [PATCH 5/8] applying one of deep dark secrets of C on declaration of global array Signed-off-by: Meli --- ball_detect/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ball_detect/main.c b/ball_detect/main.c index db1a58e..9a7050b 100644 --- a/ball_detect/main.c +++ b/ball_detect/main.c @@ -23,7 +23,7 @@ volatile int32_t ends_of_pulses[4]; volatile int32_t lenghts_of_pulses[4]; volatile int32_t starts_of_pulses[4]; -volatile int32_t vision_result[3] = {0,0,0}; +volatile int32_t vision_result[3]; volatile uint8_t pinstate, ct, changed_bits, portb_history = 0xFF, my_address; void setup(void) { From 7fa396ff4cee91a89ddbeb0439a0425b2c7e0c5f Mon Sep 17 00:00:00 2001 From: Meli Date: Sun, 15 Feb 2015 21:47:20 +0100 Subject: [PATCH 6/8] removing annoying irritating bad spaces Signed-off-by: Meli --- ball_detect/main.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ball_detect/main.c b/ball_detect/main.c index 9a7050b..90722d2 100644 --- a/ball_detect/main.c +++ b/ball_detect/main.c @@ -40,18 +40,18 @@ void setup(void) { //DIP-SWITCH INITIALIZATION DDRC = 0; PORTC |= ((1 << DIP_SWITCH_1) - | (1 << DIP_SWITCH_2) - | (1 << DIP_SWITCH_3) - | (1 << DIP_SWITCH_4) - | (1 << DIP_SWITCH_5) - | (1 << DIP_SWITCH_6)); + | (1 << DIP_SWITCH_2) + | (1 << DIP_SWITCH_3) + | (1 << DIP_SWITCH_4) + | (1 << DIP_SWITCH_5) + | (1 << DIP_SWITCH_6)); //INTERRUPTS INIT DDRB = 0; PORTB |= ((1 << BALL_SENSOR_1) - | (1 << BALL_SENSOR_2) - | (1 << BALL_SENSOR_3) - | (1 << ULTRASONIC_SENSOR)); + | (1 << BALL_SENSOR_2) + | (1 << BALL_SENSOR_3) + | (1 << ULTRASONIC_SENSOR)); PCICR |= 1; PCMSK0 |= 0xF; From edb243d5dfb484ab859bad2b422f33db3cd261b7 Mon Sep 17 00:00:00 2001 From: Meli Date: Sat, 21 Feb 2015 13:27:40 +0100 Subject: [PATCH 7/8] adding 1 byte communication protocol Signed-off-by: Meli --- ball_detect/main.c | 19 ++++---- ball_detect/main.map | 107 ++++++++++++++++++------------------------- 2 files changed, 54 insertions(+), 72 deletions(-) diff --git a/ball_detect/main.c b/ball_detect/main.c index e4c0b9a..9d448cb 100644 --- a/ball_detect/main.c +++ b/ball_detect/main.c @@ -82,18 +82,19 @@ void sendc(uint8_t ch) { ISR(USART_RX_vect) { PORTD ^= 1 << 3; - uint32_t modulo, position; - uint8_t read_char = UDR0, i, j; + uint32_t now = 0, small = 9999999, index = 0; + uint8_t read_char = UDR0, j, message = 0; if(read_char == my_address) { - for(j = 2; j >= 0; j--) { - modulo = vision_result[j]; - position = 1000000; - for(i = 0; i < 7; i++) { - sendc((modulo / position) % 10); - modulo %= position; - position /= 10; + for(j = 0; j < 3; j++) { + if(small > vision_result[j]) { + small = vision_result[j]; + now = vision_result[j]; + index = j; } } + message = (index << 6); + message |= now/(2 << 7); + sendc(message); } } diff --git a/ball_detect/main.map b/ball_detect/main.map index eae625a..9f80e2f 100644 --- a/ball_detect/main.map +++ b/ball_detect/main.map @@ -1,7 +1,5 @@ Archive member included because of file (symbol) -/usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_udivmodsi4.o) - main.o (__udivmodsi4) /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) /usr/lib/gcc/avr/4.8.2/../../../avr/lib/avr5/crtm328p.o (exit) /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) @@ -134,7 +132,7 @@ END GROUP .rela.plt *(.rela.plt) -.text 0x0000000000000000 0x50c +.text 0x0000000000000000 0x3d2 *(.vectors) .vectors 0x0000000000000000 0x68 /usr/lib/gcc/avr/4.8.2/../../../avr/lib/avr5/crtm328p.o 0x0000000000000000 __vectors @@ -214,77 +212,62 @@ END GROUP 0x00000000000000a2 __vector_10 0x00000000000000a2 __vector_16 0x00000000000000a2 __vector_20 - .text 0x00000000000000a6 0x3b8 main.o + .text 0x00000000000000a6 0x2c2 main.o 0x00000000000000a6 setup 0x000000000000011a sendc 0x0000000000000128 __vector_18 - 0x000000000000030c __vector_3 - .text 0x000000000000045e 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_udivmodsi4.o) - .text 0x000000000000045e 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) - .text 0x000000000000045e 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) - .text 0x000000000000045e 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) - 0x000000000000045e . = ALIGN (0x2) + 0x0000000000000216 __vector_3 + .text 0x0000000000000368 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) + .text 0x0000000000000368 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) + .text 0x0000000000000368 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) + 0x0000000000000368 . = ALIGN (0x2) *(.text.*) - .text.startup 0x000000000000045e 0x66 main.o - 0x000000000000045e main + .text.startup 0x0000000000000368 0x66 main.o + 0x0000000000000368 main .text.libgcc.mul - 0x00000000000004c4 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_udivmodsi4.o) + 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) .text.libgcc.div - 0x00000000000004c4 0x44 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_udivmodsi4.o) - 0x00000000000004c4 __udivmodsi4 - .text.libgcc 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_udivmodsi4.o) + 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) + .text.libgcc 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) .text.libgcc.prologue - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_udivmodsi4.o) + 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) .text.libgcc.builtins - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_udivmodsi4.o) + 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) .text.libgcc.fmul - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_udivmodsi4.o) + 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) .text.libgcc.fixed - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_udivmodsi4.o) + 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) .text.libgcc.mul - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) + 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) .text.libgcc.div - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) - .text.libgcc 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) + 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) + .text.libgcc 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) .text.libgcc.prologue - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) + 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) .text.libgcc.builtins - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) + 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) .text.libgcc.fmul - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) + 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) .text.libgcc.fixed - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) + 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) .text.libgcc.mul - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) + 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) .text.libgcc.div - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) - .text.libgcc 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) + 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) + .text.libgcc 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) .text.libgcc.prologue - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) + 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) .text.libgcc.builtins - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) + 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) .text.libgcc.fmul - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) + 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) .text.libgcc.fixed - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) - .text.libgcc.mul - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) - .text.libgcc.div - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) - .text.libgcc 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) - .text.libgcc.prologue - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) - .text.libgcc.builtins - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) - .text.libgcc.fmul - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) - .text.libgcc.fixed - 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) - 0x0000000000000508 . = ALIGN (0x2) + 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) + 0x00000000000003ce . = ALIGN (0x2) *(.fini9) - .fini9 0x0000000000000508 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) - 0x0000000000000508 exit - 0x0000000000000508 _exit + .fini9 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) + 0x00000000000003ce exit + 0x00000000000003ce _exit *(.fini9) *(.fini8) *(.fini8) @@ -303,17 +286,16 @@ END GROUP *(.fini1) *(.fini1) *(.fini0) - .fini0 0x0000000000000508 0x4 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) + .fini0 0x00000000000003ce 0x4 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) *(.fini0) - 0x000000000000050c _etext = . + 0x00000000000003d2 _etext = . -.data 0x0000000000800100 0x2 load address 0x000000000000050c +.data 0x0000000000800100 0x2 load address 0x00000000000003d2 0x0000000000800100 PROVIDE (__data_start, .) *(.data) .data 0x0000000000800100 0x0 /usr/lib/gcc/avr/4.8.2/../../../avr/lib/avr5/crtm328p.o .data 0x0000000000800100 0x1 main.o 0x0000000000800100 portb_history - .data 0x0000000000800101 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_udivmodsi4.o) .data 0x0000000000800101 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) .data 0x0000000000800101 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) .data 0x0000000000800101 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) @@ -331,7 +313,6 @@ END GROUP *(.bss) .bss 0x0000000000800102 0x0 /usr/lib/gcc/avr/4.8.2/../../../avr/lib/avr5/crtm328p.o .bss 0x0000000000800102 0x0 main.o - .bss 0x0000000000800102 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_udivmodsi4.o) .bss 0x0000000000800102 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) .bss 0x0000000000800102 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) .bss 0x0000000000800102 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) @@ -347,8 +328,8 @@ END GROUP 0x0000000000800131 ends_of_pulses 0x0000000000800141 changed_bits 0x0000000000800142 PROVIDE (__bss_end, .) - 0x000000000000050c __data_load_start = LOADADDR (.data) - 0x000000000000050e __data_load_end = (__data_load_start + SIZEOF (.data)) + 0x00000000000003d2 __data_load_start = LOADADDR (.data) + 0x00000000000003d4 __data_load_end = (__data_load_start + SIZEOF (.data)) .noinit 0x0000000000800142 0x0 0x0000000000800142 PROVIDE (__noinit_start, .) @@ -376,15 +357,15 @@ END GROUP .user_signatures *(.user_signatures*) -.stab 0x0000000000000000 0x10bc +.stab 0x0000000000000000 0x102c *(.stab) .stab 0x0000000000000000 0x6cc /usr/lib/gcc/avr/4.8.2/../../../avr/lib/avr5/crtm328p.o - .stab 0x00000000000006cc 0x9f0 main.o - 0x9fc (size before relaxing) + .stab 0x00000000000006cc 0x960 main.o + 0x96c (size before relaxing) -.stabstr 0x0000000000000000 0xe9a +.stabstr 0x0000000000000000 0xeb2 *(.stabstr) - .stabstr 0x0000000000000000 0xe9a /usr/lib/gcc/avr/4.8.2/../../../avr/lib/avr5/crtm328p.o + .stabstr 0x0000000000000000 0xeb2 /usr/lib/gcc/avr/4.8.2/../../../avr/lib/avr5/crtm328p.o .stab.excl *(.stab.excl) From a21ba8c299adfdd245dfda4f4da9ce1b9805d559 Mon Sep 17 00:00:00 2001 From: Meli Date: Sat, 21 Feb 2015 13:28:46 +0100 Subject: [PATCH 8/8] removing blah files Signed-off-by: Martin Melichercik --- ball_detect/main.map | 436 ------------------------------------------- 1 file changed, 436 deletions(-) delete mode 100644 ball_detect/main.map diff --git a/ball_detect/main.map b/ball_detect/main.map deleted file mode 100644 index 9f80e2f..0000000 --- a/ball_detect/main.map +++ /dev/null @@ -1,436 +0,0 @@ -Archive member included because of file (symbol) - -/usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) - /usr/lib/gcc/avr/4.8.2/../../../avr/lib/avr5/crtm328p.o (exit) -/usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) - main.o (__do_copy_data) -/usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) - main.o (__do_clear_bss) - -Allocating common symbols -Common symbol size file - -vision_result 0xc main.o -my_address 0x1 main.o -starts_of_pulses 0x10 main.o -ct 0x1 main.o -pinstate 0x1 main.o -lenghts_of_pulses 0x10 main.o -ends_of_pulses 0x10 main.o -changed_bits 0x1 main.o - -Memory Configuration - -Name Origin Length Attributes -text 0x0000000000000000 0x0000000000020000 xr -data 0x0000000000800060 0x000000000000ffa0 rw !x -eeprom 0x0000000000810000 0x0000000000010000 rw !x -fuse 0x0000000000820000 0x0000000000000400 rw !x -lock 0x0000000000830000 0x0000000000000400 rw !x -signature 0x0000000000840000 0x0000000000000400 rw !x -user_signatures 0x0000000000850000 0x0000000000000400 rw !x -*default* 0x0000000000000000 0xffffffffffffffff - -Linker script and memory map - -Address of section .data set to 0x800100 -LOAD /usr/lib/gcc/avr/4.8.2/../../../avr/lib/avr5/crtm328p.o -LOAD main.o -START GROUP -LOAD /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a -LOAD /usr/lib/gcc/avr/4.8.2/../../../avr/lib/avr5/libm.a -LOAD /usr/lib/gcc/avr/4.8.2/../../../avr/lib/avr5/libc.a -END GROUP - -.hash - *(.hash) - -.dynsym - *(.dynsym) - -.dynstr - *(.dynstr) - -.gnu.version - *(.gnu.version) - -.gnu.version_d - *(.gnu.version_d) - -.gnu.version_r - *(.gnu.version_r) - -.rel.init - *(.rel.init) - -.rela.init - *(.rela.init) - -.rel.text - *(.rel.text) - *(.rel.text.*) - *(.rel.gnu.linkonce.t*) - -.rela.text - *(.rela.text) - *(.rela.text.*) - *(.rela.gnu.linkonce.t*) - -.rel.fini - *(.rel.fini) - -.rela.fini - *(.rela.fini) - -.rel.rodata - *(.rel.rodata) - *(.rel.rodata.*) - *(.rel.gnu.linkonce.r*) - -.rela.rodata - *(.rela.rodata) - *(.rela.rodata.*) - *(.rela.gnu.linkonce.r*) - -.rel.data - *(.rel.data) - *(.rel.data.*) - *(.rel.gnu.linkonce.d*) - -.rela.data - *(.rela.data) - *(.rela.data.*) - *(.rela.gnu.linkonce.d*) - -.rel.ctors - *(.rel.ctors) - -.rela.ctors - *(.rela.ctors) - -.rel.dtors - *(.rel.dtors) - -.rela.dtors - *(.rela.dtors) - -.rel.got - *(.rel.got) - -.rela.got - *(.rela.got) - -.rel.bss - *(.rel.bss) - -.rela.bss - *(.rela.bss) - -.rel.plt - *(.rel.plt) - -.rela.plt - *(.rela.plt) - -.text 0x0000000000000000 0x3d2 - *(.vectors) - .vectors 0x0000000000000000 0x68 /usr/lib/gcc/avr/4.8.2/../../../avr/lib/avr5/crtm328p.o - 0x0000000000000000 __vectors - 0x0000000000000000 __vector_default - *(.vectors) - *(.progmem.gcc*) - *(.progmem*) - 0x0000000000000068 . = ALIGN (0x2) - 0x0000000000000068 __trampolines_start = . - *(.trampolines) - .trampolines 0x0000000000000068 0x0 linker stubs - *(.trampolines*) - 0x0000000000000068 __trampolines_end = . - *(.jumptables) - *(.jumptables*) - *(.lowtext) - *(.lowtext*) - 0x0000000000000068 __ctors_start = . - *(.ctors) - 0x0000000000000068 __ctors_end = . - 0x0000000000000068 __dtors_start = . - *(.dtors) - 0x0000000000000068 __dtors_end = . - SORT(*)(.ctors) - SORT(*)(.dtors) - *(.init0) - .init0 0x0000000000000068 0x0 /usr/lib/gcc/avr/4.8.2/../../../avr/lib/avr5/crtm328p.o - 0x0000000000000068 __init - *(.init0) - *(.init1) - *(.init1) - *(.init2) - .init2 0x0000000000000068 0xc /usr/lib/gcc/avr/4.8.2/../../../avr/lib/avr5/crtm328p.o - *(.init2) - *(.init3) - *(.init3) - *(.init4) - .init4 0x0000000000000074 0x16 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) - 0x0000000000000074 __do_copy_data - .init4 0x000000000000008a 0x10 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) - 0x000000000000008a __do_clear_bss - *(.init4) - *(.init5) - *(.init5) - *(.init6) - *(.init6) - *(.init7) - *(.init7) - *(.init8) - *(.init8) - *(.init9) - .init9 0x000000000000009a 0x8 /usr/lib/gcc/avr/4.8.2/../../../avr/lib/avr5/crtm328p.o - *(.init9) - *(.text) - .text 0x00000000000000a2 0x4 /usr/lib/gcc/avr/4.8.2/../../../avr/lib/avr5/crtm328p.o - 0x00000000000000a2 __vector_22 - 0x00000000000000a2 __vector_1 - 0x00000000000000a2 __vector_24 - 0x00000000000000a2 __vector_12 - 0x00000000000000a2 __bad_interrupt - 0x00000000000000a2 __vector_6 - 0x00000000000000a2 __vector_23 - 0x00000000000000a2 __vector_25 - 0x00000000000000a2 __vector_11 - 0x00000000000000a2 __vector_13 - 0x00000000000000a2 __vector_17 - 0x00000000000000a2 __vector_19 - 0x00000000000000a2 __vector_7 - 0x00000000000000a2 __vector_5 - 0x00000000000000a2 __vector_4 - 0x00000000000000a2 __vector_9 - 0x00000000000000a2 __vector_2 - 0x00000000000000a2 __vector_21 - 0x00000000000000a2 __vector_15 - 0x00000000000000a2 __vector_8 - 0x00000000000000a2 __vector_14 - 0x00000000000000a2 __vector_10 - 0x00000000000000a2 __vector_16 - 0x00000000000000a2 __vector_20 - .text 0x00000000000000a6 0x2c2 main.o - 0x00000000000000a6 setup - 0x000000000000011a sendc - 0x0000000000000128 __vector_18 - 0x0000000000000216 __vector_3 - .text 0x0000000000000368 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) - .text 0x0000000000000368 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) - .text 0x0000000000000368 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) - 0x0000000000000368 . = ALIGN (0x2) - *(.text.*) - .text.startup 0x0000000000000368 0x66 main.o - 0x0000000000000368 main - .text.libgcc.mul - 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) - .text.libgcc.div - 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) - .text.libgcc 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) - .text.libgcc.prologue - 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) - .text.libgcc.builtins - 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) - .text.libgcc.fmul - 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) - .text.libgcc.fixed - 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) - .text.libgcc.mul - 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) - .text.libgcc.div - 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) - .text.libgcc 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) - .text.libgcc.prologue - 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) - .text.libgcc.builtins - 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) - .text.libgcc.fmul - 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) - .text.libgcc.fixed - 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) - .text.libgcc.mul - 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) - .text.libgcc.div - 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) - .text.libgcc 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) - .text.libgcc.prologue - 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) - .text.libgcc.builtins - 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) - .text.libgcc.fmul - 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) - .text.libgcc.fixed - 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) - 0x00000000000003ce . = ALIGN (0x2) - *(.fini9) - .fini9 0x00000000000003ce 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) - 0x00000000000003ce exit - 0x00000000000003ce _exit - *(.fini9) - *(.fini8) - *(.fini8) - *(.fini7) - *(.fini7) - *(.fini6) - *(.fini6) - *(.fini5) - *(.fini5) - *(.fini4) - *(.fini4) - *(.fini3) - *(.fini3) - *(.fini2) - *(.fini2) - *(.fini1) - *(.fini1) - *(.fini0) - .fini0 0x00000000000003ce 0x4 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) - *(.fini0) - 0x00000000000003d2 _etext = . - -.data 0x0000000000800100 0x2 load address 0x00000000000003d2 - 0x0000000000800100 PROVIDE (__data_start, .) - *(.data) - .data 0x0000000000800100 0x0 /usr/lib/gcc/avr/4.8.2/../../../avr/lib/avr5/crtm328p.o - .data 0x0000000000800100 0x1 main.o - 0x0000000000800100 portb_history - .data 0x0000000000800101 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) - .data 0x0000000000800101 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) - .data 0x0000000000800101 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) - *(.data*) - *(.rodata) - *(.rodata*) - *(.gnu.linkonce.d*) - 0x0000000000800102 . = ALIGN (0x2) - *fill* 0x0000000000800101 0x1 - 0x0000000000800102 _edata = . - 0x0000000000800102 PROVIDE (__data_end, .) - -.bss 0x0000000000800102 0x40 - 0x0000000000800102 PROVIDE (__bss_start, .) - *(.bss) - .bss 0x0000000000800102 0x0 /usr/lib/gcc/avr/4.8.2/../../../avr/lib/avr5/crtm328p.o - .bss 0x0000000000800102 0x0 main.o - .bss 0x0000000000800102 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_exit.o) - .bss 0x0000000000800102 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_copy_data.o) - .bss 0x0000000000800102 0x0 /usr/lib/gcc/avr/4.8.2/avr5/libgcc.a(_clear_bss.o) - *(.bss*) - *(COMMON) - COMMON 0x0000000000800102 0x40 main.o - 0x0000000000800102 vision_result - 0x000000000080010e my_address - 0x000000000080010f starts_of_pulses - 0x000000000080011f ct - 0x0000000000800120 pinstate - 0x0000000000800121 lenghts_of_pulses - 0x0000000000800131 ends_of_pulses - 0x0000000000800141 changed_bits - 0x0000000000800142 PROVIDE (__bss_end, .) - 0x00000000000003d2 __data_load_start = LOADADDR (.data) - 0x00000000000003d4 __data_load_end = (__data_load_start + SIZEOF (.data)) - -.noinit 0x0000000000800142 0x0 - 0x0000000000800142 PROVIDE (__noinit_start, .) - *(.noinit*) - 0x0000000000800142 PROVIDE (__noinit_end, .) - 0x0000000000800142 _end = . - 0x0000000000800142 PROVIDE (__heap_start, .) - -.eeprom 0x0000000000810000 0x0 - *(.eeprom*) - 0x0000000000810000 __eeprom_end = . - -.fuse - *(.fuse) - *(.lfuse) - *(.hfuse) - *(.efuse) - -.lock - *(.lock*) - -.signature - *(.signature*) - -.user_signatures - *(.user_signatures*) - -.stab 0x0000000000000000 0x102c - *(.stab) - .stab 0x0000000000000000 0x6cc /usr/lib/gcc/avr/4.8.2/../../../avr/lib/avr5/crtm328p.o - .stab 0x00000000000006cc 0x960 main.o - 0x96c (size before relaxing) - -.stabstr 0x0000000000000000 0xeb2 - *(.stabstr) - .stabstr 0x0000000000000000 0xeb2 /usr/lib/gcc/avr/4.8.2/../../../avr/lib/avr5/crtm328p.o - -.stab.excl - *(.stab.excl) - -.stab.exclstr - *(.stab.exclstr) - -.stab.index - *(.stab.index) - -.stab.indexstr - *(.stab.indexstr) - -.comment 0x0000000000000000 0x11 - *(.comment) - .comment 0x0000000000000000 0x11 main.o - 0x12 (size before relaxing) - -.debug - *(.debug) - -.line - *(.line) - -.debug_srcinfo - *(.debug_srcinfo) - -.debug_sfnames - *(.debug_sfnames) - -.debug_aranges - *(.debug_aranges) - -.debug_pubnames - *(.debug_pubnames) - -.debug_info - *(.debug_info) - *(.gnu.linkonce.wi.*) - -.debug_abbrev - *(.debug_abbrev) - -.debug_line - *(.debug_line) - -.debug_frame - *(.debug_frame) - -.debug_str - *(.debug_str) - -.debug_loc - *(.debug_loc) - -.debug_macinfo - *(.debug_macinfo) - -.debug_pubtypes - *(.debug_pubtypes) - -.debug_ranges - *(.debug_ranges) - -.debug_macro - *(.debug_macro) -OUTPUT(main.out elf32-avr) -LOAD linker stubs