forked from Archive/PX4-Autopilot
PIC32 NSH configuration now builds without errors
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4220 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
parent
5464c1d5ed
commit
f1ee90fa13
|
@ -2,7 +2,7 @@
|
|||
* arch/mips/src/pic32/pic32mx-lowinit.c
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* arch/mips/src/pic32mx/pic32mx-serial.c
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
|
@ -160,8 +160,8 @@ struct up_dev_s
|
|||
|
||||
static inline uint32_t up_serialin(struct up_dev_s *priv, int offset);
|
||||
static inline void up_serialout(struct up_dev_s *priv, int offset, uint32_t value);
|
||||
static void up_restoreuartint(struct up_dev_s *priv, uint8_t im);
|
||||
static void up_disableuartint(struct up_dev_s *priv, uint8_t *im);
|
||||
static void up_restoreuartint(struct uart_dev_s *dev, uint8_t im);
|
||||
static void up_disableuartint(struct uart_dev_s *dev, uint8_t *im);
|
||||
|
||||
/* Serial driver methods */
|
||||
|
||||
|
@ -320,8 +320,9 @@ static void up_restoreuartint(struct uart_dev_s *dev, uint8_t im)
|
|||
* Name: up_disableuartint
|
||||
****************************************************************************/
|
||||
|
||||
static void up_disableuartint(sstruct uart_dev_s *dev, uint8_t *im)
|
||||
static void up_disableuartint(struct uart_dev_s *dev, uint8_t *im)
|
||||
{
|
||||
struct up_dev_s *priv = (struct up_dev_s*)dev->priv;
|
||||
irqstate_t flags;
|
||||
|
||||
flags = irqsave();
|
||||
|
@ -761,12 +762,12 @@ static bool up_txempty(struct uart_dev_s *dev)
|
|||
void up_earlyserialinit(void)
|
||||
{
|
||||
/* Disable interrupts from all UARTS. The console is enabled in
|
||||
* pic32mx_consoleinit()
|
||||
* pic32mx_consoleinit().
|
||||
*/
|
||||
|
||||
up_disableuartint(TTYS0_DEV, NULL);
|
||||
up_disableuartint(&TTYS0_DEV, NULL);
|
||||
#ifdef TTYS1_DEV
|
||||
up_disableuartint(TTYS1_DEV, NULL);
|
||||
up_disableuartint(&TTYS1_DEV, NULL);
|
||||
#endif
|
||||
|
||||
/* Configuration whichever one is the console */
|
||||
|
@ -814,7 +815,7 @@ int up_putc(int ch)
|
|||
{
|
||||
#ifdef HAVE_SERIAL_CONSOLE
|
||||
struct uart_dev_s *dev = (struct uart_dev_s *)&CONSOLE_DEV;
|
||||
uint32_t imr;
|
||||
uint8_t imr;
|
||||
|
||||
up_disableuartint(dev, &imr);
|
||||
|
||||
|
|
|
@ -328,7 +328,7 @@ CONFIG_DEBUG=n
|
|||
CONFIG_DEBUG_VERBOSE=n
|
||||
CONFIG_DEBUG_SYMBOLS=n
|
||||
CONFIG_DEBUG_SCHED=n
|
||||
CONFIG_HAVE_CXX=y
|
||||
CONFIG_HAVE_CXX=n
|
||||
CONFIG_MM_REGIONS=1
|
||||
CONFIG_ARCH_LOWPUTC=y
|
||||
CONFIG_RR_INTERVAL=0
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Driver for SPI-based M25P1 (128Kbit), M25P64 (64Mbit), and M25P128 (128Mbit) FLASH
|
||||
*
|
||||
* Copyright (C) 2009-2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
|
@ -44,6 +44,7 @@
|
|||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* fs/fat/fs_fat32.h
|
||||
*
|
||||
* Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
|
@ -845,7 +845,7 @@ EXTERN void fat_semgive(struct fat_mountpt_s *fs);
|
|||
/* Get the current time for FAT creation and write times */
|
||||
|
||||
EXTERN uint32_t fat_systime2fattime(void);
|
||||
EXTERN time_t fat_fattime2systime(uint16_t time, uint16_t date);
|
||||
EXTERN time_t fat_fattime2systime(uint16_t fattime, uint16_t fatdate);
|
||||
|
||||
/* Handle hardware interactions for mounting */
|
||||
|
||||
|
|
Loading…
Reference in New Issue