From 97acb5d9ee770e4e0ab8f4e968a4858b7d633a57 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 1 Apr 2015 09:05:43 -0600 Subject: [PATCH] Update Documentation --- Documentation/NuttxPortingGuide.html | 155 ++++++++++++++++++--------- include/sys/boardctl.h | 2 +- 2 files changed, 104 insertions(+), 53 deletions(-) diff --git a/Documentation/NuttxPortingGuide.html b/Documentation/NuttxPortingGuide.html index 440487e334..8695be5912 100644 --- a/Documentation/NuttxPortingGuide.html +++ b/Documentation/NuttxPortingGuide.html @@ -12,7 +12,7 @@

NuttX RTOS Porting Guide

-

Last Updated: February 28, 2015

+

Last Updated: April 1, 2015

@@ -30,7 +30,7 @@ 1.0 Introduction
2.0 Directory Structure 4.5 Address Environments - 4.6 APIs Exported by NuttX to Architecture-Specific Logic + 4.6 boardctl() Application Interface
+ 4.7 APIs Exported by NuttX to Architecture-Specific Logic - 4.7 Shared Memory + 4.8 Shared Memory - 4.8 On-Demand Paging
- 4.9 LED Support + 4.9 On-Demand Paging
+ 4.10 LED Support 5.0 NuttX File System
@@ -3813,23 +3814,73 @@ void lpwork_restorepriority(uint8_t reqprio); Zero (OK) on success; a negated errno value on failure. -

4.6 APIs Exported by NuttX to Architecture-Specific Logic

+

4.6 boardctl() Application Interface

+ +

Function Prototype:

+

+

Description:

+ +

Input Parameters:

+ +

Returned Value:

+ + +

4.7 APIs Exported by NuttX to Architecture-Specific Logic

These are standard interfaces that are exported by the OS for use by the architecture specific logic.

-

4.6.1 os_start()

+

4.7.1 os_start()

To be provided

-

4.6.2 OS List Management APIs

+

4.7.2 OS List Management APIs

To be provided

-

4.6.3 sched_process_timer()

+

4.7.3 sched_process_timer()

Function Prototype: void sched_process_timer(void);

Description. @@ -3840,7 +3891,7 @@ void lpwork_restorepriority(uint8_t reqprio); MSEC_PER_TICK.

-

4.6.4 sched_timer_expiration()

+

4.7.4 sched_timer_expiration()

Function Prototype:

-

4.6.5 sched_alaram_expiration()

+

4.7.5 sched_alaram_expiration()

Function Prototype:

-

4.6.6 irq_dispatch()

+

4.7.6 irq_dispatch()

Function Prototype: void irq_dispatch(int irq, FAR void *context);

Description. @@ -3895,7 +3946,7 @@ void sched_timer_expiration(void); the appropriate, registered handling logic.

-

4.7 Shared Memory

+

4.8 Shared Memory

Shared memory interfaces are only available with the NuttX kernel build (CONFIG_BUILD_KERNEL=y). These interfaces support user memory regions that can be shared between multiple user processes. @@ -3904,7 +3955,7 @@ void sched_timer_expiration(void); Those interfaces are described below:

-

4.7.1 up_shmat()

+

4.8.1 up_shmat()

Function Prototype:

-

4.7.2 up_shmdt()

+

4.8.2 up_shmdt()

Function Prototype:

-

4.8 On-Demand Paging

+

4.9 On-Demand Paging

The NuttX On-Demand Paging feature permits embedded MCUs with some limited RAM space to execute large programs from some non-random access media. If the platform meets certain requirements, then NuttX can provide on-demand paging: @@ -3968,7 +4019,7 @@ int up_shmdt(uintptr_t vaddr, unsigned int npages); Please see the NuttX Demand Paging design document for further information.

-

4.9 LED Support

+

4.10 LED Support

A board architecture may or may not have LEDs. @@ -3978,7 +4029,7 @@ int up_shmdt(uintptr_t vaddr, unsigned int npages); However, the support provided by each architecture is sufficiently similar that it can be documented here.

-

4.9.1 Header Files

+

4.10.1 Header Files

LED-related definitions are provided in two header files: @@ -4002,7 +4053,7 @@ int up_shmdt(uintptr_t vaddr, unsigned int npages);

-

4.9.2 LED Definitions

+

4.10.2 LED Definitions

The implementation of LED support is very specific to a board architecture. @@ -4066,7 +4117,7 @@ int up_shmdt(uintptr_t vaddr, unsigned int npages); -

4.9.3 Common LED interfaces

+

4.10.3 Common LED interfaces

The include/nuttx/board.h has declarations like: diff --git a/include/sys/boardctl.h b/include/sys/boardctl.h index b7fa0b104d..a80f5339c8 100644 --- a/include/sys/boardctl.h +++ b/include/sys/boardctl.h @@ -148,7 +148,7 @@ struct boardioc_graphics_s * boardctl() is non-standard OS interface to alleviate the problem. It * basically circumvents the normal device driver ioctl interlace and allows * the application to perform direction IOCTL-like calls to the board-specific - * logic. In it is especially useful for setting up board operational and + * logic. It is especially useful for setting up board operational and * test configurations. * * Input Parameters: