mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
gen68340/include/bsp.h: Remove rtems_bsp_delay()
This commit is contained in:
1 parent
3139c1d0f0
commit
99a1a2c5e9
1 file changed
-16
@@ -46,22 +46,6 @@ extern "C" {
|
||||
* @brief Motorola MC68340 support.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Simple spin delay in microsecond units for device drivers.
|
||||
* This is very dependent on the clock speed of the target.
|
||||
*/
|
||||
|
||||
#define rtems_bsp_delay( microseconds ) \
|
||||
{ register uint32_t _delay=(microseconds); \
|
||||
register uint32_t _tmp=123; \
|
||||
__asm__ volatile( "0: \
|
||||
nbcd %0 ; \
|
||||
nbcd %0 ; \
|
||||
dbf %1,0b" \
|
||||
: "=d" (_tmp), "=d" (_delay) \
|
||||
: "0" (_tmp), "1" (_delay) ); \
|
||||
}
|
||||
|
||||
/* Constants */
|
||||
|
||||
/* Structures */
|
||||
|
||||
Reference in new issue
Block a user