Skip to content

Commit 6bd8293

Browse files
author
James
committed
add version and model changes, TODO: real model name in future
1 parent 2c83c78 commit 6bd8293

File tree

5 files changed

+20
-7
lines changed

5 files changed

+20
-7
lines changed

CHANGELOG

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
1.1.0
2+
* add support for hamster
3+
14
1.0.4
25
* fix missing stddef.h include in i2c.h
36
* add kmartin36's PRU encoder robustness improvement
@@ -187,4 +190,4 @@
187190
0.1.0
188191
* installs on Blue as well and Black
189192

190-
// indentation is with spaces to allow copy/paste into debian/changelog
193+
// indentation is with spaces to allow copy/paste into debian/changelog

library/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ BUILDDIR := build
55
INCLUDEDIR := include
66
SHORTNAME := librobotcontrol.so
77
SONAME := librobotcontrol.so.1
8-
FULLNAME := librobotcontrol.so.1.0.4
8+
FULLNAME := librobotcontrol.so.1.1.0
99
TARGET := $(LIBDIR)/$(FULLNAME)
1010
RC_VAR_DIR := var/lib/robotcontrol
1111

library/include/rc/model.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ typedef enum rc_model_t{
5050
MODEL_RPI0_W,
5151
MODEL_RPI_CM,
5252
MODEL_RPI_CM3,
53-
MODEL_PC
53+
MODEL_PC,
54+
MODEL_BB_AM57,
55+
MODEL_BB_AM57_RC,
5456
} rc_model_t;
5557

5658

@@ -101,4 +103,4 @@ void rc_model_category_print(void);
101103

102104
#endif // RC_MODEL_H
103105

104-
/** @} end group Model*/
106+
/** @} end group Model*/

library/include/rc/version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ extern "C" {
1919

2020

2121
#define RC_LIB_VERSION_MAJOR 1
22-
#define RC_LIB_VERSION_MINOR 0
23-
#define RC_LIB_VERSION_PATCH 4
22+
#define RC_LIB_VERSION_MINOR 1
23+
#define RC_LIB_VERSION_PATCH 0
2424
#define RC_LIB_VERSION_HEX ((RC_LIB_VERSION_MAJOR << 16) | \
2525
(RC_LIB_VERSION_MINOR << 8) | \
2626
(RC_LIB_VERSION_PATCH))
@@ -58,4 +58,4 @@ void rc_version_print(void);
5858

5959
#endif //RC_VERSION_H
6060

61-
/** @} end group version*/
61+
/** @} end group version*/

library/src/model.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,14 @@ static void __check_model(void)
9191
current_model = MODEL_BB_BLUE;
9292
return;
9393
}
94+
if(strcmp(c, "TI AM57xx BeagleBone")==0){
95+
current_model = MODEL_BB_AM57;
96+
return;
97+
}
98+
if(strcmp(c, "TI AM57xx BeagleBone RoboticsCape")==0){
99+
current_model = MODEL_BB_AM57_RC;
100+
return;
101+
}
94102
return;
95103
}
96104

0 commit comments

Comments
 (0)