I would like to declare an object pointer as static in a class like so:
class sequencer
{
static HardwareTimer *MyTim;
public:
// etc. etc.
}
HardwareTimer sequencer::*MyTim;
The user in this post had a similar issue, with the difference that mine is a pointer to an object where theirs is not.
The format that I used is copied from the format in the linked post, but I am getting the following compiler error:
in function `sequencer::setup()':
main.cpp:(.text._ZN9sequencer5setupEv+0x60): undefined reference to `sequencer::MyTim'
If additional information is needed, this is in the Arduino environment using the stm32duino core. The library that I am using is here.