Mercurial > ecos
view packages/hal/h8300/sim_s/current/src/delay_us.S @ 3292:7f8e529b4d82 default tip
Fix FREESCALE_EDMA_NBYTES_MLOFFYES_MLOFF() so it works with negative offsets.
| author | vae |
|---|---|
| date | Wed, 29 Apr 2015 23:31:48 +0000 |
| parents | f58b62f3c85d |
| children |
line wrap: on
line source
;;delay_us #include <pkgconf/hal.h> #include <cyg/hal/arch.inc> #include <cyg/hal/basetype.h> #include <cyg/hal/mod_regs_tmr.h> #define DELAY_COUNT (CYGHWR_HAL_H8300_PROCESSOR_SPEED/1000000)/8*25 // .file "delay_us.S" .h8300s .text .global CYG_LABEL_DEFN(hal_delay_us) CYG_LABEL_DEFN(hal_delay_us): shlr.l er0 shlr.l er0 shlr.l er0 mov.l er0,er0 1: ble 4f dec.l #1,er0 bra 1b 4: rts
