Код
TimeDelay *Delay = new TimeDelay;
Вопрос: где мне объявить TimeDelay объект, что-бы можно было его использовать и в Main.cpp, и в Interrupt.cpp? Очень прошу, подпишите эти строчки в коде ниже

Вот примерный код:
Main.cpp
Код
#pragma once
#include "Interrupt.cpp"
#include "Delay.cpp"
int main (void)
{
Тут будет использоватсья *Delay;
...
}
#include "Interrupt.cpp"
#include "Delay.cpp"
int main (void)
{
Тут будет использоватсья *Delay;
...
}
Delay.cpp
Код
#pragma once
#include "Interrupt.cpp"
class TimeDelay
{
...
};
#include "Interrupt.cpp"
class TimeDelay
{
...
};
Interrupt.cpp
Код
__irq void Interrupt()
{
Тут будет использоватсья *Delay;
...
}
{
Тут будет использоватсья *Delay;
...
}