Forum: ARM programming with GCC/GNU tools Modular Programming in ARMS

Author: Yee Yee (Company: Infowave) (armgcc)
Posted on:

Rate this post
0 useful
not useful

I have a qns.

I have a list of ARMS source code that is compiled using Embest IDE.

We have written many different functions but it looks very unorganised 
and there seems to be proper grouping of functions by similarity into 

I was looking at object-oriented and those class-based programming. like 
those A::B function with parent-child relationship and data 
structures...  know A::B function is available in C++ but not in C, yet 
embedded software are normally compiled in C.

if i can do some sort of grouping like this and then later on, use 
doxygen to create a proper documentation so that all related functions 
are displayed in the form of parent-child relationship through a 
class-based diagrams (like having nodes), then my objective would have 
been met.

for example, for a GPRS module, we have at least more than 10 different 
functions written for it, such as GPRS_Init, GPRS_GetState etc.... i 
want to be able to group those similar functions together.

Has anyone ever implement such types of modular programming into an 
embedded system? Or is there other IDE that is suitable?

Would appreciate any advice


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.