Hi all, i try to run a GPIO test program on ubuntu with developer Studio legato-17.08.1-R6-WP76-linux-32bits , but i have the bindings problem.I have overlooked some important things?
The previous screenshot was wrong, corrected now:
Here is the code:
GPIO_TestComponent.c
#include “legato.h”
#include “interfaces.h”
COMPONENT_INIT
{
LE_INFO(“GPIO, test.”);
le_gpioPin25_SetPushPullOutput(LE_GPIOPIN25_ACTIVE_HIGH,false);
le_gpioPin25_Activate();
}
GPIO_TestComponent.c
sources:
{
GPIO_TestComponent.c
}
requires:
{
api:
{
le_gpioPin25 = le_gpio.api
}
}
GPIO_Test.adef
executables:
{
gpio_test = ( GPIO_TestComponent )
}
processes:
{
envVars:
{
LE_LOG_LEVEL = DEBUG
}
run:
{
( gpio_test )
}
maxCoreDumpFileBytes: 512K
maxFileBytes: 512K
}
bindings:
{
gpio_test.GPIO_TestComponent.le_gpioPin25 → gpioService.le_gpioPin25
}
version: 1.0.0
maxFileSystemBytes: 512K
Pleas advise, thank you!