Skip to content

Commit

Permalink
Merge branch 'master' of http://git.code.sf.net/p/nuttx/git into inte…
Browse files Browse the repository at this point in the history
…gration
  • Loading branch information
LorenzMeier committed Jun 6, 2013
2 parents 39fab76 + 303cf6c commit f42a335
Show file tree
Hide file tree
Showing 26 changed files with 2,642 additions and 229 deletions.
14 changes: 14 additions & 0 deletions nuttx/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -4896,4 +4896,18 @@
file to sam3u_gpio.h (2013-6-4).
* nuttx/arch/arm/src/sam34/sam4l_gpio.c: Created GPIO driver for
the SAM4L (2013-6-4).
* nuttx/configs/sam4l-xplained/src/sam_userleds.c: Added.
(2013-6-4).
* configs/sam4l-xplained/src/sam_userleds.c: Add application
LED interfaces (2013-6-5).
* arch/arm/src/sam34/sam4l_gpio.c and arch/arm/src/sam34/chip/sam4l_gpio.h:
Fix GPIO port address; fix compilation errors (2013-6-5).
* arch/arm/src/sam34/chip/sam4l_flashcalw.h: Add header file
for SAM4L FLASH and PICOCACHE definitions (2013-6-5).
* arch/arm/src/sam34/chip/sam4l_pm.h: Add header file for SAM4L
Power Management. Leveraged from AVR32 (2013-6-5).
* arch/arm/src/sam34/sarm4l_clockconfig.c: SAM4L clock configuration
logic (leveraged from AVR32).
* nuttx/arch/arm/src/sam34/sam4l_periphclks.c/h: Add common
logic to enabled/disable SAM4L peripheral clocking (2013-6-5).

26 changes: 19 additions & 7 deletions nuttx/Documentation/NuttxUserGuide.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<h1><big><font color="#3c34ec"><i>NuttX Operating System<p>User's Manual</i></font></big></h1>
<p><small>by</small></p>
<p>Gregory Nutt<p>
<p>Last Updated: Aprill 22, 2013</p>
<p>Last Updated: June 4, 2013</p>
</td>
</tr>
</table>
Expand Down Expand Up @@ -8124,15 +8124,16 @@ <h3><a name="standardio">2.11.5 Standard I/O</a></h3>
<ul><pre>
#include &lt;stdio.h&gt;

void clearerr(register FILE *stream);
int fclose(FILE *stream);
int fflush(FILE *stream);
FILE *fdopen(int fd, const char *type);
int feof(FILE *stream); /* Prototyped but not implemented */
int ferror(FILE *stream); /* Prototyped but not implemented */
int feof(FILE *stream);
int ferror(FILE *stream);
int fileno(FAR FILE *stream);
int fgetc(FILE *stream);
int fgetpos(FILE *stream, fpos_t *pos);
char *fgets(char *s, int n, FILE *stream);
FILE *fdopen(int fd, const char *type);
FILE *fopen(const char *path, const char *type);
int fprintf(FILE *stream, const char *format, ...);
int fputc(int c, FILE *stream);
Expand All @@ -8143,19 +8144,30 @@ <h3><a name="standardio">2.11.5 Standard I/O</a></h3>
long ftell(FILE *stream);
size_t fwrite(const void *ptr, size_t size, size_t n_items, FILE *stream);
char *gets(char *s);
int ungetc(int c, FAR FILE *stream);

int printf(const char *format, ...);
int puts(const char *s);
int rename(const char *source, const char *target);
int snprintf(FAR char *buf, size_t size, const char *format, ...);
int sprintf(char *dest, const char *format, ...);
int asprintf (FAR char **ptr, FAR const char *fmt, ...);
int snprintf(FAR char *buf, size_t size, const char *format, ...);
int sscanf(const char *buf, const char *fmt, ...);
int ungetc(int c, FILE *stream);
void perror(FAR const char *s);
int avsprintf(FAR char **ptr, const char *fmt, va_list ap);

int vprintf(const char *s, va_list ap);
int vfprintf(FILE *stream, const char *s, va_list ap);
int vsprintf(char *buf, const char *s, va_list ap);
int avsprintf(FAR char **ptr, const char *fmt, va_list ap);
int vsnprintf(FAR char *buf, size_t size, const char *format, va_list ap);
int vsscanf(char *buf, const char *s, va_list ap);
int vsprintf(char *buf, const char *s, va_list ap);

FAR FILE *fdopen(int fd, FAR const char *type);
int dprintf(int fd, FAR const char *fmt, ...);
int vdprintf(int fd, FAR const char *fmt, va_list ap);

int statfs(FAR const char *path, FAR struct statfs *buf);

#include &lt;sys/stat.h&gt;

Expand Down
5 changes: 5 additions & 0 deletions nuttx/arch/arm/src/sam34/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ config ARCH_CHIP_SAM4S

menu "AT91SAM3 Peripheral Support"

config SAM_PICOCACHE
bool "PICOCACHE"
depends on ARCH_CHIP_SAM4L
default y

config SAM34_DMA
bool "DMA"
default n
Expand Down
9 changes: 4 additions & 5 deletions nuttx/arch/arm/src/sam34/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,15 @@ endif
# Required SAM3/4 files

CHIP_ASRCS =
CHIP_CSRCS = sam_allocateheap.c sam_clockconfig.c sam_gpioirq.c
CHIP_CSRCS += sam_irq.c sam_lowputc.c sam_serial.c sam_start.c
CHIP_CSRCS += sam_timerisr.c
CHIP_CSRCS = sam_allocateheap.c sam_gpioirq.c sam_irq.c sam_lowputc.c
CHIP_CSRCS += sam_serial.c sam_start.c sam_timerisr.c

# Configuration-dependent SAM3/4 files

ifeq ($(CONFIG_ARCH_CHIP_SAM4L),y)
CHIP_CSRCS += sam4l_gpio.c
CHIP_CSRCS += sam4l_clockconfig.c sam4l_periphclks.c sam4l_gpio.c
else
CHIP_CSRCS += sam3u_gpio.c
CHIP_CSRCS += sam3u_clockconfig.c sam3u_gpio.c
endif

ifeq ($(CONFIG_NUTTX_KERNEL),y)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************************
* arch/arm/src/sam34/chip/sam_eefc.h
* arch/arm/src/sam34/chip/sam3u_eefc.h
*
* Copyright (C) 2009, 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <[email protected]>
Expand Down Expand Up @@ -33,8 +33,8 @@
*
****************************************************************************************/

#ifndef __ARCH_ARM_SRC_SAM34_CHIP_SAM_EEFC_H
#define __ARCH_ARM_SRC_SAM34_CHIP_SAM_EEFC_H
#ifndef __ARCH_ARM_SRC_SAM34_CHIP_SAM3U_EEFC_H
#define __ARCH_ARM_SRC_SAM34_CHIP_SAM3U_EEFC_H

/****************************************************************************************
* Included Files
Expand Down Expand Up @@ -117,4 +117,4 @@
* Public Functions
****************************************************************************************/

#endif /* __ARCH_ARM_SRC_SAM34_CHIP_SAM_EEFC_H */
#endif /* __ARCH_ARM_SRC_SAM34_CHIP_SAM3U_EEFC_H */
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************************
* arch/arm/src/sam34/chip/sam_supc.h
* arch/arm/src/sam34/chip/sam3u_supc.h
*
* Copyright (C) 2009, 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <[email protected]>
Expand Down Expand Up @@ -33,8 +33,8 @@
*
****************************************************************************************/

#ifndef __ARCH_ARM_SRC_SAM34_CHIP_SAM_SUPC_H
#define __ARCH_ARM_SRC_SAM34_CHIP_SAM_SUPC_H
#ifndef __ARCH_ARM_SRC_SAM34_CHIP_SAM3U_SUPC_H
#define __ARCH_ARM_SRC_SAM34_CHIP_SAM3U_SUPC_H

/****************************************************************************************
* Included Files
Expand Down Expand Up @@ -161,4 +161,4 @@
* Public Functions
****************************************************************************************/

#endif /* __ARCH_ARM_SRC_SAM34_CHIP_SAM_SUPC_H */
#endif /* __ARCH_ARM_SRC_SAM34_CHIP_SAM3U_SUPC_H */
Loading

0 comments on commit f42a335

Please sign in to comment.