void speaker_shoot(void) {
    count++;
    speaker_toggle();
    if(count > MAX_COUNT_SHOOT) {
        speaker_pause();
        speaker_detachInterrupt(SPEAKER_CHANNEL);
        gpio_write_bit(SPEAKER_PORT, SPEAKER_PIN, 0);
    } else if( count % SPEAKER_SHOOT_MOD == 0 ) {
        period += SPEAKER_SHOOT_INCREASE;
        speaker_setPeriod(period);
        speaker_refresh();
    }
}
void speaker_hit(void){
    speaker_count++;
    speaker_toggle();
    if(speaker_count >= MAX_COUNT_HIT){
        speaker_pause();
        speaker_detachInterrupt(SPEAKER_CHANNEL);
        gpio_write_bit(SPEAKER_PORT, SPEAKER_PIN, 0);

        gps_enableInterrupt();

    } else if( speaker_count % SPEAKER_HIT_MOD == 0 ){
        speaker_period += SPEAKER_HIT_INCREASE;
        speaker_setPeriod(speaker_period);
        speaker_refresh();
    }
}