- restore default stack configuration

- extended beagle_client.c to use SBO
This commit is contained in:
Michael Zillgith 2015-06-04 15:26:19 +02:00
parent eb4769333d
commit 633e61a17c
3 changed files with 11 additions and 3 deletions

View file

@ -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

View file

@ -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) {
@ -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);

View file

@ -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"