1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

drivers/gpio: changed default type to unsigned

This commit is contained in:
Hauke Petersen 2016-02-17 10:27:10 +01:00
parent 8bf944c4e6
commit 085cd48e3d

View File

@ -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
/**