Commit Graph
44 Commits
Author SHA1 Message Date
Sebastian Huber bcef89f236 Update company name
The embedded brains GmbH & Co. KG is the legal successor of embedded
brains GmbH.
2023-05-20 11:05:26 +02:00
Joel Sherrill d836922525 libmisc/serdbg: Manual header clean up
Updates #4625.
2022-03-10 08:43:49 +01:00
Sebastian Huber 80cf60efec Canonicalize config.h include
Use the following variant which was already used by most source files:

  #ifdef HAVE_CONFIG_H
  #include "config.h"
  #endif
2020-04-16 07:30:00 +02:00
Marçal Comajoan Cara 0446f68056 Spelling and grammar fixes in source code comments (GCI 2018) 2018-12-04 15:12:53 -06:00
Sebastian Huber 0c56264ea7 build: Merge libi2c/Makefile.am 2018-10-10 07:53:13 +02:00
Chris Johns 2afb22b7e1 Remove make preinstall
A speciality of the RTEMS build system was the make preinstall step.  It
copied header files from arbitrary locations into the build tree.  The
header files were included via the -Bsome/build/tree/path GCC command
line option.

This has at least seven problems:

* The make preinstall step itself needs time and disk space.

* Errors in header files show up in the build tree copy.  This makes it
  hard for editors to open the right file to fix the error.

* There is no clear relationship between source and build tree header
  files.  This makes an audit of the build process difficult.

* The visibility of all header files in the build tree makes it
  difficult to enforce API barriers.  For example it is discouraged to
  use BSP-specifics in the cpukit.

* An introduction of a new build system is difficult.

* Include paths specified by the -B option are system headers.  This
  may suppress warnings.

* The parallel build had sporadic failures on some hosts.

This patch removes the make preinstall step.   All installed header
files are moved to dedicated include directories in the source tree.
Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc,
etc.  Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g.
erc32, imx, qoriq, etc.

The new cpukit include directories are:

* cpukit/include

* cpukit/score/cpu/@RTEMS_CPU@/include

* cpukit/libnetworking

The new BSP include directories are:

* bsps/include

* bsps/@RTEMS_CPU@/include

* bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include

There are build tree include directories for generated files.

The include directory order favours the most general header file, e.g.
it is not possible to override general header files via the include path
order.

The "bootstrap -p" option was removed.  The new "bootstrap -H" option
should be used to regenerate the "headers.am" files.

Update #3254.
2018-01-25 08:45:26 +01:00
Sebastian Huber 2858939a2c bsps: Delete superfluous bsp_pretasking_hook()
Use the bsp_predriver_hook() instead.

Update #2408.
2015-12-10 08:32:37 +01:00
Sebastian Huber a0b1b5edb8 Delete CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
This define was superfluous, undocumented and used inconsistently.
2014-12-16 11:34:38 +01:00
Sebastian Huber 39046f766f score: Merge sysstate API into one file 2013-07-24 11:11:21 +02:00
Joel Sherrill b697bc6a44 cpukit: Use Consistent Beginning of Doxygen Group Notation
This is the result of a sed script which converts all uses
of @{ into a consistent form.
2013-01-10 17:06:47 -06:00
Mathew Kallada c5782a26b3 Header File Doxygen Enhancement Task #7 2012-12-28 11:17:49 -06:00
Joel Sherrill 721fe34aae Fix C files which had two semi-colons at EOL 2012-05-31 15:34:36 -05:00
Joel Sherrill 9b4422a251 Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines
  next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
  contain CVS Ids
+ If the processing left a blank line at the top of
  a file, it was removed.
2012-05-11 08:44:13 -05:00
Joel Sherrill 33a105fb69 Revert: Remove CVS Ids
See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html
for details.
2012-05-07 11:08:48 -05:00
Ralf Corsépius ee32f67a6f Remove CVS-Ids. 2012-05-04 09:36:25 +02:00
Joel Sherrill 61250b4ce9 Remove all .cvsignore files. 2012-02-01 10:59:44 -06:00
Joel Sherrill 0d23caa93c 2011-07-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* libblock/src/nvdisk-sram.c, libi2c/libi2c.c,
	libmisc/shell/main_msdosfmt.c: Eliminate use of GNU old-style field
	designator extension as recommended by clang.
2011-07-07 22:15:00 +00:00
Joel Sherrill 39aa5cfae0 2010-08-25 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 125
	Coverity Id 126
	* libi2c/libi2c.c: Use strncpy and snprintf.
2010-08-25 21:17:03 +00:00
Joel Sherrill 3fc6b5651f 2010-08-23 Joel Sherrill <joel.sherrill@oarcorp.com>
* libi2c/libi2c.c: Fix typo in va_end().
2010-08-23 23:18:27 +00:00
Joel Sherrill ad376300ac 2010-06-21 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1554/cpukit
	Coverity Id 17
	* libi2c/libi2c.c, score/src/objectextendinformation.c: Fix memory leak
	on error.
2010-06-21 16:27:37 +00:00
Ralf Corsepius 0893220b2a Whitespace removal. 2009-11-29 12:12:39 +00:00
Joel Sherrill 400a04a200 2009-08-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libi2c/libi2c.c: Fix warnings.
2009-08-16 15:15:01 +00:00
Joel Sherrill c85ab23ab7 2009-08-05 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/include/rtems/libio_.h,
	libcsupport/src/fs_null_handlers.c: Null handlers are now const.
	* libi2c/libi2c.c, libi2c/libi2c.h: Documentation. Do not create
	semaphores on the fly.
	* cpukit/libblock/src/bdpart.c: Fixed format specifier.
	* cpukit/libblock/include/rtems/bdbuf.h, rtems/include/rtems.h,
	rtems/include/rtems/rtems/asr.h, rtems/include/rtems/rtems/attr.h,
	rtems/include/rtems/rtems/barrier.h,
	rtems/include/rtems/rtems/barriermp.h,
	rtems/include/rtems/rtems/cache.h, rtems/include/rtems/rtems/clock.h,
	rtems/include/rtems/rtems/config.h, rtems/include/rtems/rtems/dpmem.h,
	rtems/include/rtems/rtems/event.h,
	rtems/include/rtems/rtems/eventmp.h,
	rtems/include/rtems/rtems/eventset.h,
	rtems/include/rtems/rtems/intr.h, rtems/include/rtems/rtems/message.h,
	rtems/include/rtems/rtems/modes.h, rtems/include/rtems/rtems/mp.h,
	rtems/include/rtems/rtems/msgmp.h, rtems/include/rtems/rtems/object.h,
	rtems/include/rtems/rtems/part.h, rtems/include/rtems/rtems/partmp.h,
	rtems/include/rtems/rtems/ratemon.h,
	rtems/include/rtems/rtems/region.h,
	rtems/include/rtems/rtems/regionmp.h,
	rtems/include/rtems/rtems/rtemsapi.h, rtems/include/rtems/rtems/sem.h,
	rtems/include/rtems/rtems/semmp.h, rtems/include/rtems/rtems/signal.h,
	rtems/include/rtems/rtems/signalmp.h,
	rtems/include/rtems/rtems/status.h,
	rtems/include/rtems/rtems/support.h,
	rtems/include/rtems/rtems/taskmp.h, rtems/include/rtems/rtems/tasks.h,
	rtems/include/rtems/rtems/timer.h, rtems/include/rtems/rtems/types.h,
	rtems/inline/rtems/rtems/support.inl: Documentation.
	* include/rtems/irq-extension.h: Documentation. Added API for
	interrupt servers.
2009-08-05 18:17:12 +00:00
Ralf Corsepius b7cfd627b3 Add missing initializers. 2008-12-23 05:00:57 +00:00
Ralf Corsepius 1e62bd9915 Change header guard to RTEMS conventions.
Add extern's.
2008-12-22 04:36:04 +00:00
Thomas Doerfler 1196226358 Added definitions for asynchronous read and write IO commands. 2008-09-30 10:00:50 +00:00
Joel Sherrill cd784cb75d 2008-09-24 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1326/cpukit
	* libi2c/libi2c.c: Use int for return value when negative values
	possible.
2008-09-24 14:31:26 +00:00
Ralf Corsepius f002800eaf Use bool instead of boolean. 2008-09-04 14:20:51 +00:00
Ralf Corsepius ee0c82f413 Add missing prototypes. 2008-08-02 05:16:26 +00:00
Thomas Doerfler 9ab94a1fc7 made buffer for write calls constant 2008-07-11 10:05:53 +00:00
Thomas Doerfler 5e4831f1d2 Modified error messages. Driver operations table is now constant. New
entry in the rtems_libi2c_tfr_mode_t structure:
        idle_char. This character will be continuously transmitted in
        read only functions.
2008-07-10 06:03:15 +00:00
Thomas Doerfler 42bf1b9f13 adapted gen83xx to new board 2008-05-15 15:10:38 +00:00
Joel Sherrill 2015ca6cc1 2008-05-13 Robert S. Grimes <rsg@alum.mit.edu>
* libi2c/libi2c.h: Fix typo.
2008-05-13 20:37:36 +00:00
Joel Sherrill 797c232dad 2008-01-22 Joel Sherrill <joel.sherrill@OARcorp.com>
* libi2c/README_libi2c: Correct spelling error.
	* score/src/threadclearstate.c: Improve comment.
2008-01-22 15:20:34 +00:00
Till Straumann d2ff24c22d 2007-11-17 Till Straumann <strauman@slac.stanford.edu>
* libi2c/libi2c.c, libi2c/libi2c.h, libi2c/README_libi2c:
	Added checks so that use of 'stdio' is avoided (falling
	back to 'printk') before the system is up.
	Publish driver entry points so that the libi2c driver could
	be added to the applications 'device driver table'.
	This is not fully implemented yet, though, since in addition to
	initializing libi2c the low-level i2c bus drivers as well
	as high-level i2c device drivers need to be registered
	with the library.
	Updated README_libi2c accordingly.
2007-11-21 06:20:49 +00:00
Thomas Doerfler c47890cccf *** empty log message *** 2007-10-26 09:51:41 +00:00
Thomas Doerfler abe0cdb169 added documentation to libi2c 2007-10-25 16:18:38 +00:00
Thomas Doerfler 55a685bddc added SPI support to libi2c
added IRQ support to MPC83xx i2c driver
added mpc83xx spi driver
2007-10-25 16:17:56 +00:00
Joel Sherrill c57316a409 2007-10-11 Daniel Hellstrom <daniel@gaisler.com>
* libi2c/libi2c.c, libi2c/libi2c.h: Add message about needing IMFS.
	Fixed check of status when registering driver. Add use of strerror().
2007-10-11 12:46:50 +00:00
Till Straumann 6a03edd51e 2007-01-16 Till Straumann <strauman@slac.stanford.edu>
* libi2c/libi2c.c, libi2c/libi2c.h:
	Added SLAC/Stanford Authorship Note / Copyright + Liability Disclaimer.
2007-01-17 06:19:38 +00:00
Ralf Corsepius dbe8e5194c Cleanups 2006-01-12 04:19:28 +00:00
Ralf Corsepius 83de377a7f Remove (bogusly added). 2005-11-14 05:15:13 +00:00
Ralf Corsepius 199e748875 Eliminate obsolete types. 2005-11-06 09:22:09 +00:00
Till Straumann 6339f4670c 2005-11-02 straumanatslacdotstanford.edu
* libi2c/Makefile.am, libi2c/Makefile.in, libi2c/libi2c.c,
	libi2c/libi2c.h: New files.
	* Makefile.am, configure.ac, preinstall.am, wrapup/Makefile.am: added a
	simple API/library for i2c devices and drivers for i2c 2-byte eeproms
	and a ds1621 temperature sensor; API is documented in libi2c.h
2005-11-03 02:44:59 +00:00