aboutsummaryrefslogtreecommitdiff
path: root/driver_fw/cmsis_exports.c
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2019-03-04 23:16:42 +0900
committerjaseg <git@jaseg.net>2019-03-04 23:16:42 +0900
commitd48b92b93507f46ba2623284d8a0841e22e9a09b (patch)
tree902491412a82f8e1d0ddf0fcdcf65bd33477414e /driver_fw/cmsis_exports.c
parentca0439cb8ea63e2e1fbd19873b1540b177e31df7 (diff)
download8seg-d48b92b93507f46ba2623284d8a0841e22e9a09b.tar.gz
8seg-d48b92b93507f46ba2623284d8a0841e22e9a09b.tar.bz2
8seg-d48b92b93507f46ba2623284d8a0841e22e9a09b.zip
driver/fw: Beginnings of a firmware
This code starts up and blinks a led. This means RCC, GPIO and SPI1 are working.
Diffstat (limited to 'driver_fw/cmsis_exports.c')
-rw-r--r--driver_fw/cmsis_exports.c50
1 files changed, 18 insertions, 32 deletions
diff --git a/driver_fw/cmsis_exports.c b/driver_fw/cmsis_exports.c
index a43fbcf..39874b5 100644
--- a/driver_fw/cmsis_exports.c
+++ b/driver_fw/cmsis_exports.c
@@ -1,62 +1,48 @@
#ifndef __GENERATED_CMSIS_HEADER_EXPORTS__
#define __GENERATED_CMSIS_HEADER_EXPORTS__
-#include <stm32f103xb.h>
+#include <stm32f030x6.h>
-/* stm32f103xb.h */
-TIM_TypeDef *tim2 = TIM2;
+/* stm32f030x6.h */
TIM_TypeDef *tim3 = TIM3;
-TIM_TypeDef *tim4 = TIM4;
+TIM_TypeDef *tim14 = TIM14;
RTC_TypeDef *rtc = RTC;
WWDG_TypeDef *wwdg = WWDG;
IWDG_TypeDef *iwdg = IWDG;
-SPI_TypeDef *spi2 = SPI2;
-USART_TypeDef *usart2 = USART2;
-USART_TypeDef *usart3 = USART3;
I2C_TypeDef *i2c1 = I2C1;
-I2C_TypeDef *i2c2 = I2C2;
-USB_TypeDef *usb = USB;
-CAN_TypeDef *can1 = CAN1;
-BKP_TypeDef *bkp = BKP;
PWR_TypeDef *pwr = PWR;
-AFIO_TypeDef *afio = AFIO;
+SYSCFG_TypeDef *syscfg = SYSCFG;
EXTI_TypeDef *exti = EXTI;
-GPIO_TypeDef *gpioa = GPIOA;
-GPIO_TypeDef *gpiob = GPIOB;
-GPIO_TypeDef *gpioc = GPIOC;
-GPIO_TypeDef *gpiod = GPIOD;
-GPIO_TypeDef *gpioe = GPIOE;
ADC_TypeDef *adc1 = ADC1;
-ADC_TypeDef *adc2 = ADC2;
-ADC_Common_TypeDef *adc12_common = ADC12_COMMON;
+ADC_Common_TypeDef *adc1_common = ADC1_COMMON;
+ADC_Common_TypeDef *adc = ADC;
TIM_TypeDef *tim1 = TIM1;
SPI_TypeDef *spi1 = SPI1;
USART_TypeDef *usart1 = USART1;
-SDIO_TypeDef *sdio = SDIO;
+TIM_TypeDef *tim16 = TIM16;
+TIM_TypeDef *tim17 = TIM17;
+DBGMCU_TypeDef *dbgmcu = DBGMCU;
DMA_TypeDef *dma1 = DMA1;
DMA_Channel_TypeDef *dma1_channel1 = DMA1_Channel1;
DMA_Channel_TypeDef *dma1_channel2 = DMA1_Channel2;
DMA_Channel_TypeDef *dma1_channel3 = DMA1_Channel3;
DMA_Channel_TypeDef *dma1_channel4 = DMA1_Channel4;
DMA_Channel_TypeDef *dma1_channel5 = DMA1_Channel5;
-DMA_Channel_TypeDef *dma1_channel6 = DMA1_Channel6;
-DMA_Channel_TypeDef *dma1_channel7 = DMA1_Channel7;
-RCC_TypeDef *rcc = RCC;
-CRC_TypeDef *crc = CRC;
FLASH_TypeDef *flash = FLASH;
OB_TypeDef *ob = OB;
-DBGMCU_TypeDef *dbgmcu = DBGMCU;
+RCC_TypeDef *rcc = RCC;
+CRC_TypeDef *crc = CRC;
+GPIO_TypeDef *gpioa = GPIOA;
+GPIO_TypeDef *gpiob = GPIOB;
+GPIO_TypeDef *gpioc = GPIOC;
+GPIO_TypeDef *gpiod = GPIOD;
+GPIO_TypeDef *gpiof = GPIOF;
-#include <core_cm3.h>
+#include <core_cm0.h>
-/* core_cm3.h */
-SCnSCB_Type *scnscb = SCnSCB;
+/* core_cm0.h */
SCB_Type *scb = SCB;
SysTick_Type *systick = SysTick;
NVIC_Type *nvic = NVIC;
-ITM_Type *itm = ITM;
-DWT_Type *dwt = DWT;
-TPI_Type *tpi = TPI;
-CoreDebug_Type *coredebug = CoreDebug;
#endif//__GENERATED_CMSIS_HEADER_EXPORTS__