Skip to content
Snippets Groups Projects
Commit 085cd48e authored by Hauke Petersen's avatar Hauke Petersen
Browse files

drivers/gpio: changed default type to unsigned

parent 8bf944c4
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,8 @@
#ifndef GPIO_H
#define GPIO_H
#include <limits.h>
#include "periph_cpu.h"
#include "periph_conf.h"
/* TODO: remove once all platforms are ported to this interface */
......@@ -73,14 +75,14 @@ extern "C" {
* @brief Define global value for GPIO not defined
*/
#ifndef GPIO_UNDEF
#define GPIO_UNDEF (-1)
#define GPIO_UNDEF (UINT_MAX)
#endif
/**
* @brief Define the default GPIO type identifier
*/
#ifndef HAVE_GPIO_T
typedef int gpio_t;
typedef unsigned int gpio_t;
#endif
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment