samples: fix signed overflow in blinky example

Overflow for int is undefined in C, change to u32_t where it is defined.

Signed-off-by: Christoph Reiter <christoph.reiter@infineon.com>
This commit is contained in:
Christoph Reiter 2019-08-27 12:53:56 +02:00 committed by Kumar Gala
commit 41f54f39c9

View file

@ -8,15 +8,15 @@
#include <device.h>
#include <drivers/gpio.h>
#define LED_PORT DT_ALIAS_LED0_GPIOS_CONTROLLER
#define LED DT_ALIAS_LED0_GPIOS_PIN
#define LED_PORT DT_ALIAS_LED0_GPIOS_CONTROLLER
#define LED DT_ALIAS_LED0_GPIOS_PIN
/* 1000 msec = 1 sec */
#define SLEEP_TIME 1000
#define SLEEP_TIME 1000
void main(void)
{
int cnt = 0;
u32_t cnt = 0;
struct device *dev;
dev = device_get_binding(LED_PORT);