Commit Graph

189 Commits

Author SHA1 Message Date
Gabriel Valcazar f1e41d75ca Merge tag 'dey-2.4-r2.2'
Digi Embedded Yocto 2.4-r2.2
2019-01-04 13:44:16 +01:00
Mike Engel 95243cf2de manifest: Add CAN application samples
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2018-12-04 16:06:26 +01:00
fgilmar 569ce43283 makefile: add missing watchdog example and reordering
Signed-off-by: fgilmar <francisco.gilmartinez@digi.com>
2018-11-29 11:47:25 +01:00
fgilmar cf0bcac756 makefile: can: add missing can example in the makefile
Signed-off-by: fgilmar <francisco.gilmartinez@digi.com>
2018-11-28 12:20:54 +01:00
fgilmar b541f27702 can: add two examples for the can interface
Added two examples about how to configure and set a CAN
interface to establish a communication receiving and
sending frames.

Signed-off-by: fgilmar <francisco.gilmartinez@digi.com>
2018-11-28 08:22:49 +01:00
fgilmar caab8ae4bc can: add two examples for the can interface
Added two examples about how to configure and set a CAN
interface to establish a communication receiving and
sending frames.

Signed-off-by: fgilmar <francisco.gilmartinez@digi.com>
2018-11-26 08:18:01 +01:00
Hector Palacios 9a3f723fe1 Merge branch 'master' into dey-2.4/maint
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-11-12 17:19:28 +01:00
Arturo Buzarra 73b2075390 manifest: Add support for CC8X SBC Pro
https://jira.digi.com/browse/DEL-6230

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2018-10-24 13:36:58 +02:00
Gonzalo Ruiz 6bb9699c29 Merge branch 'master' into dey-2.4/maint
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2018-09-05 15:22:26 +02:00
Mike Engel 232fade585 manifest: Add support for CC8X SBC Express
Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-6077
2018-08-02 10:44:52 +02:00
Arturo Buzarra 5b29230bfd dey-examples: add libdigiapix Watchdog example
https://jira.digi.com/browse/DEL-6071

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2018-08-01 16:20:54 +02:00
Gabriel Valcazar a2a5d119b9 cryptochip: check if the device is configured before continuing
RNG and encryption operations won't work unless the cryptochip is configured
for TLS operations. Print a warning if the chip hasn't been configured yet.

https://jira.digi.com/browse/DEL-5710

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2018-02-21 11:34:10 +01:00
Tatiana Leon 9cf9701082 apix readme: minor fixes for apix samples readme files
This commit:
 * adds the name of the connector in the readme files
 * uses the official platform names
 * minor changes for consistency between readme files

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-12-12 17:26:02 +01:00
Francisco Gil 029dcf0463 gpio: remove some wrong lines in the readme
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2017-12-11 14:05:06 +01:00
Francisco Gil 5c3834f845 adc: fix segmentation fault when exiting the application
'adc_sampling_cb_data' struct is a local variable of the 'main' function.
Sometimes, the ADC callback accesses to it once the main function has exited
(when it is out of scope), causing a segmentation fault.
To solve this issue, adc_sampling_cb_data' struct is now a global variable.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2017-12-11 14:04:03 +01:00
Francisco Gil 1e02f43c81 manifest: change the order of the examples.
We have reordered the examples to be sorted alphabetically.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2017-11-30 13:52:24 +01:00
Francisco Gil cfca505e10 debug: changes in the makefile to reduce the optimization level.
We need to reduce the optimization level in order to be able to
perform a debugging of the applications, without this there is
an strange behaviour while debugging.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2017-11-30 13:12:58 +01:00
Francisco Gil f89af39654 pwm: fix a problem with the pwm example.
The first time that the example is run there was an error
related with an invalid value for the duty cycle.
With this fix we set the duty cycle to 0 when we close the example.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2017-11-30 13:12:58 +01:00
Francisco Gil 3b7bbdbf65 dey-examples: Rework the examples to be launch-ready
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2017-11-30 13:12:58 +01:00
Francisco Gil 58469e08da adc: rework the example to remove rms and mean value.
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2017-11-23 13:45:23 +01:00
Francisco Gil 68f3f0f815 adc_example: Add an example about how to use the adc.
This example takes periodic samples using a thread and
calculate the rms value and the mean value of the samples
taken.

https://jira.digi.com/browse/DEL-4889

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2017-11-20 17:55:40 +01:00
David Escalona 4e013d621a samples-manifest: add a samples manifest file to be used by Eclipse DEY plug-ins
https://jira.digi.com/browse/DEL-5260

Signed-off-by: David Escalona <david.escalona@digi.com>
2017-10-31 12:20:58 +01:00
Javier Viguera 0aa3900c86 dey-examples: rename makefile to libdigiapix-examples.mk
The makefile only builds the example applications based on 'libdigiapix'
library, so just rename the makefile accordingly.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-10-09 18:21:01 +02:00
Francisco Gil Martinez 1c6815046d makefile: add makefile to compile the digi apix examples
Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2017-10-09 10:55:46 +02:00
Francisco Gil Martinez d574d6b748 examples refactor the examples
Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2017-10-06 16:18:16 +02:00
Mike Engel 5bc334c320 dey-examples: add libdigiapix I2C example
Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-4873
2017-09-20 18:15:02 +02:00
David Escalona 6c65df5c68 dey-examples: add libdigiapix SPI example
https://jira.digi.com/browse/DEL-4865

Signed-off-by: David Escalona <david.escalona@digi.com>
2017-09-19 12:31:25 +02:00
Javier Viguera 1e2358f5bf dey-examples: add libdigiapix GPIO example
https://jira.digi.com/browse/DEL-4795

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-09-14 16:42:14 +02:00
Francisco Gil Martinez 372d338d3f pwm_apix_sample: add an example for the pwm digi apix
https://jira.digi.com/browse/DEL-4881

Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2017-09-11 09:40:57 +02:00
Diaz de Grenu, Jose 2302b7c2e2 dey-examples: add example to use the Atmel ATECC508A
https://jira.digi.com/browse/DEL-4371

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-07-03 19:10:41 +02:00
Tatiana Leon bffdbe88f6 license: use ISC license
Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-06-01 10:50:53 +02:00
Tatiana Leon 13c4915411 readme: update readme contents with license and a brief explanation
Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-05-26 21:49:40 +02:00
Tatiana Leon f789318be7 aws iot sample: add support to remotely control an LED
The application allows to switch on and off the configured LED.

This commit adds the following configuration parameter:
  * 'user_led ': GPIO number of the LED to be remotely controlled.
    If -1, no LED is controlled, but the application simulates its status.

https://jira.digi.com/browse/DEL-4149

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-05-18 15:10:49 +02:00
Tatiana Leon 4837f8edc5 aws iot sample: add support to report CPU load
The application also monitors the CPU load along with the temperature.
It also uploads the Thing Shadow when the load variation is bigger than 10% (per
param in the config file).

This commit adds the following configuration parameter:
  * 'cpu_load_variation': Minimum absolute value of the difference between last
    reported CPU load and the current value to report again.

https://jira.digi.com/browse/DEL-4149

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-05-18 15:09:30 +02:00
Tatiana Leon 1fff418887 aws iot sample: add support to connect to AWS IoT and report CPU temperature
The application connects to AWS IoT and monitors the CPU temperature.
It uploads the Thing Shadow every minute (per param in config file) or when the
temperature variation is bigger than 1C (per param in the config file).

This commit adds the following configuration parameters:
  * 'shadow_report_rate': Frequency at which the device reports its shadow to
    the cloud (in seconds).
  * 'temperature_variation': Minimum absolute value of the difference between
    last reported temperature and the current value to report again.

https://jira.digi.com/browse/DEL-4149

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-05-18 15:08:09 +02:00
Tatiana Leon dc2599fd28 aws iot sample: add a config file option to get settings for the sample
The application uses 'libconfuse' to read the settings from the provided
configuration file with the option '-c'. By default, the application looks for
the '/etc/awsiotsdk.conf' file.

https://jira.digi.com/browse/DEL-4149

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-05-17 18:11:36 +02:00
Tatiana Leon cbbe31f11e aws iot sample: add program options for application usage and daemonization
https://jira.digi.com/browse/DEL-4149

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-05-17 18:11:27 +02:00
Tatiana Leon 089b93cb11 aws iot sample: application with basic signal handling
https://jira.digi.com/browse/DEL-4149

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-05-12 10:27:10 +02:00
Tatiana Leon 9efd798622 Initial commit
Basic readme file for the repository.

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-05-08 10:32:49 +02:00