[SOFT] [CODE] Some neat Dev-Cpp routines

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Guyzz

With regards to this post
https://www.avrfreaks.net/index.p...

I have found some neat libs for Dev-Cpp , that makes it possible to simulate some of the things we do in a Win32 platform.

These are verry "rude" examples i have snipped from some source i have made.

But i think you will find this timerlib usefull.

Again all is in "Pure C" , no C++

To install Dev-Cpp either use the wxWidget gui one ..

http://wxdsgn.sourceforge.net/

Or this Dev-Cpp only
http://prdownloads.sourceforge.n...

!!!!!
Make a choice , because you will have to uninstall this one if you really wanted the one with wxWidgets devel , as the wxWidget comes with Dev-Cpp included.

Note :
The

Quote:
Example of serial and timer threads

Needs you to have the dll from timdist.zip on the "dll" path.

/Bingo

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Way cool!!!
Great link and helpful. Your examples makes for quick learning!
Haven't finished checking them all out yet, but thanks Bingo.

John

Resistance is futile…… You will be compiled!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Heh I have numerous times thought about writing some AVR emulating routines myself.

Last time I really wanted to do that, it took only maybe half a day to get the AVR code running in Borland C++ Builder. Real front panel LEDs were checkboxes and real front panel pushbuttons were, well, windows buttons :)

But yes I really have to try the wxwidgets RAD soon.

It's kind of hard to know which way is better emulating something: either compile the C code for win32 environment, or build a emulator to run AVR binaries.. The latter can be made cycle accurate but it is not always a requirement.

Is there a possibility to design custom plug-ins to AVR studio, to emulate something? Like bind the AVR serial port to real serial port on a PC?

- Jani

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Jepael wrote:
Heh I have numerous times thought about writing some AVR emulating routines myself.

Last time I really wanted to do that, it took only maybe half a day to get the AVR code running in Borland C++ Builder. Real front panel LEDs were checkboxes and real front panel pushbuttons were, well, windows buttons :)

But yes I really have to try the wxwidgets RAD soon.

It's kind of hard to know which way is better emulating something: either compile the C code for win32 environment, or build a emulator to run AVR binaries.. The latter can be made cycle accurate but it is not always a requirement.

Is there a possibility to design custom plug-ins to AVR studio, to emulate something? Like bind the AVR serial port to real serial port on a PC?

- Jani

My goal was to get something working with a free compiler.

Quote:
real front panel pushbuttons were, well, windows buttons :)

Cheating .... They are to easy to debounce :wink: :wink:

/Bingo

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Jepael wrote:
Is there a possibility to design custom plug-ins to AVR studio, to emulate something? Like bind the AVR serial port to real serial port on a PC?
I too would like to hear someone respond to this question. It is something I intend to research, but folks with prior experience could help steer the search.

Smiley

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

http://www.atmel.com/dyn/product...

Registration required, I have not tried it myself.