Commit 891057f4 authored by apapkovskiy's avatar apapkovskiy
Browse files

Created the patch for i2c_a7.c

parent f33401c2
--- 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
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment