![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
vz_protocol.cpp@85:b6f2dc1d0f4f, 2015-01-04 (annotated)
- Committer:
- klauss
- Date:
- Sun Jan 04 13:56:08 2015 +0000
- Revision:
- 85:b6f2dc1d0f4f
- Parent:
- 81:3656f00ab3db
- Child:
- 86:bf7b0d4c3232
versao de validacao do eth
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
klauss | 0:4d17cd9c8f9d | 1 | #include "vz_protocol.h" |
klauss | 72:895ca792c647 | 2 | |
klauss | 78:1353744f01e1 | 3 | uint32_t pkg_ckserr = 0; |
klauss | 78:1353744f01e1 | 4 | uint32_t pkg_zero = 0; |
klauss | 78:1353744f01e1 | 5 | uint32_t pkg_cksok = 0; |
klauss | 81:3656f00ab3db | 6 | int begin = 0; |
klauss | 81:3656f00ab3db | 7 | int end = 0; |
klauss | 81:3656f00ab3db | 8 | |
klauss | 81:3656f00ab3db | 9 | void init_ranges( void ){ |
klauss | 81:3656f00ab3db | 10 | FILE * begin_ext = fopen( "/qspi/minext.txt", "r" ); |
klauss | 81:3656f00ab3db | 11 | if( begin_ext == NULL ){ |
klauss | 81:3656f00ab3db | 12 | if( debug_out_of_range ) debug_msg("Failed to open /qspi/minext.txt" ); |
klauss | 81:3656f00ab3db | 13 | begin = MIN_EXT; |
klauss | 81:3656f00ab3db | 14 | }else{ |
klauss | 81:3656f00ab3db | 15 | char inner_tmp[ 20 ]; |
klauss | 81:3656f00ab3db | 16 | if( fread( (void *)inner_tmp, 1, 20, begin_ext ) > 0 ){ |
klauss | 81:3656f00ab3db | 17 | begin = atoi( inner_tmp ); |
klauss | 81:3656f00ab3db | 18 | if( debug_out_of_range ) debug_msg("Ext Min %d", begin ); |
klauss | 81:3656f00ab3db | 19 | }else{ |
klauss | 81:3656f00ab3db | 20 | if( debug_out_of_range ) debug_msg("Failed to read /qspi/minext.txt" ); |
klauss | 81:3656f00ab3db | 21 | begin = MIN_EXT; |
klauss | 81:3656f00ab3db | 22 | } |
klauss | 81:3656f00ab3db | 23 | } |
klauss | 81:3656f00ab3db | 24 | fclose( begin_ext ); |
klauss | 81:3656f00ab3db | 25 | |
klauss | 81:3656f00ab3db | 26 | FILE * end_ext = fopen( "/qspi/maxext.txt", "r" ); |
klauss | 81:3656f00ab3db | 27 | if( end_ext == NULL ){ |
klauss | 81:3656f00ab3db | 28 | if( debug_out_of_range ) debug_msg("Failed to open /qspi/maxext.txt" ); |
klauss | 81:3656f00ab3db | 29 | end = MAX_EXT; |
klauss | 81:3656f00ab3db | 30 | }else{ |
klauss | 81:3656f00ab3db | 31 | char inner_tmp[ 20 ]; |
klauss | 81:3656f00ab3db | 32 | if( fread( (void *)inner_tmp, 1, 20, end_ext ) > 0 ){ |
klauss | 81:3656f00ab3db | 33 | end = atoi( inner_tmp ); |
klauss | 81:3656f00ab3db | 34 | if( debug_out_of_range ) debug_msg("Ext Min %d", end ); |
klauss | 81:3656f00ab3db | 35 | }else{ |
klauss | 81:3656f00ab3db | 36 | if( debug_out_of_range ) debug_msg("Failed to read /qspi/maxext.txt" ); |
klauss | 81:3656f00ab3db | 37 | begin = MAX_EXT; |
klauss | 81:3656f00ab3db | 38 | } |
klauss | 81:3656f00ab3db | 39 | } |
klauss | 81:3656f00ab3db | 40 | fclose( begin_ext ); |
klauss | 81:3656f00ab3db | 41 | } |
Cola | 20:2d6ab23956e5 | 42 | |
klauss | 34:f19d9735428e | 43 | uint8_t * __parse_vz_pkg__( int * ext, int * port, volatile uint8_t * type, uint8_t * cb_buffer ){ |
klauss | 0:4d17cd9c8f9d | 44 | uint8_t p_lsb, p_msb; |
klauss | 0:4d17cd9c8f9d | 45 | uint8_t e_lsb, e_msb; |
klauss | 0:4d17cd9c8f9d | 46 | |
klauss | 81:3656f00ab3db | 47 | if( ( ext && port && type && cb_buffer ) == NULL ) return( NULL ); |
klauss | 58:af7e8788f106 | 48 | |
klauss | 63:0d95da692bb4 | 49 | if( cb_buffer[ 6 ] == __FLOOD__ ){ |
klauss | 85:b6f2dc1d0f4f | 50 | debug_msg( "::Received flood from %d::", ( cb_buffer[ 0 ] << 8 | cb_buffer[ 1 ] ) ); |
klauss | 85:b6f2dc1d0f4f | 51 | |
klauss | 63:0d95da692bb4 | 52 | flood_counter++; |
Cola | 21:0bd688722e81 | 53 | static uint8_t flood_cnt = 0; |
Cola | 21:0bd688722e81 | 54 | static uint8_t first_run_flag = 0; |
Cola | 21:0bd688722e81 | 55 | static Timer t; |
Cola | 21:0bd688722e81 | 56 | if (first_run_flag == 0) { |
Cola | 21:0bd688722e81 | 57 | flood_cnt = cb_buffer[0]; |
Cola | 21:0bd688722e81 | 58 | first_run_flag++; |
Cola | 21:0bd688722e81 | 59 | t.start(); |
Cola | 21:0bd688722e81 | 60 | } else { |
Cola | 21:0bd688722e81 | 61 | if (cb_buffer[0] == 0x00){ |
Cola | 21:0bd688722e81 | 62 | pc.printf("%d", t.read_us()); |
klauss | 48:195c97f12e8e | 63 | if( tcp_session ){ |
klauss | 48:195c97f12e8e | 64 | char tmp[ 16 ]; |
klauss | 48:195c97f12e8e | 65 | sprintf( tmp, "%d", t.read_us() ); |
klauss | 48:195c97f12e8e | 66 | tcp_client.send_all( tmp, strlen( tmp ) ); |
Cola | 21:0bd688722e81 | 67 | } |
klauss | 48:195c97f12e8e | 68 | } |
Cola | 21:0bd688722e81 | 69 | flood_cnt++; |
Cola | 21:0bd688722e81 | 70 | while (flood_cnt != cb_buffer[0]) { |
Cola | 21:0bd688722e81 | 71 | pc.printf("0"); |
Cola | 21:0bd688722e81 | 72 | flood_cnt++; |
klauss | 48:195c97f12e8e | 73 | if( tcp_session ){ |
klauss | 48:195c97f12e8e | 74 | tcp_client.send_all( "0", strlen( "0" ) ); |
klauss | 48:195c97f12e8e | 75 | } |
Cola | 21:0bd688722e81 | 76 | } |
Cola | 21:0bd688722e81 | 77 | int i; |
Cola | 21:0bd688722e81 | 78 | int ok = 1; |
Cola | 21:0bd688722e81 | 79 | uint8_t cmp; |
Cola | 21:0bd688722e81 | 80 | for (i=0, cmp=cb_buffer[0]; (i<300) && (ok==1); i++, cmp++) { |
Cola | 21:0bd688722e81 | 81 | if (i != 6) { |
Cola | 21:0bd688722e81 | 82 | if (cb_buffer[i] != cmp) ok = 0; |
Cola | 21:0bd688722e81 | 83 | } |
Cola | 21:0bd688722e81 | 84 | } |
klauss | 48:195c97f12e8e | 85 | if( ok ){ |
Cola | 21:0bd688722e81 | 86 | pc.printf("+"); |
klauss | 48:195c97f12e8e | 87 | if( tcp_session ){ |
klauss | 48:195c97f12e8e | 88 | tcp_client.send_all( "+", strlen( "+" ) ); |
klauss | 48:195c97f12e8e | 89 | } |
klauss | 48:195c97f12e8e | 90 | }else{ |
Cola | 21:0bd688722e81 | 91 | pc.printf("%02x",cb_buffer[0] ); |
Cola | 21:0bd688722e81 | 92 | pc.printf("#"); |
Cola | 21:0bd688722e81 | 93 | pc.printf("\n\r"); |
klauss | 48:195c97f12e8e | 94 | if( tcp_session ){ |
klauss | 48:195c97f12e8e | 95 | char tmp[ 16 ]; |
klauss | 48:195c97f12e8e | 96 | sprintf( tmp, "%02x#\n\r", cb_buffer[ 0 ] ); |
klauss | 48:195c97f12e8e | 97 | tcp_client.send_all( tmp, strlen( tmp ) ); |
klauss | 48:195c97f12e8e | 98 | } |
klauss | 48:195c97f12e8e | 99 | for( int i = 0; i < 300 ; i++ ){ |
klauss | 48:195c97f12e8e | 100 | pc.printf("%x", cb_buffer[ i ]); |
klauss | 48:195c97f12e8e | 101 | if( tcp_session ){ |
klauss | 48:195c97f12e8e | 102 | char tmp[ 16 ]; |
klauss | 48:195c97f12e8e | 103 | sprintf( tmp, "%x", cb_buffer[ i ] ); |
klauss | 48:195c97f12e8e | 104 | tcp_client.send_all( tmp, strlen( tmp ) ); |
klauss | 48:195c97f12e8e | 105 | } |
klauss | 48:195c97f12e8e | 106 | } |
Cola | 21:0bd688722e81 | 107 | } |
Cola | 21:0bd688722e81 | 108 | } |
Cola | 21:0bd688722e81 | 109 | return( NULL ); |
Cola | 21:0bd688722e81 | 110 | } |
Cola | 21:0bd688722e81 | 111 | |
klauss | 0:4d17cd9c8f9d | 112 | uint16_t cc = ( uint16_t )cb_buffer[ 4 ] << 8 | cb_buffer[ 5 ]; |
klauss | 0:4d17cd9c8f9d | 113 | |
klauss | 78:1353744f01e1 | 114 | uint16_t cc_calculated = __checksum__( cb_buffer, __CB_BUFFER_SIZE__ ); |
klauss | 78:1353744f01e1 | 115 | |
klauss | 78:1353744f01e1 | 116 | if( cc != cc_calculated ){ |
klauss | 78:1353744f01e1 | 117 | if( debug_cks_err ) send_msg( "Received PKG, but -- CKS ERROR: %d ( %d )", cc_calculated, cc ); |
klauss | 78:1353744f01e1 | 118 | |
klauss | 78:1353744f01e1 | 119 | if( cc_calculated == 30975 && cc == 0 ){ |
klauss | 78:1353744f01e1 | 120 | pkg_zero++; |
klauss | 78:1353744f01e1 | 121 | }else{ |
Cola | 20:2d6ab23956e5 | 122 | pkg_ckserr++; |
klauss | 78:1353744f01e1 | 123 | } |
klauss | 78:1353744f01e1 | 124 | return( NULL ); |
klauss | 0:4d17cd9c8f9d | 125 | }else{ |
Cola | 20:2d6ab23956e5 | 126 | pkg_cksok++; |
klauss | 0:4d17cd9c8f9d | 127 | e_msb = cb_buffer[ 0 ]; |
klauss | 0:4d17cd9c8f9d | 128 | e_lsb = cb_buffer[ 1 ]; |
klauss | 0:4d17cd9c8f9d | 129 | *ext = e_msb << 8 | e_lsb; |
klauss | 79:9bc12aa305a9 | 130 | |
klauss | 81:3656f00ab3db | 131 | //restriçao de controle para cbx malucos |
klauss | 81:3656f00ab3db | 132 | if( *ext < begin || *ext > end ){ |
klauss | 81:3656f00ab3db | 133 | if( debug_out_of_range ) send_msg("Trying from %d", *ext ); |
klauss | 79:9bc12aa305a9 | 134 | out_of_range++; |
klauss | 79:9bc12aa305a9 | 135 | return( NULL ); |
klauss | 79:9bc12aa305a9 | 136 | } |
klauss | 81:3656f00ab3db | 137 | |
klauss | 0:4d17cd9c8f9d | 138 | p_msb = cb_buffer[ 2 ]; |
klauss | 0:4d17cd9c8f9d | 139 | p_lsb = cb_buffer[ 3 ]; |
klauss | 0:4d17cd9c8f9d | 140 | *port = p_msb << 8 | p_lsb; |
klauss | 0:4d17cd9c8f9d | 141 | |
klauss | 0:4d17cd9c8f9d | 142 | *type = cb_buffer[ 6 ]; |
klauss | 0:4d17cd9c8f9d | 143 | |
klauss | 0:4d17cd9c8f9d | 144 | return( cb_buffer + __VZ_HEADER_OFFSET__ ); |
klauss | 0:4d17cd9c8f9d | 145 | } |
klauss | 0:4d17cd9c8f9d | 146 | } |
klauss | 0:4d17cd9c8f9d | 147 | uint8_t * __build_cb_package__( int ext, int port, uint8_t type, char * cb_buffer, uint8_t seq_num, int length, uint8_t * pkg ){ |
klauss | 0:4d17cd9c8f9d | 148 | pkg[ 0 ] = ( uint8_t )( ( ext & 0xFF00 ) >> 8 ); |
klauss | 0:4d17cd9c8f9d | 149 | pkg[ 1 ] = ( uint8_t )( ext & 0x00FF ); |
klauss | 0:4d17cd9c8f9d | 150 | pkg[ 2 ] = ( uint8_t )( ( port & 0xFF00 ) >> 8 ); |
klauss | 0:4d17cd9c8f9d | 151 | pkg[ 3 ] = ( uint8_t )( port & 0x00FF ); |
klauss | 0:4d17cd9c8f9d | 152 | |
klauss | 0:4d17cd9c8f9d | 153 | pkg[ 6 ] = type; |
klauss | 0:4d17cd9c8f9d | 154 | |
klauss | 0:4d17cd9c8f9d | 155 | size_t fill = 0x00; |
klauss | 0:4d17cd9c8f9d | 156 | |
klauss | 0:4d17cd9c8f9d | 157 | if( type == __AUDIO__ ){ |
klauss | 0:4d17cd9c8f9d | 158 | for( register int i = __VZ_HEADER_OFFSET__; i < length + __VZ_HEADER_OFFSET__; i++ ) |
klauss | 0:4d17cd9c8f9d | 159 | pkg[ i ] = ( uint8_t )cb_buffer[ i - __VZ_HEADER_OFFSET__ ]; |
klauss | 0:4d17cd9c8f9d | 160 | fill = length + __VZ_HEADER_OFFSET__; |
klauss | 0:4d17cd9c8f9d | 161 | }else if( type == __INVITE__ ){ |
klauss | 0:4d17cd9c8f9d | 162 | pkg[ 7 ] = seq_num; |
klauss | 0:4d17cd9c8f9d | 163 | //__print_clock__( pkg + 8 ); |
klauss | 0:4d17cd9c8f9d | 164 | pkg[ __TIMESLICE_PLACE__ ] = cb_buffer[ __TIMESLICE_PLACE__ ]; |
klauss | 0:4d17cd9c8f9d | 165 | fill = __TIMESLICE_PLACE__ + 1; |
klauss | 0:4d17cd9c8f9d | 166 | }else if( type == __REGISTRY__ || type == __BOOT__ ){ |
klauss | 0:4d17cd9c8f9d | 167 | pkg[ 7 ] = seq_num; |
klauss | 14:22a35f575502 | 168 | //__print_clock__( pkg + 8 ); |
klauss | 0:4d17cd9c8f9d | 169 | fill = __VZ_HEADER_OFFSET__ + __CLOCK_SYNC_SIZE__ + __SEQ_NUM_SIZE__; |
klauss | 70:714c33487aae | 170 | }else if( type == __CB_BYE__ ){ |
klauss | 0:4d17cd9c8f9d | 171 | pkg[ 7 ] = seq_num; |
klauss | 0:4d17cd9c8f9d | 172 | //__print_clock__( pkg + 8 ); |
klauss | 0:4d17cd9c8f9d | 173 | pkg[ __TIMESLICE_PLACE__ ] = cb_buffer[ __TIMESLICE_PLACE__ ]; |
klauss | 0:4d17cd9c8f9d | 174 | fill = __TIMESLICE_PLACE__ + 1; |
klauss | 67:cdedc64d9921 | 175 | }else if( type == __PROMPT__ ){ |
Cola | 21:0bd688722e81 | 176 | //__print_clock__( pkg + 8 ); |
Cola | 21:0bd688722e81 | 177 | xmemcpy((pkg+7), (uint8_t*)cb_buffer, 293); |
klauss | 67:cdedc64d9921 | 178 | //FIXME isso forca qualquer cmd ter < 100 chars |
Cola | 21:0bd688722e81 | 179 | fill = 100; |
klauss | 67:cdedc64d9921 | 180 | }else if( type == __TELEMETRY__ ){ |
klauss | 4:de46f0d9b14d | 181 | pkg[ 7 ] = seq_num; |
klauss | 14:22a35f575502 | 182 | //__print_clock__( pkg + 8 ); |
klauss | 4:de46f0d9b14d | 183 | pkg[ __TIMESLICE_PLACE__ ] = cb_buffer[ __TIMESLICE_PLACE__ ]; |
klauss | 4:de46f0d9b14d | 184 | fill = __TIMESLICE_PLACE__ + 1; |
klauss | 67:cdedc64d9921 | 185 | }else if( type == __BOOTLOADER_CBX__ ){ |
klauss | 67:cdedc64d9921 | 186 | pkg[ 7 ] = seq_num; |
klauss | 67:cdedc64d9921 | 187 | //__print_clock__( pkg + 8 ); |
klauss | 67:cdedc64d9921 | 188 | fill = __VZ_HEADER_OFFSET__ + __CLOCK_SYNC_SIZE__ + __SEQ_NUM_SIZE__; |
klauss | 67:cdedc64d9921 | 189 | }else{ |
klauss | 67:cdedc64d9921 | 190 | fill = __VZ_HEADER_OFFSET__; |
klauss | 0:4d17cd9c8f9d | 191 | } |
klauss | 0:4d17cd9c8f9d | 192 | |
klauss | 67:cdedc64d9921 | 193 | for( register uint16_t i = fill; i < __CB_BUFFER_SIZE__; i++ ) pkg[ i ] = 0x00; |
klauss | 0:4d17cd9c8f9d | 194 | |
klauss | 0:4d17cd9c8f9d | 195 | uint16_t cc = __checksum__( pkg, 300 ); |
klauss | 0:4d17cd9c8f9d | 196 | pkg[ 4 ] =( uint8_t )( ( cc & 0xFF00 ) >> 8) ; |
klauss | 0:4d17cd9c8f9d | 197 | pkg[ 5 ] =( uint8_t )( cc & 0x00FF ); |
klauss | 0:4d17cd9c8f9d | 198 | |
klauss | 0:4d17cd9c8f9d | 199 | return pkg; |
klauss | 0:4d17cd9c8f9d | 200 | } |
klauss | 0:4d17cd9c8f9d | 201 | |
klauss | 0:4d17cd9c8f9d | 202 | uint16_t __checksum__( uint8_t * buffer, size_t length ){ |
klauss | 70:714c33487aae | 203 | if( !buffer ) return( 0 ); |
klauss | 0:4d17cd9c8f9d | 204 | uint16_t cc = 0x00; |
klauss | 0:4d17cd9c8f9d | 205 | buffer[ 4 ] = buffer[ 5 ] = 0x5a; |
klauss | 0:4d17cd9c8f9d | 206 | for( register int i = 0; i < length; i++ ){ |
klauss | 0:4d17cd9c8f9d | 207 | cc += buffer[ i ]; |
klauss | 0:4d17cd9c8f9d | 208 | if( cc & BIT15 ){ |
klauss | 0:4d17cd9c8f9d | 209 | cc <<= 1; |
klauss | 0:4d17cd9c8f9d | 210 | cc |= BIT0; |
klauss | 0:4d17cd9c8f9d | 211 | }else{ cc <<= BIT0; } |
klauss | 0:4d17cd9c8f9d | 212 | } |
klauss | 0:4d17cd9c8f9d | 213 | cc ^= 0xffff; |
klauss | 0:4d17cd9c8f9d | 214 | return cc; |
klauss | 0:4d17cd9c8f9d | 215 | } |
klauss | 0:4d17cd9c8f9d | 216 | |
klauss | 0:4d17cd9c8f9d | 217 | void __print_clock__( uint8_t * buffer ){ |
klauss | 70:714c33487aae | 218 | if( !buffer ) return; |
klauss | 70:714c33487aae | 219 | |
klauss | 14:22a35f575502 | 220 | //int ntp_result = ntp.setTime( "200.192.232.8", 123, 3 ); |
klauss | 70:714c33487aae | 221 | //led2 = !led2; |
klauss | 0:4d17cd9c8f9d | 222 | struct tm ts; |
klauss | 46:a670f187a704 | 223 | //int ntp_result = ntp.setTime( "200.192.232.8" ); |
klauss | 63:0d95da692bb4 | 224 | //int ntp_result = ntp.setTime( "200.192.232.8", 123, 3 ); |
klauss | 63:0d95da692bb4 | 225 | //if( ntp_result == 0 ){ |
klauss | 14:22a35f575502 | 226 | time_t seconds; |
klauss | 14:22a35f575502 | 227 | // seconds = time(NULL); |
klauss | 14:22a35f575502 | 228 | time( &seconds ); |
klauss | 14:22a35f575502 | 229 | ts = *localtime( &seconds ); |
klauss | 63:0d95da692bb4 | 230 | //} |
klauss | 0:4d17cd9c8f9d | 231 | |
klauss | 0:4d17cd9c8f9d | 232 | int ano = ts.tm_year + 1900; |
klauss | 0:4d17cd9c8f9d | 233 | int mes = ts.tm_mon + 1; |
klauss | 0:4d17cd9c8f9d | 234 | int dia = ts.tm_mday; |
klauss | 0:4d17cd9c8f9d | 235 | int hora = ts.tm_hour - 3; |
klauss | 0:4d17cd9c8f9d | 236 | int min = ts.tm_min; |
klauss | 0:4d17cd9c8f9d | 237 | int sec = ts.tm_sec; |
klauss | 0:4d17cd9c8f9d | 238 | |
klauss | 0:4d17cd9c8f9d | 239 | buffer[ 0 ] = ano / 1000; |
klauss | 0:4d17cd9c8f9d | 240 | ano -= buffer[ 0 ] * 1000; |
klauss | 0:4d17cd9c8f9d | 241 | buffer[ 1 ] = ano / 100; |
klauss | 0:4d17cd9c8f9d | 242 | ano -= buffer[ 1 ]* 100; |
klauss | 0:4d17cd9c8f9d | 243 | buffer[ 2 ] = ano / 10; |
klauss | 0:4d17cd9c8f9d | 244 | ano -= buffer[ 2 ] * 10; |
klauss | 0:4d17cd9c8f9d | 245 | buffer[ 3 ] = ano; |
klauss | 0:4d17cd9c8f9d | 246 | buffer[ 4 ] = mes / 10; |
klauss | 0:4d17cd9c8f9d | 247 | buffer[ 5 ] = mes % 10; |
klauss | 0:4d17cd9c8f9d | 248 | buffer[ 6 ] = dia / 10; |
klauss | 0:4d17cd9c8f9d | 249 | buffer[ 7 ] = dia % 10; |
klauss | 0:4d17cd9c8f9d | 250 | buffer[ 8 ] = hora / 10; |
klauss | 0:4d17cd9c8f9d | 251 | buffer[ 9 ] = hora % 10; |
klauss | 0:4d17cd9c8f9d | 252 | buffer[ 10 ] = min / 10; |
klauss | 0:4d17cd9c8f9d | 253 | buffer[ 11 ] = min % 10; |
klauss | 0:4d17cd9c8f9d | 254 | buffer[ 12 ] = sec / 10; |
klauss | 0:4d17cd9c8f9d | 255 | buffer[ 13 ] = sec % 10; |
klauss | 0:4d17cd9c8f9d | 256 | |
klauss | 0:4d17cd9c8f9d | 257 | /* convertendo pro ascii do nro */ |
klauss | 0:4d17cd9c8f9d | 258 | for( register int i = 0; i < 14; i++ ) buffer[ i ] += 0x30; |
klauss | 70:714c33487aae | 259 | //led4 = !led4; |
klauss | 0:4d17cd9c8f9d | 260 | } |