Add STM32F4 discovery config.

This commit is contained in:
Lorenz Meier
2015-04-16 22:51:08 +02:00
parent bb9e5d0d4c
commit 3ee9b441c6
21 changed files with 2397 additions and 4 deletions
+7 -2
View File
@@ -89,10 +89,11 @@
int test_gpio(int argc, char *argv[])
{
int fd;
int ret = 0;
fd = open(PX4IO_DEVICE_PATH, 0);
#ifdef PX4IO_DEVICE_PATH
int fd = open(PX4IO_DEVICE_PATH, 0);
if (fd < 0) {
printf("GPIO: open fail\n");
@@ -109,7 +110,11 @@ int test_gpio(int argc, char *argv[])
/* Go back to default */
ioctl(fd, GPIO_RESET, ~0);
close(fd);
printf("\t GPIO test successful.\n");
#endif
return ret;
}