add gpio input/out

1. port0에 13번을 gpio 출력으로 설정
2. port0에 12번을 gpio 입력으로 설정
3. port0에 12번을 입력 상태에 따라 gpio 13번 출력
main
imbis 5 months ago
parent ab69ba1d28
commit f9694cda6a

@ -1,11 +1,50 @@
#include "gpio.h"
#define GPIO_LED_PORT PORT_0
#define GPIO_LED_PIN PIN_13
#define GPIO_BUTTON_PORT PORT_0
#define GPIO_BUTTON_PIN PIN_12
int main(void) int main(void)
{ {
gpio_cfg_t gpio_led;
gpio_cfg_t gpio_button;
while(1); /* Setup output pin. */
gpio_led.port = GPIO_LED_PORT;
gpio_led.mask = GPIO_LED_PIN;
gpio_led.pad = GPIO_PAD_NONE;
gpio_led.func = GPIO_FUNC_OUT;
GPIO_Config(&gpio_led);
GPIO_OutClr(&gpio_led);
/* Setup output pin. */
gpio_button.port = GPIO_BUTTON_PORT;
gpio_button.mask = GPIO_BUTTON_PIN;
gpio_button.pad = GPIO_PAD_PULL_UP;
gpio_button.func = GPIO_FUNC_IN;
GPIO_Config(&gpio_button);
while(1)
{
/* Read state of the input pin. */
if (GPIO_InGet(&gpio_button)) {
/* Input pin was high, set the output pin. */
GPIO_OutSet(&gpio_led);
} else {
/* Input pin was low, clear the output pin. */
GPIO_OutClr(&gpio_led);
}
}
return 0; return 0;
} }

@ -4,6 +4,10 @@ Component: ARM Compiler 5.06 update 7 (build 960) Tool: armlink [4d3601]
Section Cross References Section Cross References
main.o(i.main) refers to gpio.o(i.GPIO_Config) for GPIO_Config
main.o(i.main) refers to gpio.o(i.GPIO_OutClr) for GPIO_OutClr
main.o(i.main) refers to gpio.o(i.GPIO_InGet) for GPIO_InGet
main.o(i.main) refers to gpio.o(i.GPIO_OutSet) for GPIO_OutSet
system_max32660.o(i.$Sub$$__main_after_scatterload) refers to system_max32660.o(i.SystemInit) for SystemInit system_max32660.o(i.$Sub$$__main_after_scatterload) refers to system_max32660.o(i.SystemInit) for SystemInit
system_max32660.o(i.$Sub$$__main_after_scatterload) refers to entry5.o(.ARM.Collect$$$$00000004) for $Super$$__main_after_scatterload system_max32660.o(i.$Sub$$__main_after_scatterload) refers to entry5.o(.ARM.Collect$$$$00000004) for $Super$$__main_after_scatterload
system_max32660.o(i.SystemCoreClockUpdate) refers to system_max32660.o(.data) for SystemCoreClock system_max32660.o(i.SystemCoreClockUpdate) refers to system_max32660.o(.data) for SystemCoreClock
@ -392,19 +396,15 @@ Removing Unused input sections from the image.
Removing flc.o(i.FLC_UnlockInfoBlock), (36 bytes). Removing flc.o(i.FLC_UnlockInfoBlock), (36 bytes).
Removing gpio.o(.rev16_text), (4 bytes). Removing gpio.o(.rev16_text), (4 bytes).
Removing gpio.o(.revsh_text), (4 bytes). Removing gpio.o(.revsh_text), (4 bytes).
Removing gpio.o(i.GPIO_Config), (248 bytes).
Removing gpio.o(i.GPIO_Handler), (100 bytes). Removing gpio.o(i.GPIO_Handler), (100 bytes).
Removing gpio.o(i.GPIO_InGet), (28 bytes).
Removing gpio.o(i.GPIO_Init), (48 bytes). Removing gpio.o(i.GPIO_Init), (48 bytes).
Removing gpio.o(i.GPIO_IntClr), (24 bytes). Removing gpio.o(i.GPIO_IntClr), (24 bytes).
Removing gpio.o(i.GPIO_IntConfig), (128 bytes). Removing gpio.o(i.GPIO_IntConfig), (128 bytes).
Removing gpio.o(i.GPIO_IntDisable), (24 bytes). Removing gpio.o(i.GPIO_IntDisable), (24 bytes).
Removing gpio.o(i.GPIO_IntEnable), (24 bytes). Removing gpio.o(i.GPIO_IntEnable), (24 bytes).
Removing gpio.o(i.GPIO_IntStatus), (28 bytes). Removing gpio.o(i.GPIO_IntStatus), (28 bytes).
Removing gpio.o(i.GPIO_OutClr), (24 bytes).
Removing gpio.o(i.GPIO_OutGet), (28 bytes). Removing gpio.o(i.GPIO_OutGet), (28 bytes).
Removing gpio.o(i.GPIO_OutPut), (32 bytes). Removing gpio.o(i.GPIO_OutPut), (32 bytes).
Removing gpio.o(i.GPIO_OutSet), (24 bytes).
Removing gpio.o(i.GPIO_OutToggle), (28 bytes). Removing gpio.o(i.GPIO_OutToggle), (28 bytes).
Removing gpio.o(i.GPIO_RegisterCallback), (68 bytes). Removing gpio.o(i.GPIO_RegisterCallback), (68 bytes).
Removing gpio.o(.bss), (112 bytes). Removing gpio.o(.bss), (112 bytes).
@ -696,7 +696,7 @@ Removing Unused input sections from the image.
Removing wdt.o(i.WDT_SetResetPeriod), (10 bytes). Removing wdt.o(i.WDT_SetResetPeriod), (10 bytes).
Removing startup_max32660.o(HEAP), (4096 bytes). Removing startup_max32660.o(HEAP), (4096 bytes).
336 unused section(s) (total 25022 bytes) removed from the image. 332 unused section(s) (total 24698 bytes) removed from the image.
============================================================================== ==============================================================================
@ -708,23 +708,23 @@ Image Symbol Table
RESET 0x00000000 Section 284 startup_max32660.o(RESET) RESET 0x00000000 Section 284 startup_max32660.o(RESET)
../clib/microlib/division.c 0x00000000 Number 0 uldiv.o ABSOLUTE ../clib/microlib/division.c 0x00000000 Number 0 uldiv.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry8a.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry7b.o ABSOLUTE ../clib/microlib/init/entry.s 0x00000000 Number 0 entry7b.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry7a.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry2.o ABSOLUTE ../clib/microlib/init/entry.s 0x00000000 Number 0 entry2.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry12a.o ABSOLUTE ../clib/microlib/init/entry.s 0x00000000 Number 0 entry12a.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry5.o ABSOLUTE ../clib/microlib/init/entry.s 0x00000000 Number 0 entry5.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry.o ABSOLUTE ../clib/microlib/init/entry.s 0x00000000 Number 0 entry.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry10a.o ABSOLUTE ../clib/microlib/init/entry.s 0x00000000 Number 0 entry10b.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry12b.o ABSOLUTE ../clib/microlib/init/entry.s 0x00000000 Number 0 entry12b.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry7a.o ABSOLUTE ../clib/microlib/init/entry.s 0x00000000 Number 0 entry8a.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry11b.o ABSOLUTE ../clib/microlib/init/entry.s 0x00000000 Number 0 entry11b.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry11a.o ABSOLUTE ../clib/microlib/init/entry.s 0x00000000 Number 0 entry11a.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry10b.o ABSOLUTE ../clib/microlib/init/entry.s 0x00000000 Number 0 entry10a.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry9b.o ABSOLUTE ../clib/microlib/init/entry.s 0x00000000 Number 0 entry9b.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry9a.o ABSOLUTE ../clib/microlib/init/entry.s 0x00000000 Number 0 entry9a.o ABSOLUTE
../clib/microlib/init/entry.s 0x00000000 Number 0 entry8b.o ABSOLUTE ../clib/microlib/init/entry.s 0x00000000 Number 0 entry8b.o ABSOLUTE
../clib/microlib/longlong.c 0x00000000 Number 0 llshl.o ABSOLUTE
../clib/microlib/longlong.c 0x00000000 Number 0 llushr.o ABSOLUTE ../clib/microlib/longlong.c 0x00000000 Number 0 llushr.o ABSOLUTE
../clib/microlib/longlong.c 0x00000000 Number 0 llshl.o ABSOLUTE
../clib/microlib/string/memcpy.c 0x00000000 Number 0 memcpyb.o ABSOLUTE ../clib/microlib/string/memcpy.c 0x00000000 Number 0 memcpyb.o ABSOLUTE
../clib/microlib/string/memcpy.c 0x00000000 Number 0 memcpya.o ABSOLUTE ../clib/microlib/string/memcpy.c 0x00000000 Number 0 memcpya.o ABSOLUTE
../clib/microlib/string/memset.c 0x00000000 Number 0 memseta.o ABSOLUTE ../clib/microlib/string/memset.c 0x00000000 Number 0 memseta.o ABSOLUTE
@ -796,24 +796,28 @@ Image Symbol Table
.text 0x00000202 Section 0 llushr.o(.text) .text 0x00000202 Section 0 llushr.o(.text)
i.$Sub$$__main_after_scatterload 0x00000222 Section 0 system_max32660.o(i.$Sub$$__main_after_scatterload) i.$Sub$$__main_after_scatterload 0x00000222 Section 0 system_max32660.o(i.$Sub$$__main_after_scatterload)
i.Board_Init 0x0000022e Section 0 system_max32660.o(i.Board_Init) i.Board_Init 0x0000022e Section 0 system_max32660.o(i.Board_Init)
i.PreInit 0x00000232 Section 0 system_max32660.o(i.PreInit) i.GPIO_Config 0x00000234 Section 0 gpio.o(i.GPIO_Config)
i.SYS_ClockDisable 0x00000236 Section 0 mxc_sys.o(i.SYS_ClockDisable) i.GPIO_InGet 0x0000032c Section 0 gpio.o(i.GPIO_InGet)
i.SYS_Clock_Select 0x00000260 Section 0 mxc_sys.o(i.SYS_Clock_Select) i.GPIO_OutClr 0x00000348 Section 0 gpio.o(i.GPIO_OutClr)
i.SYS_Clock_Timeout 0x00000494 Section 0 mxc_sys.o(i.SYS_Clock_Timeout) i.GPIO_OutSet 0x00000360 Section 0 gpio.o(i.GPIO_OutSet)
SYS_Clock_Timeout 0x00000495 Thumb Code 46 mxc_sys.o(i.SYS_Clock_Timeout) i.PreInit 0x00000378 Section 0 system_max32660.o(i.PreInit)
i.SysTick_Handler 0x000004c2 Section 0 mxc_delay.o(i.SysTick_Handler) i.SYS_ClockDisable 0x0000037c Section 0 mxc_sys.o(i.SYS_ClockDisable)
i.SystemCoreClockUpdate 0x000004cc Section 0 system_max32660.o(i.SystemCoreClockUpdate) i.SYS_Clock_Select 0x000003a8 Section 0 mxc_sys.o(i.SYS_Clock_Select)
i.SystemInit 0x00000530 Section 0 system_max32660.o(i.SystemInit) i.SYS_Clock_Timeout 0x000005dc Section 0 mxc_sys.o(i.SYS_Clock_Timeout)
i.__scatterload_copy 0x000005c4 Section 14 handlers.o(i.__scatterload_copy) SYS_Clock_Timeout 0x000005dd Thumb Code 46 mxc_sys.o(i.SYS_Clock_Timeout)
i.__scatterload_null 0x000005d2 Section 2 handlers.o(i.__scatterload_null) i.SysTick_Handler 0x0000060a Section 0 mxc_delay.o(i.SysTick_Handler)
i.__scatterload_zeroinit 0x000005d4 Section 14 handlers.o(i.__scatterload_zeroinit) i.SystemCoreClockUpdate 0x00000614 Section 0 system_max32660.o(i.SystemCoreClockUpdate)
i.main 0x000005e2 Section 0 main.o(i.main) i.SystemInit 0x00000678 Section 0 system_max32660.o(i.SystemInit)
i.mxc_delay_check 0x000005e8 Section 0 mxc_delay.o(i.mxc_delay_check) i.__scatterload_copy 0x0000070c Section 14 handlers.o(i.__scatterload_copy)
i.mxc_delay_handler 0x0000063c Section 0 mxc_delay.o(i.mxc_delay_handler) i.__scatterload_null 0x0000071a Section 2 handlers.o(i.__scatterload_null)
i.mxc_delay_init 0x00000694 Section 0 mxc_delay.o(i.mxc_delay_init) i.__scatterload_zeroinit 0x0000071c Section 14 handlers.o(i.__scatterload_zeroinit)
mxc_delay_init 0x00000695 Thumb Code 154 mxc_delay.o(i.mxc_delay_init) i.main 0x0000072a Section 0 main.o(i.main)
i.mxc_delay_start 0x00000748 Section 0 mxc_delay.o(i.mxc_delay_start) i.mxc_delay_check 0x00000784 Section 0 mxc_delay.o(i.mxc_delay_check)
i.mxc_delay_stop 0x00000794 Section 0 mxc_delay.o(i.mxc_delay_stop) i.mxc_delay_handler 0x000007d8 Section 0 mxc_delay.o(i.mxc_delay_handler)
i.mxc_delay_init 0x00000830 Section 0 mxc_delay.o(i.mxc_delay_init)
mxc_delay_init 0x00000831 Thumb Code 154 mxc_delay.o(i.mxc_delay_init)
i.mxc_delay_start 0x000008e4 Section 0 mxc_delay.o(i.mxc_delay_start)
i.mxc_delay_stop 0x00000930 Section 0 mxc_delay.o(i.mxc_delay_stop)
.data 0x20000000 Section 4 system_max32660.o(.data) .data 0x20000000 Section 4 system_max32660.o(.data)
.data 0x20000008 Section 28 mxc_delay.o(.data) .data 0x20000008 Section 28 mxc_delay.o(.data)
ctrl_save 0x20000008 Data 4 mxc_delay.o(.data) ctrl_save 0x20000008 Data 4 mxc_delay.o(.data)
@ -921,22 +925,26 @@ Image Symbol Table
_ll_ushift_r 0x00000203 Thumb Code 0 llushr.o(.text) _ll_ushift_r 0x00000203 Thumb Code 0 llushr.o(.text)
__main_after_scatterload 0x00000223 Thumb Code 12 system_max32660.o(i.$Sub$$__main_after_scatterload) __main_after_scatterload 0x00000223 Thumb Code 12 system_max32660.o(i.$Sub$$__main_after_scatterload)
Board_Init 0x0000022f Thumb Code 4 system_max32660.o(i.Board_Init) Board_Init 0x0000022f Thumb Code 4 system_max32660.o(i.Board_Init)
PreInit 0x00000233 Thumb Code 4 system_max32660.o(i.PreInit) GPIO_Config 0x00000235 Thumb Code 242 gpio.o(i.GPIO_Config)
SYS_ClockDisable 0x00000237 Thumb Code 42 mxc_sys.o(i.SYS_ClockDisable) GPIO_InGet 0x0000032d Thumb Code 22 gpio.o(i.GPIO_InGet)
SYS_Clock_Select 0x00000261 Thumb Code 556 mxc_sys.o(i.SYS_Clock_Select) GPIO_OutClr 0x00000349 Thumb Code 18 gpio.o(i.GPIO_OutClr)
SysTick_Handler 0x000004c3 Thumb Code 8 mxc_delay.o(i.SysTick_Handler) GPIO_OutSet 0x00000361 Thumb Code 18 gpio.o(i.GPIO_OutSet)
SystemCoreClockUpdate 0x000004cd Thumb Code 80 system_max32660.o(i.SystemCoreClockUpdate) PreInit 0x00000379 Thumb Code 4 system_max32660.o(i.PreInit)
SystemInit 0x00000531 Thumb Code 132 system_max32660.o(i.SystemInit) SYS_ClockDisable 0x0000037d Thumb Code 42 mxc_sys.o(i.SYS_ClockDisable)
__scatterload_copy 0x000005c5 Thumb Code 14 handlers.o(i.__scatterload_copy) SYS_Clock_Select 0x000003a9 Thumb Code 556 mxc_sys.o(i.SYS_Clock_Select)
__scatterload_null 0x000005d3 Thumb Code 2 handlers.o(i.__scatterload_null) SysTick_Handler 0x0000060b Thumb Code 8 mxc_delay.o(i.SysTick_Handler)
__scatterload_zeroinit 0x000005d5 Thumb Code 14 handlers.o(i.__scatterload_zeroinit) SystemCoreClockUpdate 0x00000615 Thumb Code 80 system_max32660.o(i.SystemCoreClockUpdate)
main 0x000005e3 Thumb Code 4 main.o(i.main) SystemInit 0x00000679 Thumb Code 132 system_max32660.o(i.SystemInit)
mxc_delay_check 0x000005e9 Thumb Code 72 mxc_delay.o(i.mxc_delay_check) __scatterload_copy 0x0000070d Thumb Code 14 handlers.o(i.__scatterload_copy)
mxc_delay_handler 0x0000063d Thumb Code 76 mxc_delay.o(i.mxc_delay_handler) __scatterload_null 0x0000071b Thumb Code 2 handlers.o(i.__scatterload_null)
mxc_delay_start 0x00000749 Thumb Code 72 mxc_delay.o(i.mxc_delay_start) __scatterload_zeroinit 0x0000071d Thumb Code 14 handlers.o(i.__scatterload_zeroinit)
mxc_delay_stop 0x00000795 Thumb Code 20 mxc_delay.o(i.mxc_delay_stop) main 0x0000072b Thumb Code 90 main.o(i.main)
Region$$Table$$Base 0x000007b0 Number 0 anon$$obj.o(Region$$Table) mxc_delay_check 0x00000785 Thumb Code 72 mxc_delay.o(i.mxc_delay_check)
Region$$Table$$Limit 0x000007d0 Number 0 anon$$obj.o(Region$$Table) mxc_delay_handler 0x000007d9 Thumb Code 76 mxc_delay.o(i.mxc_delay_handler)
mxc_delay_start 0x000008e5 Thumb Code 72 mxc_delay.o(i.mxc_delay_start)
mxc_delay_stop 0x00000931 Thumb Code 20 mxc_delay.o(i.mxc_delay_stop)
Region$$Table$$Base 0x0000094c Number 0 anon$$obj.o(Region$$Table)
Region$$Table$$Limit 0x0000096c Number 0 anon$$obj.o(Region$$Table)
SystemCoreClock 0x20000000 Data 4 system_max32660.o(.data) SystemCoreClock 0x20000000 Data 4 system_max32660.o(.data)
__initial_sp 0x20002028 Data 0 startup_max32660.o(STACK) __initial_sp 0x20002028 Data 0 startup_max32660.o(STACK)
@ -948,61 +956,66 @@ Memory Map of the image
Image Entry point : 0x0000011d Image Entry point : 0x0000011d
Load Region LR_IROM1 (Base: 0x00000000, Size: 0x000007f4, Max: 0x00080000, ABSOLUTE) Load Region LR_IROM1 (Base: 0x00000000, Size: 0x00000990, Max: 0x00080000, ABSOLUTE)
Execution Region ER_IROM1 (Exec base: 0x00000000, Load base: 0x00000000, Size: 0x000007d0, Max: 0x00080000, ABSOLUTE) Execution Region ER_IROM1 (Exec base: 0x00000000, Load base: 0x00000000, Size: 0x0000096c, Max: 0x00080000, ABSOLUTE)
Exec Addr Load Addr Size Type Attr Idx E Section Name Object Exec Addr Load Addr Size Type Attr Idx E Section Name Object
0x00000000 0x00000000 0x0000011c Data RO 2299 RESET startup_max32660.o 0x00000000 0x00000000 0x0000011c Data RO 2300 RESET startup_max32660.o
0x0000011c 0x0000011c 0x00000000 Code RO 2304 * .ARM.Collect$$$$00000000 mc_w.l(entry.o) 0x0000011c 0x0000011c 0x00000000 Code RO 2305 * .ARM.Collect$$$$00000000 mc_w.l(entry.o)
0x0000011c 0x0000011c 0x00000004 Code RO 2316 .ARM.Collect$$$$00000001 mc_w.l(entry2.o) 0x0000011c 0x0000011c 0x00000004 Code RO 2317 .ARM.Collect$$$$00000001 mc_w.l(entry2.o)
0x00000120 0x00000120 0x00000004 Code RO 2305 .ARM.Collect$$$$00000004 mc_w.l(entry5.o) 0x00000120 0x00000120 0x00000004 Code RO 2306 .ARM.Collect$$$$00000004 mc_w.l(entry5.o)
0x00000124 0x00000124 0x00000000 Code RO 2320 .ARM.Collect$$$$00000008 mc_w.l(entry7b.o) 0x00000124 0x00000124 0x00000000 Code RO 2321 .ARM.Collect$$$$00000008 mc_w.l(entry7b.o)
0x00000124 0x00000124 0x00000000 Code RO 2322 .ARM.Collect$$$$0000000A mc_w.l(entry8b.o) 0x00000124 0x00000124 0x00000000 Code RO 2323 .ARM.Collect$$$$0000000A mc_w.l(entry8b.o)
0x00000124 0x00000124 0x00000008 Code RO 2323 .ARM.Collect$$$$0000000B mc_w.l(entry9a.o) 0x00000124 0x00000124 0x00000008 Code RO 2324 .ARM.Collect$$$$0000000B mc_w.l(entry9a.o)
0x0000012c 0x0000012c 0x00000004 Code RO 2330 .ARM.Collect$$$$0000000E mc_w.l(entry12b.o) 0x0000012c 0x0000012c 0x00000004 Code RO 2331 .ARM.Collect$$$$0000000E mc_w.l(entry12b.o)
0x00000130 0x00000130 0x00000000 Code RO 2325 .ARM.Collect$$$$0000000F mc_w.l(entry10a.o) 0x00000130 0x00000130 0x00000000 Code RO 2326 .ARM.Collect$$$$0000000F mc_w.l(entry10a.o)
0x00000130 0x00000130 0x00000000 Code RO 2327 .ARM.Collect$$$$00000011 mc_w.l(entry11a.o) 0x00000130 0x00000130 0x00000000 Code RO 2328 .ARM.Collect$$$$00000011 mc_w.l(entry11a.o)
0x00000130 0x00000130 0x00000004 Code RO 2317 .ARM.Collect$$$$00002712 mc_w.l(entry2.o) 0x00000130 0x00000130 0x00000004 Code RO 2318 .ARM.Collect$$$$00002712 mc_w.l(entry2.o)
0x00000134 0x00000134 0x00000028 Code RO 2300 .text startup_max32660.o 0x00000134 0x00000134 0x00000028 Code RO 2301 .text startup_max32660.o
0x0000015c 0x0000015c 0x00000062 Code RO 2308 .text mc_w.l(uldiv.o) 0x0000015c 0x0000015c 0x00000062 Code RO 2309 .text mc_w.l(uldiv.o)
0x000001be 0x000001be 0x00000002 PAD 0x000001be 0x000001be 0x00000002 PAD
0x000001c0 0x000001c0 0x00000024 Code RO 2331 .text mc_w.l(init.o) 0x000001c0 0x000001c0 0x00000024 Code RO 2332 .text mc_w.l(init.o)
0x000001e4 0x000001e4 0x0000001e Code RO 2333 .text mc_w.l(llshl.o) 0x000001e4 0x000001e4 0x0000001e Code RO 2334 .text mc_w.l(llshl.o)
0x00000202 0x00000202 0x00000020 Code RO 2335 .text mc_w.l(llushr.o) 0x00000202 0x00000202 0x00000020 Code RO 2336 .text mc_w.l(llushr.o)
0x00000222 0x00000222 0x0000000c Code RO 16 i.$Sub$$__main_after_scatterload system_max32660.o 0x00000222 0x00000222 0x0000000c Code RO 26 i.$Sub$$__main_after_scatterload system_max32660.o
0x0000022e 0x0000022e 0x00000004 Code RO 17 i.Board_Init system_max32660.o 0x0000022e 0x0000022e 0x00000004 Code RO 27 i.Board_Init system_max32660.o
0x00000232 0x00000232 0x00000004 Code RO 18 i.PreInit system_max32660.o 0x00000232 0x00000232 0x00000002 PAD
0x00000236 0x00000236 0x0000002a Code RO 1177 i.SYS_ClockDisable mxc_sys.o 0x00000234 0x00000234 0x000000f8 Code RO 350 i.GPIO_Config gpio.o
0x00000260 0x00000260 0x00000234 Code RO 1181 i.SYS_Clock_Select mxc_sys.o 0x0000032c 0x0000032c 0x0000001c Code RO 352 i.GPIO_InGet gpio.o
0x00000494 0x00000494 0x0000002e Code RO 1182 i.SYS_Clock_Timeout mxc_sys.o 0x00000348 0x00000348 0x00000018 Code RO 359 i.GPIO_OutClr gpio.o
0x000004c2 0x000004c2 0x00000008 Code RO 1072 i.SysTick_Handler mxc_delay.o 0x00000360 0x00000360 0x00000018 Code RO 362 i.GPIO_OutSet gpio.o
0x000004ca 0x000004ca 0x00000002 PAD 0x00000378 0x00000378 0x00000004 Code RO 28 i.PreInit system_max32660.o
0x000004cc 0x000004cc 0x00000064 Code RO 19 i.SystemCoreClockUpdate system_max32660.o 0x0000037c 0x0000037c 0x0000002a Code RO 1178 i.SYS_ClockDisable mxc_sys.o
0x00000530 0x00000530 0x00000094 Code RO 20 i.SystemInit system_max32660.o 0x000003a6 0x000003a6 0x00000002 PAD
0x000005c4 0x000005c4 0x0000000e Code RO 2339 i.__scatterload_copy mc_w.l(handlers.o) 0x000003a8 0x000003a8 0x00000234 Code RO 1182 i.SYS_Clock_Select mxc_sys.o
0x000005d2 0x000005d2 0x00000002 Code RO 2340 i.__scatterload_null mc_w.l(handlers.o) 0x000005dc 0x000005dc 0x0000002e Code RO 1183 i.SYS_Clock_Timeout mxc_sys.o
0x000005d4 0x000005d4 0x0000000e Code RO 2341 i.__scatterload_zeroinit mc_w.l(handlers.o) 0x0000060a 0x0000060a 0x00000008 Code RO 1073 i.SysTick_Handler mxc_delay.o
0x000005e2 0x000005e2 0x00000004 Code RO 1 i.main main.o 0x00000612 0x00000612 0x00000002 PAD
0x000005e6 0x000005e6 0x00000002 PAD 0x00000614 0x00000614 0x00000064 Code RO 29 i.SystemCoreClockUpdate system_max32660.o
0x000005e8 0x000005e8 0x00000054 Code RO 1074 i.mxc_delay_check mxc_delay.o 0x00000678 0x00000678 0x00000094 Code RO 30 i.SystemInit system_max32660.o
0x0000063c 0x0000063c 0x00000058 Code RO 1075 i.mxc_delay_handler mxc_delay.o 0x0000070c 0x0000070c 0x0000000e Code RO 2340 i.__scatterload_copy mc_w.l(handlers.o)
0x00000694 0x00000694 0x000000b4 Code RO 1076 i.mxc_delay_init mxc_delay.o 0x0000071a 0x0000071a 0x00000002 Code RO 2341 i.__scatterload_null mc_w.l(handlers.o)
0x00000748 0x00000748 0x0000004c Code RO 1077 i.mxc_delay_start mxc_delay.o 0x0000071c 0x0000071c 0x0000000e Code RO 2342 i.__scatterload_zeroinit mc_w.l(handlers.o)
0x00000794 0x00000794 0x0000001c Code RO 1078 i.mxc_delay_stop mxc_delay.o 0x0000072a 0x0000072a 0x0000005a Code RO 1 i.main main.o
0x000007b0 0x000007b0 0x00000020 Data RO 2337 Region$$Table anon$$obj.o 0x00000784 0x00000784 0x00000054 Code RO 1075 i.mxc_delay_check mxc_delay.o
0x000007d8 0x000007d8 0x00000058 Code RO 1076 i.mxc_delay_handler mxc_delay.o
0x00000830 0x00000830 0x000000b4 Code RO 1077 i.mxc_delay_init mxc_delay.o
0x000008e4 0x000008e4 0x0000004c Code RO 1078 i.mxc_delay_start mxc_delay.o
0x00000930 0x00000930 0x0000001c Code RO 1079 i.mxc_delay_stop mxc_delay.o
0x0000094c 0x0000094c 0x00000020 Data RO 2338 Region$$Table anon$$obj.o
Execution Region RW_IRAM1 (Exec base: 0x20000000, Load base: 0x000007d0, Size: 0x00002028, Max: 0x00020000, ABSOLUTE) Execution Region RW_IRAM1 (Exec base: 0x20000000, Load base: 0x0000096c, Size: 0x00002028, Max: 0x00020000, ABSOLUTE)
Exec Addr Load Addr Size Type Attr Idx E Section Name Object Exec Addr Load Addr Size Type Attr Idx E Section Name Object
0x20000000 0x000007d0 0x00000004 Data RW 21 .data system_max32660.o 0x20000000 0x0000096c 0x00000004 Data RW 31 .data system_max32660.o
0x20000004 0x000007d4 0x00000004 PAD 0x20000004 0x00000970 0x00000004 PAD
0x20000008 0x000007d8 0x0000001c Data RW 1079 .data mxc_delay.o 0x20000008 0x00000974 0x0000001c Data RW 1080 .data mxc_delay.o
0x20000024 0x000007f4 0x00000004 PAD 0x20000024 0x00000990 0x00000004 PAD
0x20000028 - 0x00002000 Zero RW 2297 STACK startup_max32660.o 0x20000028 - 0x00002000 Zero RW 2298 STACK startup_max32660.o
============================================================================== ==============================================================================
@ -1012,16 +1025,18 @@ Image component sizes
Code (inc. data) RO Data RW Data ZI Data Debug Object Name Code (inc. data) RO Data RW Data ZI Data Debug Object Name
4 0 0 0 0 1895 main.o 0 0 0 0 0 13004 dma.o
324 30 0 0 0 3015 gpio.o
90 0 0 0 0 7075 main.o
464 62 0 28 0 4263 mxc_delay.o 464 62 0 28 0 4263 mxc_delay.o
652 8 0 0 0 6974 mxc_sys.o 652 8 0 0 0 6974 mxc_sys.o
40 8 284 0 8192 812 startup_max32660.o 40 8 284 0 8192 812 startup_max32660.o
268 36 0 4 0 115183 system_max32660.o 268 36 0 4 0 112119 system_max32660.o
---------------------------------------------------------------------- ----------------------------------------------------------------------
1432 114 316 36 8196 129127 Object Totals 1844 144 316 36 8196 147262 Object Totals
0 0 32 0 0 0 (incl. Generated) 0 0 32 0 0 0 (incl. Generated)
4 0 0 4 4 0 (incl. Padding) 6 0 0 4 4 0 (incl. Padding)
---------------------------------------------------------------------- ----------------------------------------------------------------------
@ -1062,15 +1077,15 @@ Image component sizes
Code (inc. data) RO Data RW Data ZI Data Debug Code (inc. data) RO Data RW Data ZI Data Debug
1684 130 316 36 8196 128475 Grand Totals 2096 160 316 36 8196 146110 Grand Totals
1684 130 316 36 8196 128475 ELF Image Totals 2096 160 316 36 8196 146110 ELF Image Totals
1684 130 316 36 0 0 ROM Totals 2096 160 316 36 0 0 ROM Totals
============================================================================== ==============================================================================
Total RO Size (Code + RO Data) 2000 ( 1.95kB) Total RO Size (Code + RO Data) 2412 ( 2.36kB)
Total RW Size (RW Data + ZI Data) 8232 ( 8.04kB) Total RW Size (RW Data + ZI Data) 8232 ( 8.04kB)
Total ROM Size (Code + RO Data + RW Data) 2036 ( 1.99kB) Total ROM Size (Code + RO Data + RW Data) 2448 ( 2.39kB)
============================================================================== ==============================================================================

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save