From: lottaviano Date: Tue, 23 Nov 2010 15:17:41 +0000 (+0000) Subject: doc: Specify error codes returned by kblock_error(). X-Git-Tag: 2.7.0~371 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=e354ab2035ca31d1cac3e736917925a49aa000eb;p=bertos.git doc: Specify error codes returned by kblock_error(). git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4566 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/io/kfile_block.h b/bertos/io/kfile_block.h index 22b77fdc..c5dc26c5 100644 --- a/bertos/io/kfile_block.h +++ b/bertos/io/kfile_block.h @@ -40,6 +40,9 @@ * with the handy KFile interface. * In order to achieve this, the block device must support partial block write. * + * Error codes returned by kfile_error() are specific of the underlying + * KBlock implementation. + * * Make sure you have trimmed the KBlock to avoid overwriting something. * Example: * \code diff --git a/doc/README.bertos b/doc/README.bertos index 65edccce..d8123093 100644 --- a/doc/README.bertos +++ b/doc/README.bertos @@ -1,3 +1,60 @@ +/** +\page short_introduction A 5 minute introduction to BeRTOS + +\section installation Installing BeRTOS on your system + +What do you need when developing an embedded project with BeRTOS? +\li a toolchain for your CPU +\li BeRTOS source code :) +\li supporting binaries for BeRTOS build system +\li supporting tools for BeRTOS Wizard + +See the installation instructions page online for help +on installing BeRTOS on your system. + +Strictly speaking, BeRTOS doesn't need to be 'installed', you can just +take .c files and compile them in your project. + +However, BeRTOS is a complex system with many dependencies between modules. +It's not easy to track the dependencies for each module, so we have developed +a set of tools to make dependency tracking automatic. + +Contact the support forum if you want +help on using BeRTOS without the supporting tools. Be warned, though, that +this method is not supported and we can only point you in the right direction. + +\section organization Project's organization + +Each project has its own full BeRTOS sources, configuration and HAL files. +Why? Because we think that each project has its own life and it must not +interfere with any other project. +Let's say you use a shared BeRTOS version for all of your projects. Each +time you update, you need to check that each and every project still works +correctly. We don't want to do this (and I bet you don't want either). +However, it's still easy to update a single project if you want to. + +A project named Foo is organized as follows: +\li bertos/ - BeRTOS source directory +\li Makefile - BeRTOS build system Makefile +\li project.bertos - Wizard's configuration file +\li foo/ - your project's main directory +\li foo/hw/ - low level HAL files +\li foo/cfg/ - configuration directory +\li foo/foo_user.mk - makefile fragment that you can edit +\li foo/foo.mk - makefile fragment changed by the Wizard, don't edit + +See BeRTOS HAL system for more information on HAL files. + +\section coding Coding guidelines + +Don't change configuration settings by hand, use the Wizard. This is because +sometimes there are more actions to be done than simply changing a value. + +Include configuration files using "..." rather than <...> style, otherwise you +will use default configuration values instead of your project's values. + +*/ + /*!