Skip to content

Commit

Permalink
- restore default stack configuration
Browse files Browse the repository at this point in the history
- extended beagle_client.c to use SBO
  • Loading branch information
Michael Zillgith committed Jun 4, 2015
1 parent eb47693 commit 633e61a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/stack_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#define DEBUG_COTP 0
#define DEBUG_ISO_SERVER 0
#define DEBUG_ISO_CLIENT 0
#define DEBUG_IED_SERVER 1
#define DEBUG_IED_SERVER 0
#define DEBUG_IED_CLIENT 0
#define DEBUG_MMS_CLIENT 0
#define DEBUG_MMS_SERVER 0
Expand Down
8 changes: 8 additions & 0 deletions demos/beaglebone/beagle_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ int main(int argc, char** argv) {
MmsValue* ctlValOff = MmsValue_newBoolean(false);

if (!ControlObjectClient_operate(controlLED1, ctlValOff, 0)) goto control_error;

ControlObjectClient_select(controlLED2);
if (!ControlObjectClient_operate(controlLED2, ctlValOff, 0)) goto control_error;

if (!ControlObjectClient_operate(controlLED4, ctlValOff, 0)) goto control_error;

while (1) {
Expand All @@ -63,10 +66,15 @@ int main(int argc, char** argv) {
Thread_sleep(1000);

if (!ControlObjectClient_operate(controlLED1, ctlValOff, 0)) goto control_error;

ControlObjectClient_select(controlLED2);
if (!ControlObjectClient_operate(controlLED2, ctlValOn, 0)) goto control_error;

Thread_sleep(1000);

ControlObjectClient_select(controlLED2);
if (!ControlObjectClient_operate(controlLED2, ctlValOff, 0)) goto control_error;

if (!ControlObjectClient_operate(controlLED3, ctlValOn, 0)) goto control_error;
Thread_sleep(1000);

Expand Down
4 changes: 2 additions & 2 deletions demos/beaglebone/beaglebone_leds.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#define BEAGLEBONE_LEDS_H_


#define SIMULATED 1

/* set to 1 if you want to run the demo on a PC */
//#define SIMULATED 1

#if 0
#define LED1 "/sys/class/leds/beaglebone::usr0"
Expand Down

0 comments on commit 633e61a

Please sign in to comment.