Click here to Skip to main content
15,886,026 members
Articles / Desktop Programming / MFC

A PIC C Code Wizard

Rate me:
Please Sign up or sign in to vote.
4.94/5 (27 votes)
5 May 2003CPOL5 min read 156.1K   7.9K   46  
Creates C code templates for PIC microcontrollers. The default templates are for use with the Hi-Tech (tm) PICC compiler.
@echo off
rem compile project C files
rem Use NODOC to skip generation of documentation
picc -16F876 -D32 -Zg9 -O -RESROM1F00-1FFF fls.c picc.c
if errorlevel 1 goto error

rem produce documentation using doxygen
if "%1" == "NODOC" goto exit
doxygen fls.doxygen

goto exit

:error
echo --------------------------
echo Build failed due to errors
echo --------------------------

:exit

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Delphi
United States United States
Carlos Buelna works in the automotive industry.

Comments and Discussions