Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build/
.cache/
sdkconfig
3 changes: 1 addition & 2 deletions components/DynamixelSDK-c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ set(srcs
"group_sync_read.c"
"group_sync_write.c"
"packet_handler.c"
"port_handler.c"
"port_handler_esp_idf.c"
"protocol1_packet_handler.c"
"protocol2_packet_handler.c"
Expand All @@ -17,4 +16,4 @@ set(srcs
#`target_compile_options(${COMPONENT_LIB} PRIVATE "-DESP32")

idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS "./include" )
INCLUDE_DIRS "./include" REQUIRES esp_driver_uart esp_driver_gpio esp_timer)
2 changes: 1 addition & 1 deletion components/DynamixelSDK-c/include/packet_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ typedef struct
uint8_t *broadcast_ping_id_list;
}PacketData;

PacketData *packetData;
extern PacketData *packetData;

void packetHandler ();

Expand Down
4 changes: 2 additions & 2 deletions components/DynamixelSDK-c/include/port_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

static const int DEFAULT_BAUDRATE = 57600;

int g_used_port_num;
uint8_t *g_is_using;
extern int g_used_port_num;
extern uint8_t *g_is_using;

int portHandler (const char *port_name);

Expand Down
96 changes: 0 additions & 96 deletions components/DynamixelSDK-c/include/port_handler_esp_idf.h

This file was deleted.

3 changes: 3 additions & 0 deletions components/DynamixelSDK-c/packet_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
#include "protocol1_packet_handler.h"
#include "protocol2_packet_handler.h"

PacketData *packetData;


void packetHandler()
{
int port_num;
Expand Down
44 changes: 0 additions & 44 deletions components/DynamixelSDK-c/port_handler.c

This file was deleted.

Loading