I’m trying to use this library on the Photon. However I get a bunch of errors.
I’ve replaced
#include "stm32f10x.h"
#include "stm32f10x_rcc.h"
#include "stm32f10x_gpio.h"
#include "stm32f10x_tim.h"
#include "stm32f10x_dma.h"
with
#include "stm32f2xx.h"
#include "stm32f2xx_rcc.h"
#include "stm32f2xx_gpio.h"
#include "stm32f2xx_tim.h"
#include "stm32f2xx_dma.h"
However I get errors like:
error: 'RCC_APB2Periph_GPIOB' was not declared in this scope
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB, ENABLE);
error: 'GPIO_Mode_AF_PP' was not declared in this scope
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;
error: 'RCC_AHBPeriph_DMA1' was not declared in this scope
error: 'RCC_AHBPeriphClockCmd' was not declared in this scope
Maybe someone already ported this?
I’m studying this library to make a DMX library that uses DMA.
In that library I also have some issues to get the GPIO right (next to the fact that it compiles, but it doesn’t seem to do the right thing).