I am trying to create multiple interrupts that use the gpt.
The project should look something like this:

Code:
// compare values that will trigger the interrupts
uint32_t ocvalue1 = 1000;
uint32_t ocvalue2 = 1500;

void setup() {
  // Whatever has to be done to get this working
}

// Stuff that should happen on the first interrupt (triggered by ocvalue1)
void interrupt1(void) {
  // My code
}

// Stuff that should happen on the second interrupt (triggered by ocvalue2)
void interrupt2(void) {
  // My code
}

void loop() {
  // Other code that runs in the meantime
}
What do I have to do in the setup() to have this program do what I described?