Skip to content

Commit

Permalink
Merge pull request #35 from ROBOTIS-GIT/develop
Browse files Browse the repository at this point in the history
merge from develop
  • Loading branch information
hancheol-cho authored Mar 22, 2017
2 parents 22167e0 + 1c03e71 commit aee6189
Show file tree
Hide file tree
Showing 1,410 changed files with 434,903 additions and 15,319 deletions.
166 changes: 0 additions & 166 deletions arduino/opencr_arduino/opencr/.cproject

This file was deleted.

15 changes: 0 additions & 15 deletions arduino/opencr_arduino/opencr/.settings/language.settings.xml

This file was deleted.

This file was deleted.

106 changes: 0 additions & 106 deletions arduino/opencr_arduino/opencr/Makefile

This file was deleted.

16 changes: 8 additions & 8 deletions arduino/opencr_arduino/opencr/boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ OpenCR.upload.params.quiet=no
OpenCR.build.mcu=cortex-m7
OpenCR.build.f_cpu=216000000L
OpenCR.build.board=OpenCR
OpenCR.build.core=mapleMX
OpenCR.build.common_flags=-mthumb -DSTM32F746xx -D__OPENCR__
OpenCR.build.core=arduino
OpenCR.build.common_flags=-mthumb -DSTM32F746xx -D__OPENCR__

OpenCR.build.ldscript=bsp/opencr/ld/opencr_flash.ld
OpenCR.build.ldscript=bsp/opencr/ldscript/opencr_flash.ld
OpenCR.build.variant=OpenCR
OpenCR.build.variant_system_lib=lib_f746.a
OpenCR.build.extra_flags=


OpenCR.build.inc1=src
OpenCR.build.inc2=bsp/opencr
OpenCR.build.inc3=bsp/opencr/include
OpenCR.build.inc4=bsp/opencr/cfg
OpenCR.build.inc5=hal
OpenCR.build.inc1=bsp/opencr
OpenCR.build.inc2=bsp/opencr/include
OpenCR.build.inc3=hw
OpenCR.build.inc4=hw/driver
OpenCR.build.inc5=hw/usb_cdc
OpenCR.build.inc6=lib/STM32F7xx_HAL_Driver/Inc/
OpenCR.build.inc7=

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
#include <avr/interrupt.h>

#include "binary.h"
#include "hal.h"
#include "drv.h"
#include "hw.h"
#include "itoa.h"

#ifdef __cplusplus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
class HardwareSerial : public Stream
{
public:
virtual void begin(unsigned long);
virtual void end();
virtual void begin(unsigned long) = 0;
virtual void end() = 0;
virtual int available(void) = 0;
virtual int peek(void) = 0;
virtual int read(void) = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <chip.h>

#include <USBSerial.h>
#include "drv_timer.h"
#include "variant.h"
#include "HardwareTimer.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#define _HARDWARETIMER_H_

#include <inttypes.h>
#include "drv_timer.h"




Expand All @@ -43,7 +43,7 @@ class HardwareTimer {
void pause(void);
void resume(void);
void stop(void);
void start(void);
void start(void);
uint16_t setPeriod(uint32_t microseconds);
void attachInterrupt(voidFuncPtr handler);
void detachInterrupt(void);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
Expand All @@ -23,48 +23,6 @@
extern "C"{
#endif // __cplusplus

#if 0
/* reverse: reverse string s in place */
static void reverse( char s[] )
{
int i, j ;
char c ;

for ( i = 0, j = strlen(s)-1 ; i < j ; i++, j-- )
{
c = s[i] ;
s[i] = s[j] ;
s[j] = c ;
}
}

/* itoa: convert n to characters in s */
extern void itoa( int n, char s[] )
{
int i, sign ;

if ( (sign = n) < 0 ) /* record sign */
{
n = -n; /* make n positive */
}

i = 0;
do
{ /* generate digits in reverse order */
s[i++] = n % 10 + '0'; /* get next digit */
} while ((n /= 10) > 0) ; /* delete it */

if (sign < 0 )
{
s[i++] = '-';
}

s[i] = '\0';

reverse( s ) ;
}

#else

extern char* itoa( int value, char *string, int radix )
{
Expand Down Expand Up @@ -143,7 +101,7 @@ extern char* ultoa( unsigned long value, char *string, int radix )
{
return 0;
}

while (v || tp == tmp)
{
i = v % radix;
Expand All @@ -156,14 +114,14 @@ extern char* ultoa( unsigned long value, char *string, int radix )

sp = string;


while (tp > tmp)
*sp++ = *--tp;
*sp = 0;

return string;
}
#endif /* 0 */


#ifdef __cplusplus
} // extern "C"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

#include "Arduino.h"

#include "drv_micros.h"
#ifdef __cplusplus
extern "C" {
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,23 +73,6 @@ void PortHandlerOpenCR::closePort()
void PortHandlerOpenCR::clearPort()
{
DYNAMIXEL_SERIAL.flush();
// double tTime;
//
// tTime = getCurrentTime();
// while(1)
// {
// if (DYNAMIXEL_SERIAL.available())
// {
// DYNAMIXEL_SERIAL.read();
// }
// else
// {
// break;
// }
//
// if (getCurrentTime() - tTime > 1000)
// break;
// }
}

void PortHandlerOpenCR::setPortName(const char *port_name)
Expand Down Expand Up @@ -176,6 +159,7 @@ bool PortHandlerOpenCR::isPacketTimeout()
packet_timeout_ = 0;
return true;
}

return false;
}

Expand Down
Loading

0 comments on commit aee6189

Please sign in to comment.