mirror of
https://github.com/apache/nuttx.git
synced 2026-08-31 06:03:12 +00:00
modify the prototype of up_putc(): remove the return value
The architecture code does not care about the return value of up_putc(), so removing it saves two statements:
Before: After:
de4c: e52de004 push {lr} @ (str lr, [sp, #-4]!) | de4c: e52de004 push {lr} @ (str lr, [sp, #-4]!)
de50: e24dd014 sub sp, sp, #20 | de50: e24dd014 sub sp, sp, #20
de54: e58d0004 str r0, [sp, #4] | de54: e58d0004 str r0, [sp, #4]
de58: e30030f8 movw r3, #248 @ 0xf8 | de58: e30030f8 movw r3, #248 @ 0xf8
de5c: e3423000 movt r3, #8192 @ 0x2000 | de5c: e3423000 movt r3, #8192 @ 0x2000
de60: e58d300c str r3, [sp, #12] | de60: e58d300c str r3, [sp, #12]
de64: e59d1004 ldr r1, [sp, #4] | de64: e59d1004 ldr r1, [sp, #4]
de68: e59d000c ldr r0, [sp, #12] | de68: e59d000c ldr r0, [sp, #12]
de6c: ebfffe66 bl d80c <pl011_putc> | de6c: ebfffe66 bl d80c <pl011_putc>
de70: e59d3004 ldr r3, [sp, #4] | de70: e28dd014 add sp, sp, #20
de74: e1a00003 mov r0, r3 | de74: e49df004 pop {pc} @ (ldr pc, [sp], #4)
de78: e28dd014 add sp, sp, #20 |
de7c: e49df004 pop {pc} @ (ldr pc, [sp], #4) |
Signed-off-by: chao an <anchao@lixiang.com>
|
||
|---|---|---|
| .. | ||
| hardware | ||
| at32.h | ||
| at32_adc.c | ||
| at32_adc.h | ||
| at32_allocateheap.c | ||
| at32_can.c | ||
| at32_can.h | ||
| at32_can_sock.c | ||
| at32_dbgmcu.h | ||
| at32_dma.c | ||
| at32_dma.h | ||
| at32_dma_v1mux.c | ||
| at32_dumpgpio.c | ||
| at32_eth.c | ||
| at32_eth.h | ||
| at32_exti.h | ||
| at32_exti_alarm.c | ||
| at32_exti_gpio.c | ||
| at32_exti_pwr.c | ||
| at32_exti_pwr.h | ||
| at32_exti_wakeup.c | ||
| at32_flash.c | ||
| at32_flash.h | ||
| at32_gpio.c | ||
| at32_gpio.h | ||
| at32_i2c.c | ||
| at32_i2c.h | ||
| at32_idle.c | ||
| at32_irq.c | ||
| at32_iwdg.c | ||
| at32_lowputc.c | ||
| at32_lowputc.h | ||
| at32_lse.c | ||
| at32_lsi.c | ||
| at32_mpuinit.c | ||
| at32_mpuinit.h | ||
| at32_otgfs.h | ||
| at32_otgfsdev.c | ||
| at32_otgfshost.c | ||
| at32_pm.h | ||
| at32_pminitialize.c | ||
| at32_pmsleep.c | ||
| at32_pmstandby.c | ||
| at32_pmstop.c | ||
| at32_pwm.c | ||
| at32_pwm.h | ||
| at32_pwr.c | ||
| at32_pwr.h | ||
| at32_rcc.c | ||
| at32_rcc.h | ||
| at32_rtc.c | ||
| at32_rtc.h | ||
| at32_rtc_lowerhalf.c | ||
| at32_sdio.c | ||
| at32_sdio.h | ||
| at32_serial.c | ||
| at32_spi.c | ||
| at32_spi.h | ||
| at32_start.c | ||
| at32_start.h | ||
| at32_syscfg.h | ||
| at32_tim.c | ||
| at32_tim.h | ||
| at32_tim_lowerhalf.c | ||
| at32_timerisr.c | ||
| at32_uart.h | ||
| at32_uid.c | ||
| at32_uid.h | ||
| at32_usbhost.c | ||
| at32_usbhost.h | ||
| at32_userspace.c | ||
| at32_userspace.h | ||
| at32_waste.c | ||
| at32_waste.h | ||
| at32_wdg.h | ||
| at32_wwdg.c | ||
| at32f43xx_flash.c | ||
| at32f43xxx_alarm.h | ||
| at32f43xxx_rcc.c | ||
| at32f43xxx_rtcc.c | ||
| chip.h | ||
| Kconfig | ||
| Make.defs | ||