
|
Many times, it's that 10% that makes or
breaks a design. In some cases, that slice represents the competitve
edge and rightfully falls under the rules of intellectual property. |
|
We are people of action as much as words, so have written a new foundation for TinyOS and deployed it in several projects over the last year. The foundation seizes control of the familiar void main (void) and dominates the scheduler, giving the software engineer access to the system at its very core. Any experienced embedded programmer can now take this core and begin developing applications in a familiar way.
If you are an experienced embedded C programmer who is also chafing against TinyOS, feel free to drop us an Email so we can compare notes. Also feel free to download and examine the project source code as provided on the Articles & Papers page.
BAG -- Windows
has the Registry, but an 8-bit controller sure doesn't. Here is
a storage object written in C that allows you to easily save a
retrieve data of arbitrary lengths. A bag allows you
to associate data with a key or "magic cookie."
Simply call BAG_PutTag to save your data, and BAG_GetTag to retrieve
your data. This software module is particularly useful
with configurable embedded devices.
Public Member Functions:
BOOL BAG_ClearAll(void);
BOOL BAG_DelTag(BYTE Tag);
BOOL BAG_PutTag(BYTE Tag,void* Buf,BYTE Len);
BOOL BAG_GetTag(BYTE Tag,void* Buf,BYTE BufLen);
BOOL BAG_Save(void);
BOOL BAG_Init(void);
Click HERE to view the source code
of the bag.
Click HERE to download the bag project,
which includes a sample program, header files, and sources.
EPRINTF.C -- The complete source code for an embeddable
version of printf. You will
no longer need bulky libraries in your applications if you simply
want printf
functionality. Also, you can modifiy eprintf's behavior
according to your needs.
(Source)
ENUM.EXE -- A command line utility for Win32 platforms is
used to sequentially
rename
a folder's contents. This is used for file collections such
as
graphics libraries, form letters, etc... (Source)
SYNTAX: ENUM type [preamble]
EXAMPLE: enum jpg
(This would enumerate all the jpeg files in a
given directory as 1.jpg to n.jpg)
EXAMPLE: enum jpg HIST
(This would enumerate all the jpeg files in a
given directory as HIST1.jpg to HISTn.jpg)
|
|
Oregon Embedded Development Eugene, Oregon Tel: 541-517-1210 Email Us (C) 2006 Oregon Embedded Development |