Commit fbacf042 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Split out gate functions

parent 243c697c
PRG = crowbx
OBJ = crowbx.o midi.o dac.o voice.o uart.o
OBJ = crowbx.o midi.o dac.o voice.o uart.o gate.o
MCU_TARGET = atmega328p
#MCU_TARGET = at90s2313
#MCU_TARGET = at90s2333
......
......@@ -4,26 +4,7 @@
#include "midi.h"
#include "voice.h"
#include "dac.h"
void
gate_on(uint8_t v)
{
if (v > NUM_VOICES) {
return;
}
PORTC |= _BV(v);
}
void
gate_off(uint8_t v)
{
if (v > NUM_VOICES) {
return;
}
PORTC &= ~_BV(v);
}
#include "gate.h"
void
io_init(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment