zoAvrLib

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

Hello everybody :).

Today I published the following two projects:

- zoAvrLib (Mega AVR function library for AVR-GCC)
- supermodified (Transform a hobby servo to a full DC motor controller)

Source code, schematics etc are included.
Any questions/clarifications are welcome.

As I intend to constantly improve them,
I would very much appreciate comments, feedback
on functionality/wanted features etc.

I do not want to hide that I am the co-owner of a small company that sells the supermodified PCBs. I still think that the source code provided in the projects might be of interest to many.
The zoAvrLib is not commercial in any way.

Thanks in advance!
Giannis

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

Quote:

Mega AVR function library

This intrigued me as you don't actually say what kind of functionality. I thought your project description would sate my curiosity - but it doesn't either. For others the actual Zip contains:

zoBuffer.c
zoBuffer.h
zoError.c
zoError.h
zoI2c.c
zoI2c.h
zoMcu.h
zoString.h
zoSystemTimer.c
zoSystemTimer.h
zoTypes.h
zoUart.c
zoUart.h

That may give some hint of what the library offers but without extracting the .h's it's still a bit of mystery. (the names hint at good things though!)

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

Online documentation for the Library can be found here:

http://www.01mech.com/sites/default/files/zoAvrLibHtml/index.html

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

Ah, that's more like it. But just to note that:

http://www.01mech.com/sites/defa...

mentions a zoAdc.h that is NOT in the .zip. BTW why on earth have you done this:

typedef uint8_t  u08 
  unsigned 8-bit integer 
 
typedef int8_t  s08 
  signed 8-bit integer 
 
typedef uint16_t  u16 
  unsigned 16-bit integer 
 
typedef int16_t  s16 
  signed 16-bit integer 
 
typedef uint32_t  u32 
  unsigned 32-bit integer 
 
typedef int32_t  s32 
  signed 32-bit integer 
 
typedef uint64_t  u64 
  unsigned 64-bit integer 
 
typedef int64_t  s64 
  signed 64-bit integer 

The whole point of stdint.h is to provide standard type names - why over-ride this?

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

There is actually a bigger picture behind this.
I use the same typedefs in other libraries (and compilers) I have
(eg TI's microcontrollers) for uniformity.
In the near future I plan on publishing these too.

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

Quote:

I use the same typedefs in other libraries (and compilers) I have
(eg TI's microcontrollers) for uniformity.

But it was in 1999 that the C99 standard introduced stdint.h? Would it not make sense to adopt it after eleven years?

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

You are right :).

I am now convinced that it would be best this way.
(I am a bit stubborn I guess...)

In the next revision I will update this.

Thanks!