summaryrefslogtreecommitdiff
path: root/nuttx/configs/olimex-strp711/src/up_buttons.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-15 20:56:22 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-15 20:56:22 +0000
commit1375e4917dc9f9ec7ad488fa83c23d94a1053de9 (patch)
treecc9f00d272faed8cca17c115086ef4f542beec34 /nuttx/configs/olimex-strp711/src/up_buttons.c
parent08b2e5a5495fb08277274eaaf91c21069e0fbadf (diff)
downloadpx4-nuttx-1375e4917dc9f9ec7ad488fa83c23d94a1053de9.tar.gz
px4-nuttx-1375e4917dc9f9ec7ad488fa83c23d94a1053de9.tar.bz2
px4-nuttx-1375e4917dc9f9ec7ad488fa83c23d94a1053de9.zip
Changing NuttX fixed size type names to C99 standard names -- things will be broken for awhile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2352 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/olimex-strp711/src/up_buttons.c')
-rw-r--r--nuttx/configs/olimex-strp711/src/up_buttons.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/configs/olimex-strp711/src/up_buttons.c b/nuttx/configs/olimex-strp711/src/up_buttons.c
index f6340026e..a33c1caeb 100644
--- a/nuttx/configs/olimex-strp711/src/up_buttons.c
+++ b/nuttx/configs/olimex-strp711/src/up_buttons.c
@@ -1,7 +1,7 @@
/****************************************************************************
* configs/olimex-strp711/src/up_leds.c
*
- * Copyright (C) 2008 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -38,7 +38,7 @@
****************************************************************************/
#include <nuttx/config.h>
-#include <sys/types.h>
+#include <stdint.h>
#include "chip.h"
#include "up_arch.h"
@@ -76,7 +76,7 @@
#ifdef CONFIG_ARCH_BUTTONS
void up_buttoninit(void)
{
- uint16 reg16;
+ uint16_t reg16;
/* Configure the GPIO0 & 1 pins as inputs */
@@ -109,9 +109,9 @@ void up_buttoninit(void)
* Name: up_buttons
****************************************************************************/
-ubyte up_buttons(void)
+uint8_t up_buttons(void)
{
- ubyte ret = 0;
+ uint8_t ret = 0;
if ((getreg16(STR71X_GPIO0_PD) & STR71X_WAKEUPBUTTON_GPIO0) != 0)
{