|
Hi, I'm a Windows C++ programmer, used to using doubles, just because why not and making huge classes. So this pic stuff is pretty different to say the least.
So far so good, still trying to get an interrupt to work, but it's obviously me, not the compiler, I did a search, popular topic!
Anyway about the compiler, BoostC, I like it better that Hitec, it seems to be a little C++ like in some ways( thats good :-).
Question 1; Function prototypes, It looks like they are allowed, but not required nor enforced?
If I call delay_ms(1000 ); I get no warnings.
Is there a way to make it more strict? I don't see a warning level setting anywhere, maybe I missed it?
Interrupts; if I don't put the interrupt function in my code, is there a default handler?
Can I put the interrupt handler in any file? ( seems weird not to have to 'hook it up')
Global variables vs volatile; If I declare a variable in a header file, and wish to use it in both a main thread function and an interrupt handler, do I really need to declare it volatile? Why would the compiler make a copy of it for the interrupt??
Thanks Keith
|
|