Skip to content

Instantly share code, notes, and snippets.

@nvandoorn
Created February 20, 2018 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nvandoorn/4b241563874e7c48a93eb894d47046c3 to your computer and use it in GitHub Desktop.
Save nvandoorn/4b241563874e7c48a93eb894d47046c3 to your computer and use it in GitHub Desktop.
version: 0.1.0
// sandboxed: true
sandboxed: false
start: auto
executables:
{
spiService = ( $LEGATO_ROOT/components/spiService )
}
processes:
{
envVars:
{
LE_LOG_LEVEL = INFO
}
run:
{
(spiService)
}
faultAction: restart
#if ${LEGATO_SERVICES_WDOG_DISABLE} = 1
watchdogTimeout: never
#else
watchdogTimeout: 120000
#endif
}
requires:
{
device:
{
// [rw] /dev/spidev0.0 /dev/
}
}
extern:
{
spiService.spiService.le_spi
}
bindings:
{
spiService.watchdogChain.le_wdog -> <root>.le_wdog
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment