eurorack/midi2cv/midi2cv.cc

23 lines
387 B
C++
Raw Normal View History

2019-08-20 19:27:35 +00:00
#include <stm32f10x_conf.h>
#include "stmlib/system/system_clock.h"
2019-08-30 09:15:00 +00:00
#include "drivers/gpio.h"
2019-08-20 19:27:35 +00:00
using namespace stmlib;
2019-08-30 09:15:00 +00:00
GPIO gpio;
2019-08-20 19:27:35 +00:00
void Init(void) {
2019-08-30 09:15:00 +00:00
//system_clock.Init();
gpio.Init();
2019-08-20 19:27:35 +00:00
}
int main(void) {
Init();
2019-08-30 09:15:00 +00:00
// hi
gpio.Write(GPIO_PIN(GATE_OUT_1), 1);
gpio.Write(GPIO_PIN(GATE_OUT_2), 0);
gpio.Write(GPIO_PIN(GATE_OUT_3), 1);
gpio.Write(GPIO_PIN(GATE_OUT_4), 0);
2019-08-20 19:27:35 +00:00
}