Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 24e4b09
Showing
10 changed files
with
1,094 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.app | ||
*.beam |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
%% -*- erlang -*- | ||
%% Config file for tellstick application. | ||
%% | ||
{erl_opts, [debug_info]}. | ||
|
||
{deps, [ {hex, ".*", {git, "git@github.com:tonyrog/hex.git"}}, | ||
{lager, ".*", {git, "git://github.com/Feuerlabs/lager.git", | ||
"1.0.0.fl.2"}}, | ||
{uart, ".*", {git, "git@github.com:tonyrog/uart.git"}} | ||
]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
%% -*- erlang -*- | ||
%% Config script file for uart-application | ||
case os:getenv("REBAR_DEPS") of | ||
false -> CONFIG; % env var not defined | ||
[] -> CONFIG; % env var set to empty string | ||
Dir -> | ||
lists:keystore(deps_dir, 1, CONFIG, {deps_dir, Dir}) | ||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{application, tellstick, | ||
[ | ||
{description, ""}, | ||
{vsn, "1"}, | ||
{registered, []}, | ||
{applications, [ | ||
kernel, | ||
stdlib | ||
]}, | ||
{mod, { tellstick_app, []}}, | ||
{env, []} | ||
]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
%%% @author Tony Rogvall <tony@rogvall.se> | ||
%%% @copyright (C) 2014, Tony Rogvall | ||
%%% @doc | ||
%%% Starter kit | ||
%%% @end | ||
%%% Created : 26 Feb 2014 by Tony Rogvall <tony@rogvall.se> | ||
|
||
-module(tellstick). | ||
|
||
-export([start/0]). | ||
|
||
start() -> | ||
application:start(tellstick). | ||
|
||
%% wrap tellstick_server calls ? | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-module(tellstick_app). | ||
|
||
-behaviour(application). | ||
|
||
%% Application callbacks | ||
-export([start/2, stop/1]). | ||
|
||
%% =================================================================== | ||
%% Application callbacks | ||
%% =================================================================== | ||
|
||
start(_StartType, _StartArgs) -> | ||
Options = case application:get_env(tellstick, options) of | ||
undefined -> []; | ||
{ok, O1} -> O1 | ||
end, | ||
tellstick_sup:start_link(Options). | ||
|
||
stop(_State) -> | ||
ok. |
Oops, something went wrong.