Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-gilbert committed Mar 9, 2018
2 parents f09fe1a + 38ac51d commit 6dfe1cb
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
# Stratify API

Read here for the full documentation: https://stratifylabs.co/StratifyAPI/html/.
## Overview

- API Documentation
- Naming Conventions
- Building and Installing the Stratify API

If you want to write programs using the Stratify API, you should read through the naming conventions then dive into the API documentation. Also, please look at the Stratify OS programs that are published on Github as they make use of the API.

- [HelloWorld](https://github.com/StratifyLabs/HelloWorld)
- [gpio](https://github.com/StratifyLabs/gpio)
- [i2cprobe](https://github.com/StratifyLabs/i2cprobe)
- [uartprobe](https://github.com/StratifyLabs/uartprobe)

## API Documenation

If you want to write applications using the Stratify API, please see the [API documentation](https://stratifylabs.co/StratifyAPI/html/).

## Naming Conventions

Expand Down Expand Up @@ -83,6 +98,42 @@ enum {
};
```

## Building the Stratify API

The latest API is built and distributed with the [Stratify Labs SDK](https://stratifylabs.co/download/). You only need to build and install the source code if you want to debug, contribute new features, or equip your local SDK with a previous version.

Here are the steps to build and install the API. You need to have git, CMake and the Stratify Labs SDK installed before running these commands.

The API builds for running with Stratify OS on embedded platforms. The API can also run on Windows and Mac OS X by using a serialization protocol (called link) to Stratify OS devices. The cmake scripts check for the suffix "_arm" or "_link" to see which to build.

### Mac OS X

```
git clone https://github.com/StratifyLabs/StratifyAPI.git
cd StratifyAPI
mkdir cmake_arm; mkdir cmake_link
cd cmake_arm
cmake ..; make; make install
cd ../cmake_link
cmake ..; make; make install
```

### Windows

For windows, you need to specify some additional options because "make" typically isn't available in the PATH environment. If you are using CMD or powershell use "-G "MinGW Makefiles. If you are using msys, you can use -G "Unix Makefiles" and use the commands listed above for Mac OS X.

```
git clone https://github.com/StratifyLabs/StratifyAPI.git
cd StratifyAPI
mkdir cmake_arm; mkdir cmake_link
cd cmake_arm
cmake .. -G "MinGW Makefiles"
cmake --build . --target install
cd ../cmake_link
cmake .. -G "MinGW Makefiles"
cmake --build . --target install
```




Expand Down

0 comments on commit 6dfe1cb

Please sign in to comment.