Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Documentation
rigado-hsm-server
Commits
891057f4
Commit
891057f4
authored
Dec 26, 2018
by
apapkovskiy
Browse files
Created the patch for i2c_a7.c
parent
f33401c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
patches/i2c_a7.patch
0 → 100644
View file @
891057f4
--- a/i2c_a7.c 2018-11-07 14:58:42.000000000 +0300
+++ b/i2c_a7.c 2018-12-26 18:14:53.768660501 +0300
@@ -32,8 +32,8 @@
#include "nxLog_smCom.h"
static int axSmDevice;
-static int axSmDevice_addr = 0x48; // 7-bit address
-static char devName[] = "/dev/i2c-1"; // Change this when connecting to another host i2c master port
+static int axSmDevice_addr = 0x49; // 7-bit address
+static char devName[] = "/dev/i2c-3"; // Change this when connecting to another host i2c master port
/**
* Opens the communication channel to I2C device
snap/snapcraft.yaml
View file @
891057f4
...
...
@@ -39,6 +39,7 @@ parts:
override-build
:
|
patch -d ../src/nxp_iot_agent/ex/src < ../../../patches/simple_server.patch simple_server.c
patch -d ../src/nxp_iot_agent/ex/src < ../../../patches/keystore_reload.patch iot_agent_demo.c
patch -d ../src/hostlib/hostLib/platform/imx/ < ../../../patches/i2c_a7.patch i2c_a7.c
snapcraftctl build
mkdir -p ${SNAPCRAFT_PART_INSTALL}/bin
cp ./bin/simple_server ${SNAPCRAFT_PART_INSTALL}/bin/simple_server
...
...
@@ -62,6 +63,7 @@ parts:
override-build
:
|
patch -d ../src/nxp_iot_agent/ex/src < ../../../patches/simple_server.patch simple_server.c
patch -d ../src/nxp_iot_agent/ex/src < ../../../patches/keystore_reload.patch iot_agent_demo.c
patch -d ../src/hostlib/hostLib/platform/imx/ < ../../../patches/i2c_a7.patch i2c_a7.c
snapcraftctl build
cp ./ext/jrcplib/libjrcplib.so ${SNAPCRAFT_PART_INSTALL}/jrcp/lib
cp ./bin/A71CHConfigTool ${SNAPCRAFT_PART_INSTALL}/jrcp/lib/A71CHConfigTool
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment