rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
dfu_init.h
Go to the documentation of this file.
1/*
2 * dfu_init.h
3 *
4 * @date Aug 3, 2019
5 * @author Andrey Belomutskiy, (c) 2012-2020
6 */
7
8#ifndef HW_LAYER_PORTS_STM32_STM32F4_DFU_INIT_H_
9#define HW_LAYER_PORTS_STM32_STM32F4_DFU_INIT_H_
10
11LDR R0, =0x40023844 // RCC_APB2ENR
12LDR R1, =0x00004000 // ENABLE SYSCFG CLOCK
13STR R1, [R0, #0]
14LDR R0, =0x40013800 // SYSCFG_MEMRMP
15LDR R1, =0x00000001 // MAP ROM AT ZERO
16STR R1, [R0, #0]
17LDR R0, =0x1FFF0000 // ROM BASE
18LDR SP,[R0, #0] // SP @ +0
19LDR R0,[R0, #4] // PC @ +4
20
21#endif /* HW_LAYER_PORTS_STM32_STM32F4_DFU_INIT_H_ */
LDR R0
Definition dfu_init.h:11
LDR R1
Definition dfu_init.h:12
LDR LDR SP
Definition dfu_init.h:15