Click here to Skip to main content
14,449,160 members

C / C++ / MFC

 
GeneralRe: Tooltip behind dialog Pin
_Flaviu5-Aug-15 3:10
Member_Flaviu5-Aug-15 3:10 
GeneralRe: Tooltip behind dialog Pin
Jochen Arndt5-Aug-15 3:13
professionalJochen Arndt5-Aug-15 3:13 
GeneralRe: Tooltip behind dialog Pin
_Flaviu5-Aug-15 3:17
Member_Flaviu5-Aug-15 3:17 
GeneralRe: Tooltip behind dialog Pin
_Flaviu5-Aug-15 3:27
Member_Flaviu5-Aug-15 3:27 
GeneralRe: Tooltip behind dialog Pin
_Flaviu9-Sep-15 22:43
Member_Flaviu9-Sep-15 22:43 
GeneralRe: Tooltip behind dialog Pin
Jochen Arndt9-Sep-15 23:28
professionalJochen Arndt9-Sep-15 23:28 
GeneralRe: Tooltip behind dialog Pin
_Flaviu10-Sep-15 1:06
Member_Flaviu10-Sep-15 1:06 
QuestionTimer interrupt handler on SAM3x8e – Arduino Due Pin
Vaclav_4-Aug-15 5:25
MemberVaclav_4-Aug-15 5:25 
I really do not know where to post this and I hope I can explain my question , so be gentle.

I am using SAM3x8e hardware timer (TC3) as an interrupt.
The “TC3_Handler” (callback?) global function name is “hardcoded” somewhere and fires as expected at desired intervals.
I do some verification of this by outputting simple message to LCD.
The LCD “class” is declared / instantiated as a global class to the entire application and works amicably.
Simple “lcd.print(“OK”)” is executed just fine in the TC3 handler.
I also do some hardware output – turn on / off LED – just for an additional indication the handler is being executed.

Now I want to execute a method / function of ANOTHER globally defined / instantiated class, again in same TC3 handler.

Adding cpal.Run(); did not compile – undefined “cpal”.

I had to ADD extern CPAL cpal; so it would compile and execute cpal.Run();

My question is
both LCD and CPAL classes are global, the LCD can be used OK, but the CPAL has to have the extern “reference” added into the TC3 handler. Why?

Thanks for reading, appreciate any help.
Cheers
Vaclav
AnswerRe: Timer interrupt handler on SAM3x8e – Arduino Due Pin
CPallini4-Aug-15 7:29
mveCPallini4-Aug-15 7:29 
GeneralSOLVED Re: Timer interrupt handler on SAM3x8e – Arduino Due Pin
Vaclav_4-Aug-15 8:38
MemberVaclav_4-Aug-15 8:38 
GeneralRe: SOLVED Re: Timer interrupt handler on SAM3x8e – Arduino Due Pin
CPallini4-Aug-15 10:50
mveCPallini4-Aug-15 10:50 
QuestionComplex code in conditionals Pin
charlieg4-Aug-15 1:08
Membercharlieg4-Aug-15 1:08 
QuestionRe: Complex code in conditionals Pin
CPallini4-Aug-15 1:20
mveCPallini4-Aug-15 1:20 
AnswerRe: Complex code in conditionals Pin
charlieg4-Aug-15 2:37
Membercharlieg4-Aug-15 2:37 
AnswerRe: Complex code in conditionals Pin
Richard MacCutchan4-Aug-15 1:26
communityengineerRichard MacCutchan4-Aug-15 1:26 
GeneralRe: Complex code in conditionals Pin
charlieg4-Aug-15 2:41
Membercharlieg4-Aug-15 2:41 
GeneralRe: Complex code in conditionals Pin
Richard MacCutchan4-Aug-15 3:44
communityengineerRichard MacCutchan4-Aug-15 3:44 
GeneralRe: Complex code in conditionals Pin
charlieg4-Aug-15 7:22
Membercharlieg4-Aug-15 7:22 
AnswerRe: Complex code in conditionals Pin
Stefan_Lang11-Aug-15 3:34
mveStefan_Lang11-Aug-15 3:34 
Questionstrcpy dilemma - it works half way Pin
Vaclav_3-Aug-15 16:19
MemberVaclav_3-Aug-15 16:19 
GeneralRe: strcpy dilemma - it works half way Pin
PIEBALDconsult3-Aug-15 17:12
professionalPIEBALDconsult3-Aug-15 17:12 
AnswerRe: strcpy dilemma - it works half way Pin
Richard MacCutchan3-Aug-15 21:48
communityengineerRichard MacCutchan3-Aug-15 21:48 
AnswerRe: strcpy dilemma - it works half way Pin
CPallini3-Aug-15 22:08
mveCPallini3-Aug-15 22:08 
GeneralRe: strcpy dilemma - it works half way Pin
Vaclav_4-Aug-15 4:49
MemberVaclav_4-Aug-15 4:49 
GeneralRe: strcpy dilemma - it works half way Pin
CPallini4-Aug-15 7:54
mveCPallini4-Aug-15 7:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.