From 17bd98c1fa7948c0b9df0aab555db9a8c1062f45 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 12 Jul 2010 08:49:55 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2073 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- docs/src/architecture.dox | 15 ++++++++++++++- docs/src/createthread.dox | 2 +- docs/src/memory.dox | 2 +- docs/src/portguide.dox | 6 +++--- 4 files changed, 19 insertions(+), 6 deletions(-) (limited to 'docs/src') diff --git a/docs/src/architecture.dox b/docs/src/architecture.dox index d9a512b10..e5a73239e 100644 --- a/docs/src/architecture.dox +++ b/docs/src/architecture.dox @@ -59,6 +59,7 @@ Platform [label="Platform"]; Kernel [label="Kernel"]; Port [label="Port"]; + Board [label="Board Setup"]; HW [label="Hardware", style="filled", width="3.0", height="0.3"]; Application -> Kernel; @@ -66,9 +67,12 @@ Application -> HW [label=" (not recommended)"]; HAL -> Platform; HAL -> Kernel; + Board -> HW; Platform -> Kernel; + Platform -> Board; Platform -> HW; Kernel -> Port; + Port -> Board [label="Optional", style="dotted"]; Port -> HW; } * @enddot @@ -119,7 +123,7 @@ * @dot digraph example { node [shape=rectangle, fontname=Helvetica, fontsize=8, - fixedsize="true", width="1.0", height="0.25"]; + fixedsize="true", width="1.1", height="0.25"]; edge [fontname=Helvetica, fontsize=8]; Semaphores -> Scheduler; @@ -128,6 +132,7 @@ Condvars -> Mutexes; Events -> Scheduler; Messages -> Scheduler; + "Binary Semaphores" -> Semaphores; Mailboxes -> Semaphores; } * @enddot @@ -151,17 +156,25 @@ fixedsize="true", width="1.0", height="0.25"]; edge [fontname=Helvetica, fontsize=8]; + Application [label="Application", width="2.0"]; + RAM [label="RAM", style="filled", width="2.0"]; Core [label="Core Allocator"]; Dynamic [label="Dynamic Threads"]; Heaps [label="Dynamic Heaps"]; Pools [label="Memory Pools"]; C [label="C-runtime"]; + Application -> Dynamic; + Application -> Heaps; + Application -> Pools; + Application -> C [label="(not recommended)"]; + Application -> Core; Dynamic -> Heaps; Dynamic -> Pools; Heaps -> Core; Pools -> Core; C -> Core; + Core -> RAM } * @enddot * Please also see the article @ref article_manage_memory. diff --git a/docs/src/createthread.dox b/docs/src/createthread.dox index 8bbd74a2d..f3b8e8362 100644 --- a/docs/src/createthread.dox +++ b/docs/src/createthread.dox @@ -147,7 +147,7 @@ int main(int argc, char *argv[]) { } * @endcode * - *

Creating a dynamic thread using the heap allocator

+ *

Creating a dynamic thread using the memory pool allocator

* A pool is a collection of equally sized memory blocks, creating a thread from * a memry pool is very similar to the previous example but the memory of * terminated threads is returned to the memory pool rather than to a heap: diff --git a/docs/src/memory.dox b/docs/src/memory.dox index 1bd39b266..f41dff32f 100644 --- a/docs/src/memory.dox +++ b/docs/src/memory.dox @@ -126,7 +126,7 @@ *
* When designing a system it is recommended to proceed as follow: * -# Use static objects and initializers whenever possible. - * -# Where dynamic allocation is required without have to free the allocated + * -# Where dynamic allocation is required without having to free the allocated * memory then use the Core Memory Manager allocation APIs. * -# Where dynamic allocation is required evaluate if one or more memory * pools can be used. diff --git a/docs/src/portguide.dox b/docs/src/portguide.dox index 170ca75a3..087724084 100644 --- a/docs/src/portguide.dox +++ b/docs/src/portguide.dox @@ -78,7 +78,7 @@ * core (a common example: ARM7) of a supported microcontroller but has * differences in the internal peripherals.
* If this is your case proceed as follow: - * -# Create a new directory under @p ./os/io/platforms and + * -# Create a new directory under @p ./os/hal/platforms and * name it with the microcontroller name (or family name).
* In case of the ARM-based microcontroller you also need to create a * equally named directory under @@ -87,11 +87,11 @@ * see the existing ports as example. * -# Copy into the newly created directory the most closely related existing * chip port or the naked template files from - * @p ./os/io/templates. + * @p ./os/hal/templates. * -# Work out the differences in the drivers or implement them if you started * from the templates. * -# Edit/create the documentation file @p platform.dox, this - * is required if you want to regenerate this documentation including + * is only required if you want to regenerate this documentation including * your work. * . * Usually this kind of port just requires a serial driver (and those are very -- cgit v1.2.3