![](/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
Diff: utils.cpp
- Revision:
- 135:2f4290590e51
- Parent:
- 124:c1b6c893e1c3
--- a/utils.cpp Tue Sep 01 19:34:34 2015 +0000 +++ b/utils.cpp Thu Sep 10 20:11:35 2015 +0000 @@ -40,22 +40,8 @@ return( *( int * )a - *( int * )b ); } -int convert_ext_to_port( int ext ){ - if( ext < 1000 ) return ext; - - else{ - int aux = 0; - aux = ( ext / 1000 ) * 1000; - ext -= aux; - aux += ext % 100; - return( aux ); - } -} - -void xstrcpy(uint8_t * dest, const uint8_t * src ){ - while (*src) *dest++ = *src++; - *dest = 0; -} +int +convert_ext_to_port( int ext ) { return ( ext ); } void xmemcpy(uint8_t * dest, const uint8_t * src, uint16_t size ){ while (size--) *dest++ = *src++;