Skip to content

Commit

Permalink
Fixed uuid numbers for device information service characteristics;
Browse files Browse the repository at this point in the history
Fixed issue with finding openssl package
  • Loading branch information
clydebarrow committed Apr 8, 2017
1 parent 209d58d commit 17e9ee1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
4 changes: 2 additions & 2 deletions app/gatt/gatt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<value>1</value>
</characteristic>
<!-- Serial number string -->
<characteristic uuid="2A23" id="serialnum">
<characteristic uuid="2A25" id="serialnum">
<properties read="true"/>
<value length="16" const="true" variable_length="true">sernum</value>
</characteristic>
Expand All @@ -45,7 +45,7 @@
<value>1</value>
</characteristic>
<!-- Firmware revision -->
<characteristic uuid="2A27" id="fwrev">
<characteristic uuid="2A26" id="fwrev">
<properties read="true" const="true"/>
<value>1.0</value>
</characteristic>
Expand Down
15 changes: 8 additions & 7 deletions bootload/gatt/gatt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

</service>


<!-- Device Information Service -->
<service uuid="180A">
<!-- Manufacturer name string -->
Expand All @@ -32,22 +33,22 @@
<!-- Model number string -->
<characteristic uuid="2A24">
<properties read="true" const="true"/>
<value>1</value>
<value>model</value>
</characteristic>
<!-- Serial number string -->
<characteristic uuid="2A23" id="serialnum">
<properties read="true"/>
<value length="16" const="true" variable_length="true">sernum</value>
<characteristic uuid="2A25" id="serialnum">
<properties read="true" const="true"/>
<value>sernum</value>
</characteristic>
<!-- Hardware revision -->
<characteristic uuid="2A27" id="hwrev">
<properties read="true" const="true"/>
<value>1</value>
<value>3</value>
</characteristic>
<!-- Firmware revision -->
<characteristic uuid="2A27" id="fwrev">
<characteristic uuid="2A26" id="fwrev">
<properties read="true" const="true"/>
<value>1.0</value>
<value>${PROJECT_VERSION}</value>
</characteristic>
</service>

Expand Down
4 changes: 1 addition & 3 deletions bootload/run.jdebug
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ void OnProjectLoad (void) {
*
**********************************************************************
*/
/*
void TargetReset (void) {

unsigned int SP;
Expand All @@ -40,7 +39,7 @@ void TargetReset (void) {

Exec.Reset();

VectorTableAddr = Elf.GetBaseAddr();
VectorTableAddr = 0;

if (VectorTableAddr != 0xFFFFFFFF) {

Expand All @@ -53,7 +52,6 @@ void TargetReset (void) {
Target.SetReg("PC", PC);
}
}
*/

/*********************************************************************
*
Expand Down
3 changes: 1 addition & 2 deletions utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ set(SOURCE_FILES
vector.c
vector.h)

find_package(PkgConfig REQUIRED)
pkg_search_module(OPENSSL REQUIRED openssl)
find_package(OPENSSL REQUIRED openssl)

if( OPENSSL_FOUND )
include_directories(${OPENSSL_INCLUDE_DIRS})
Expand Down

0 comments on commit 17e9ee1

Please sign in to comment.