Hi
I did something along the lines of this but certain variable names, followed by
'>' (such as in tests), were interpreted as html control codes.
I didn't really want to be putting control codes all over the place but I'll
endeavour to get this working!
Regards,
Dan
|------------->
|(Embedded |
|image moved |
|to file: |
|pic12499.pcx)|
| |
|------------->
>------------------------------------------------------------------------|
|"M. Adam Davis" |
|02/06/2000 13:45 |
>------------------------------------------------------------------------|
Please respond to pic microcontroller discussion list
To: PICLIST@MITVMA.MIT.EDU
cc: (bcc: Dan Lloyd/GBPTD/ABB)
Subject: Re: [OT]: - Firmware Maintenance Templates/Procedures
Security Level:? Internal
Just do
/* This Darn C Program
Program
Creator
Date
... (no HTML code needed to format this area, it appears as
it is written in the browser, and is less cluttered for
the programmer to deal with)
...
This line needs a special comment in the docs
This program does nothing, and is useless
Blah, blah blah>
...
*/
Since there is no 'end' directive to tell the compiler to stop looking, you have
to put all the HTML in comments.
Unfortunately, my mailer may get rid of the HTML tags before it is sent. If you
don't see anything usefull above, go to http://www.ubasics.com/adam/pic/doc/ and
look for cfile.htm. You'll need to add a new C language, as well.
-Adam
D Lloyd wrote:
>
> Hi,
>
> This is a *nice* idea - thanks. Fits in nicely with our philosophy of
> "intranet-ising" everything.
> I'll have a bash at this with some of our *.c files (asm? what's that?
);
> have to see if I can frig the compiler to ignore the html.
>
> Dan
>
> |------------->
> |(Embedded |
> |image moved |
> |to file: |
> |pic20839.pcx)|
> | |
> |------------->
> >------------------------------------------------------------------------|
> |"M. Adam Davis" |
> |01/06/2000 21:03 |
> >------------------------------------------------------------------------|
>
> Please respond to pic microcontroller discussion list
>
> To: PICLIST@MITVMA.MIT.EDU
> cc: (bcc: Dan Lloyd/GBPTD/ABB)
> Subject: Re: [OT]: - Firmware Maintenance Templates/Procedures
>
> Security Level:? Internal
>
> Hmm... It appears as though my attachment didn't go through...
>
> Go to www.ubasics.com/adam/pic/doc to see the files
> asmfile.htm The html formatted assembly file
> TLMCHIP.INI The modified language suite file for mchip
> (use it to replace tlmchip.ini)
> MPASMhtm.MTC The modified MPASM.MTC file
> (use it in addition with mpasm.mtc)
>
> After copying the language files to your mplab directory, choose 'install
> language tools' from the project menu. Under the microchip lanuage tools,
there
> will ba an additional language, "MPASM(*.htm)". Select that, and put in the
> path to your mpasmwin.exe file.
>
> -Adam
>
> "M. Adam Davis" wrote:
> >
> > Along those lines, here is an assembly file marked up with enough HTML to
> > display properly in a browser... (Small attachment! Don't shoot me!)
> >
> > It is an htm file so that I can simply click on it and see the document.
> MPLAB
> > does care what extension a file has so I provided an extra language tool
file
> > and modified microchip's language tool suite file to accept htm files.
> > (mpasm.mtc --> mpasmhtm.mtc with some modification and modified
TLMCHIP.INI).
> I
> > then installed my new language tool "MPASM(*.htm)" and now I can include htm
> > files as nodes in a project and assemble them under mplab.
> >
> > -Adam
> >
> > "Get the facts first, you can distort them later" - Mark Twain
> >
> > Mark Willis wrote:
> > >
> > > (Fixed the subject line, needed a colon after [OT].)
> > >
> > > One thing I've seen that I mostly liked, in past, was in aviation safety
> > > systems - the documentation was installed inside the source (.asm)
> > > files.
> > >
> > > IMO this is a good idea - This way the programmers could actually get at
> > > & see the docs, and were in fact in charge of the documentation's upkeep
> > > and maintenance (gasp!) - SO often, it's marketing or someone who knows
> > > nothing about the code, who writes the manual etc., months later, with
> > > no clue - And it ends up resembling the code's behavior SO little, that
> > > it's rather pathetic.
> > >
> > > They had a tool that'd extract the docs into a file that the
> > > documentation people were allowed to get at, then had a nice tool that
> > > re-formatted that text file into a properly formatted document.
> > > Nowadays, HTML comes to mind Probably could treat it as a separate
> > > "source code" file, and not include it directly into the code. And the
> > > extract document "compiled" (checked syntax) as a matter of course so
> > > you couldn't "oops" without noticing, well, not too badly anyways.
> > >
> > > And of course you could verify that you didn't mess up the code when the
> > > docs were changed (compare the previous .obj files with current freshly
> > > compiled version, should be identical) - twas on a Z80/80186 dual
> > > processor machine.
> > >
> > > You already know about concepts like bug report filing, bug
> > > verification, change control boards, regression testing, and so on, I'll
> > > assume, if you've seen what NASA has to offer. (IMO some co's go way
> > > overboard on paranoia on "If we fix a bug it'll just make 15 new bugs.",
> > > I always feel my competence is being insulted, frankly. Now, "If we let
> > > management make decisions, it'll just encourage them", that definitely
> > > has truth to it, for some values of management ) Treat it like any
> > > other system, look for gaping holes, and design something that's able to
> > > cope with your organizations needs.
> > >
> > > Mark
> > >
> > > D Lloyd wrote:
> > > > Hi PICsters,
> > > >
> > > > As we all know that documentation of code is very important and that we
> all
> > > > *religiously* follow our procedures , does anyone know of
> any good
> > > > templates regarding maintenance as opposed to development?
> > > >
> > > > Such templates would ideally relate to change control procedures, bug
> > > > maintenance etc. I went through the same exercise of obtaining such
> information
> > > > for development but procedures used by the likes of NASA are a bit
> overkill for
> > > > general embedded systems, so cut down information would be more
> beneficial.
> > > >
> > > > Any help/useful pointers would be appreciated.
> > > >
> > > > Kind Regards,
> > > > Dan Lloyd
> > > >
> > > > Firmware Engineer, Electronic Operations
> > > > ABB Metering. England.
> > >
> > > --
> > > I re-ship for small US & overseas businesses, world-wide.
> > > (For private individuals at cost; ask.)
>
>
--------------------------------------------------------------------------------
> Name: pic20839.pcx
> pic20839.pcx Type: PCX Image
(application/x-unknown-content-type-pcxfile)
> Encoding: base64
Content-type: application/octet-stream;
name="pic12499.pcx"
Content-Disposition: attachment; filename="pic12499.pcx"
Attachment converted: creation:pic12499.pcx 1 (????/----) (00016184)