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 "
LPC17xx.h
"
2
#include "
system_LPC17xx.h
"
3
#include "
lpc17xx_adc.h
"
4
#include "
lpc17xx_can.h
"
5
#include "
lpc17xx_emac.h
"
6
#include "
lpc17xx_exti.h
"
7
#include "
lpc17xx_i2c.h
"
8
#include "
lpc17xx_i2s.h
"
9
#include "
lpc17xx_nvic.h
"
10
#include "
lpc17xx_pwm.h
"
11
#include "
lpc17xx_qei.h
"
12
#include "
lpc17xx_rit.h
"
13
#include "
lpc17xx_rtc.h
"
14
#include "
lpc17xx_spi.h
"
15
#include "
lpc17xx_ssp.h
"
16
#include "
lpc17xx_timer.h
"
17
#include "
lpc17xx_uart.h
"
18
19
void
cpu_deinit_all
() {
20
//** ADC_DeInit(LPC_ADC);
21
CAN_DeInit
(
LPC_CAN1
);
22
CAN_DeInit
(
LPC_CAN2
);
23
EMAC_DeInit
();
24
EXTI_DeInit
();
25
I2C_DeInit
(
LPC_I2C0
);
26
I2C_DeInit
(
LPC_I2C1
);
27
I2C_DeInit
(
LPC_I2C2
);
28
I2S_DeInit
(
LPC_I2S
);
29
NVIC_DeInit
();
30
NVIC_SCBDeInit
();
31
PWM_DeInit
(
LPC_PWM1
);
32
QEI_DeInit
(
LPC_QEI
);
33
//** RIT_DeInit(LPC_RIT);
34
RTC_DeInit
(
LPC_RTC
);
35
SPI_DeInit
(
LPC_SPI
);
36
SSP_DeInit
(
LPC_SSP0
);
37
SSP_DeInit
(
LPC_SSP1
);
38
UART_DeInit
(
LPC_UART0
);
39
UART_DeInit
((
LPC_UART_TypeDef
*)
LPC_UART1
);
40
//** UART_DeInit(LPC_UART2);
41
//** UART_DeInit(LPC_UART3);
42
TIM_DeInit
(
LPC_TIM0
);
43
TIM_DeInit
(
LPC_TIM1
);
44
//** TIM_DeInit(LPC_TIM2);
45
//** TIM_DeInit(LPC_TIM3);
46
}
47
48
void
cpu_early_init
() {
49
cpu_deinit_all
();
50
SystemInit
();
51
}
52
53
extern
uintptr_t
__cs3_interrupt_vector_mutable
[];
54
55
void
cpu_init
() {
56
NVIC_SetVTOR
((uintptr_t)
__cs3_interrupt_vector_mutable
);
57
}
58
59
void
cpu_late_init
() {
60
}
61
62
__attribute__
((section(
".crp"
),weak)) uint32_t crp = 0xffffffff;
63
__attribute__
((section(".som"))) uint32_t __som = 0xffffffff;
arch
arm
lpc17xx
init.c
Generated on Fri Nov 15 2013 05:00:16 for uc-sdk by
1.8.4