Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
update package json file in the original branch (#303)
Browse files Browse the repository at this point in the history
* update package json file in the original branch

* Update version code to use __cplusplus
  • Loading branch information
lirenhe authored May 7, 2017
1 parent 6591ccc commit 94bcce0
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 20 deletions.
11 changes: 10 additions & 1 deletion AZ3166/AZ3166-1.0.0/cores/arduino/version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
#define DEVKIT_MINOR_VERSION 8
#define DEVKIT_PATCH_VERSION 1


#ifdef __cplusplus
extern "C" {
#endif

char version[10] = { "\0" };

const char* getDevkitVersion()
Expand All @@ -51,4 +56,8 @@ uint32_t getMinorVersion()
uint32_t getPatchVersion()
{
return DEVKIT_PATCH_VERSION;
}
}

#ifdef __cplusplus
}
#endif
7 changes: 3 additions & 4 deletions AZ3166/AZ3166-1.0.0/cores/arduino/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@
#ifndef __VERSION_H__
#define __VERSION_H__

#ifdef _cplusplus
extern "C"
{
#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>
Expand All @@ -41,7 +40,7 @@ uint32_t getMinorVersion();
//Get patch version
uint32_t getPatchVersion();

#ifdef _cplusplus
#ifdef __cplusplus
}
#endif

Expand Down
99 changes: 84 additions & 15 deletions package_azureboard_index.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@
},
"platforms": [
{
"name": "Microsoft Azure IoT Developer Kit",
"name": "MXChip - Microsoft Azure IoT Developer Kit",
"architecture": "stm32f4",
"version": "1.0.0",
"version": "0.8.0",
"category": "Contributed",
"help": {
"online": "https://github.com/Microsoft/azure-iot-developer-kit"
},
"url": "https://azureboard.blob.core.windows.net/toolchain/AZ3166-1.0.0.zip",
"archiveFileName": "AZ3166-1.0.0.zip",
"checksum": "MD5:4e943d6b8d4594109f19ae4bd1df67c6",
"size": "6468060",
"url": "https://azureboard.blob.core.windows.net/arduinopackage/AZ3166-0.8.0.zip",
"archiveFileName": "AZ3166-0.8.0.zip",
"checksum": "MD5:a2bde1493a6609913f017bcf6ea37cc9",
"size": "6270165",
"boards": [
{
"name": "AZ3166"
"name": "MXChip - Microsoft Azure IoT Developer Kit AZ3166"
}
],
"toolsDependencies": [
Expand All @@ -32,10 +32,45 @@
"name": "arm-none-eabi-gcc",
"version": "5_4-2016q3"
},
{
{
"packager": "AZ3166",
"name": "st-flash",
"version": "1.3.1"
},
{
"packager": "AZ3166",
"name": "openocd",
"version": "0.10.0"
}
]
},
{
"name": "MXChip - Microsoft Azure IoT Developer Kit",
"architecture": "stm32f4",
"version": "0.8.1",
"category": "Contributed",
"help": {
"online": "https://github.com/Microsoft/azure-iot-developer-kit"
},
"url": "https://azureboard.blob.core.windows.net/arduinopackage/AZ3166-0.8.1.zip",
"archiveFileName": "AZ3166-0.8.1.zip",
"checksum": "MD5:807f39343d15ba6975be8468eaa77ab7",
"size": "6258471",
"boards": [
{
"name": "MXChip - Microsoft Azure IoT Developer Kit AZ3166"
}
],
"toolsDependencies": [
{
"packager": "AZ3166",
"name": "arm-none-eabi-gcc",
"version": "5_4-2016q3"
},
{
"packager": "AZ3166",
"name": "openocd",
"version": "0.10.0"
}
]
}
Expand All @@ -54,10 +89,10 @@
},
{
"host": "x86_64-apple-darwin",
"url": "http://downloads.arduino.cc/gcc-arm-none-eabi-4.8.3-2014q1-mac.tar.gz",
"archiveFileName": "gcc-arm-none-eabi-4.8.3-2014q1-mac.tar.gz",
"checksum": "SHA-256:3598acf21600f17a8e4a4e8e193dc422b894dc09384759b270b2ece5facb59c2",
"size": "52518522"
"url": "https://azureboard.blob.core.windows.net/toolchain/gcc-arm-none-eabi-5_4-2016q3.tar.gz",
"archiveFileName": "gcc-arm-none-eabi-5_4-2016q3.tar.gz",
"checksum": "MD5:1c44cafab7d4c3d437c81828a6c85c7e",
"size": "116878042"
},
{
"host": "x86_64-pc-linux-gnu",
Expand Down Expand Up @@ -102,12 +137,46 @@
},
{
"host": "i386-apple-darwin11",
"url": "https://azureboard.blob.core.windows.net/toolchain/st-flash-1.3.1.zip",
"archiveFileName": "st-flash-1.3.1.zip",
"checksum": "MD5:e60b9c48ce0561566b93374438e868b6",
"url": "https://azureboard.blob.core.windows.net/toolchain/st-flash-1.3.1.tar.gz",
"archiveFileName": "st-flash-1.3.1.tar.gz",
"checksum": "MD5:485e0aad9ba38293b60f7cc76dfc1909",
"size": "462883"
}
]
},
{
"name": "openocd",
"version": "0.10.0",
"systems": [
{
"host": "i686-linux-gnu",
"url": "https://azureboard.blob.core.windows.net/toolchain/openocd-0.10.0.zip",
"archiveFileName": "openocd-0.10.0.zip",
"checksum": "MD5:3648e4cd6af88ae4e3a59e068723a1d7",
"size": "10406262"
},
{
"host": "x86_64-pc-linux-gnu",
"url": "https://azureboard.blob.core.windows.net/toolchain/openocd-0.10.0.zip",
"archiveFileName": "openocd-0.10.0.zip",
"checksum": "MD5:3648e4cd6af88ae4e3a59e068723a1d7",
"size": "10406262"
},
{
"host": "i686-mingw32",
"url": "https://azureboard.blob.core.windows.net/toolchain/openocd-0.10.0-32.zip",
"archiveFileName": "openocd-0.10.0-32.zip",
"checksum": "MD5:83e1ed6c7d7558f09c1e39f9c168126c",
"size": "2751074"
},
{
"host": "i386-apple-darwin11",
"url": "https://azureboard.blob.core.windows.net/toolchain/openocd-0.10.0.tar.gz",
"archiveFileName": "openocd-0.10.0.tar.gz",
"checksum": "MD5:cc33d45956f146038c315880de83bdb1",
"size": "2470470"
}
]
}
]
}
Expand Down

0 comments on commit 94bcce0

Please sign in to comment.