This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdint.h" | |
#include <libopencm3/stm32/rcc.h> | |
#include <libopencm3/stm32/f1/rcc.h> | |
#include <libopencm3/stm32/f1/gpio.h> | |
#include <libopencm3/stm32/f1/timer.h> | |
#include <libopencm3/stm32/f1/nvic.h> | |
#include <libopencm3/cm3/systick.h> | |
#include <libopencm3/stm32/f1/dma.h> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Trying to get all 16 pwm outputs on a stm32f103rb | |
*/ | |
#include <libopencm3/stm32/rcc.h> | |
#include <libopencm3/stm32/f1/gpio.h> | |
#include <libopencm3/stm32/f1/timer.h> | |
#define MOTOR1_PHASE_A1 GPIO8 // PA8 fixed | |
#define MOTOR1_PHASE_A2 GPIO9 // PA9 fixed |