uc-sdk
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
init.c
Go to the documentation of this file.
1
#include "
stm32f10x_adc.h
"
2
#include "
stm32f10x_bkp.h
"
3
#include "
stm32f10x_can.h
"
4
#include "
stm32f10x_cec.h
"
5
#include "
stm32f10x_dac.h
"
6
#include "
stm32f10x_dma.h
"
7
#include "
stm32f10x_exti.h
"
8
#include "
stm32f10x_gpio.h
"
9
#include "
stm32f10x_i2c.h
"
10
#include "
stm32f10x_pwr.h
"
11
#include "
stm32f10x_rcc.h
"
12
#include "
stm32f10x_sdio.h
"
13
#include "
stm32f10x_spi.h
"
14
#include "
stm32f10x_tim.h
"
15
#include "
stm32f10x_usart.h
"
16
#include "
stm32f10x_wwdg.h
"
17
#include "
misc.h
"
18
19
void
cpu_deinit_all
() {
20
//ADC_DeInit(ADC_TypeDef* ADCx);
21
BKP_DeInit
();
22
//CAN_DeInit(CAN_TypeDef* CANx);
23
CEC_DeInit
();
24
DAC_DeInit
();
25
//DMA_DeInit(DMA_Channel_TypeDef* DMAy_Channelx);
26
EXTI_DeInit
();
27
//GPIO_DeInit(GPIO_TypeDef* GPIOx);
28
//I2C_DeInit(I2C_TypeDef* I2Cx);
29
PWR_DeInit
();
30
RCC_DeInit
();
31
SDIO_DeInit
();
32
//SPI_I2S_DeInit(SPI_TypeDef* SPIx);
33
//TIM_DeInit(TIM_TypeDef* TIMx);
34
//USART_DeInit(USART_TypeDef* USARTx);
35
WWDG_DeInit
();
36
}
37
38
extern
uintptr_t
__cs3_interrupt_vector_mutable
[];
39
40
void
cpu_early_init
() {
41
cpu_deinit_all
();
42
SystemInit
();
43
}
44
45
void
cpu_init
() {
46
NVIC_SetVectorTable
(
NVIC_VectTab_RAM
, ((uintptr_t)
__cs3_interrupt_vector_mutable
) -
NVIC_VectTab_RAM
);
47
}
48
49
void
cpu_late_init
() {
50
}
51
52
__attribute__
((section(
".bootptr"
))) uint32_t __bootptr = 0xf1e0f85f;
53
__attribute__
((section(".som"))) uint32_t __som = 0xffffffff;
arch
arm
stm32f10x
init.c
Generated on Fri Nov 15 2013 05:00:16 for uc-sdk by
1.8.4