Search found 2187 matches

by majenko
Tue Dec 27, 2011 7:16 pm
Forum: Forum Suggestions
Topic: Reporting spam?
Replies: 2
Views: 1661

Re: Reporting spam?

Ah - got it.

Even knowing to look for it, it took me a moment to find it.

It's not exactly obvious.
by majenko
Tue Dec 27, 2011 1:18 pm
Forum: Forum Suggestions
Topic: Reporting spam?
Replies: 2
Views: 1661

Reporting spam?

Is there some way we can report spam posts for the moderators to delete them?

Specifically: http://www.chipkit.org/forum/viewtopic.php?f=7&t=656

The ability to flag a post as spam would be very nice.
by majenko
Sun Dec 25, 2011 11:52 am
Forum: Libraries
Topic: Error reported when using typedef pointer
Replies: 3
Views: 899

Re: Error reported when using typedef pointer

My god, that's a cryptic bit of code. My C skillz are not so weak, but I still don't get what's going on there. Things I don't understand: 1. the "lc" variable doesn't seem to actually be used anywhere 2. Yes, there are two definitions of the lc_t type - the one in the lc-addrlabels.h doesn't seem t...
by majenko
Sat Dec 24, 2011 3:36 pm
Forum: Libraries
Topic: Real-Time Clock Library
Replies: 37
Views: 10232

Re: Real-Time Clock Library

I don't know. I don't have a MAX32 to try it on. By all means try it out and let us know your results - it would be interesting to know if it does. My guess is it probably will as the registers in use are more than likely named the same and working the same. The only problem with the MAX32 is gettin...
by majenko
Sat Dec 24, 2011 2:48 pm
Forum: Libraries
Topic: Real-Time Clock Library
Replies: 37
Views: 10232

Re: Real-Time Clock Library

I hadn't either, but another user had and it wouldn't work, so I had to try it out and in the process fix it ;)
by majenko
Sat Dec 24, 2011 11:55 am
Forum: Libraries
Topic: Real-Time Clock Library
Replies: 37
Views: 10232

Re: Real-Time Clock Library

I have added a small fix to support the latest version of mpide. There was a problem with compiling the ISR: RTCC.cpp:19:15: error: variable or field '__ISR' declared void RTCC.cpp:19:30: error: 'ipl3' was not declared in this scope RTCC.cpp:271:1: error: expected '}' at end of input Simply adding: ...
by majenko
Fri Dec 23, 2011 12:02 pm
Forum: Libraries
Topic: Include PSKeyboard.h
Replies: 4
Views: 860

Re: Include PSKeyboard.h

Yes, the library will need to be ported. {rant} I do wish that library programmers would just use the standard wiring function calls instead of setting registers directly! There is very rarely any need to set registers directly, unless you are doing something to a peripheral for which there is no li...
by majenko
Fri Dec 23, 2011 11:57 am
Forum: Libraries
Topic: Interrupt problem
Replies: 6
Views: 1214

Re: Interrupt problem

Ok, I think the problem here is that you are using the serial from within an interrupt. My theory: The serial runs at interrupt priority level 2 (IPL2). The change-notifications run at IPL4. The core timer (what handles the millis() counter etc) runs at IPL2. So, the change notification (4) runs the...
by majenko
Fri Dec 23, 2011 11:14 am
Forum: Libraries
Topic: Interrupt problem
Replies: 6
Views: 1214

Re: Interrupt problem

I have noticed that millis() is somewhat unstable at times. I haven't yet tracked down the cause of it, but delay(), which relies on millis() has often locked up for me on the UNO32â„¢. One point about your program - you should always declare any global variables used in interrupt routines as volati...
by majenko
Wed Dec 07, 2011 5:18 pm
Forum: IDE Integration
Topic: Problem compiling with custom library
Replies: 3
Views: 1239

Re: Problem compiling with custom library

You are more than likely right there. The line in question is:

typedef unsigned char BYTE; /* 8-bit unsigned */

which, if BYTE were defined as 0 would end up:

typedef unsigned char 0; /* 8-bit unsigned */