comparison packages/hal/arm/ebsa285/current/include/plf_stub.h @ 110:84e4bde58b26 ecos-sw-2000-07-14

Merge from eCos master repository on 2000-07-14-22:00:02-BST
author jlarmour
date Mon, 17 Jul 2000 14:42:27 +0000
parents 435cced73e2f
children 25e238959bae
comparison
equal deleted inserted replaced
109:5720c4b6e1d2 110:84e4bde58b26
49 49
50 #ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS 50 #ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
51 51
52 #include <cyg/infra/cyg_type.h> // CYG_UNUSED_PARAM 52 #include <cyg/infra/cyg_type.h> // CYG_UNUSED_PARAM
53 53
54 #include <cyg/hal/hal_ebsa285.h> // registers
55 #include <cyg/hal/hal_io.h> // IO macros
56 #include <cyg/hal/arm_stub.h> // architecture stub support 54 #include <cyg/hal/arm_stub.h> // architecture stub support
57 55
58 //---------------------------------------------------------------------------- 56 //----------------------------------------------------------------------------
59 // Define serial stuff. 57 // Define some platform specific communication details. This is mostly
58 // handled by hal_if now, but we need to make sure the comms tables are
59 // properly initialized.
60 60
61 extern void hal_ebsa285_init_serial(void); 61 externC void cyg_hal_plf_comms_init(void);
62 extern int hal_ebsa285_get_char(void);
63 extern void hal_ebsa285_put_char(int c);
64 extern int hal_ebsa285_interruptible(int);
65 62
66 #define HAL_STUB_PLATFORM_INIT_SERIAL() hal_ebsa285_init_serial() 63 #define HAL_STUB_PLATFORM_INIT_SERIAL() cyg_hal_plf_comms_init()
67 #define HAL_STUB_PLATFORM_GET_CHAR() hal_ebsa285_get_char() 64
68 #define HAL_STUB_PLATFORM_PUT_CHAR(c) hal_ebsa285_put_char((c))
69 #define HAL_STUB_PLATFORM_SET_BAUD_RATE(baud) CYG_UNUSED_PARAM(int, (baud)) 65 #define HAL_STUB_PLATFORM_SET_BAUD_RATE(baud) CYG_UNUSED_PARAM(int, (baud))
66 #define HAL_STUB_PLATFORM_INTERRUPTIBLE 0
67 #define HAL_STUB_PLATFORM_INIT_BREAK_IRQ() CYG_EMPTY_STATEMENT
70 68
71 //---------------------------------------------------------------------------- 69 //----------------------------------------------------------------------------
72 // Stub initializer. 70 // Stub initializer.
73 #define HAL_STUB_PLATFORM_INIT() CYG_EMPTY_STATEMENT 71 #define HAL_STUB_PLATFORM_INIT() CYG_EMPTY_STATEMENT
74 72
73 #endif // ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
74
75 //---------------------------------------------------------------------------- 75 //----------------------------------------------------------------------------
76 // Reset. 76 // Reset.
77 #include <cyg/hal/hal_ebsa285.h> // registers
78 #include <cyg/hal/hal_io.h> // IO macros
79
77 #define HAL_STUB_PLATFORM_RESET() \ 80 #define HAL_STUB_PLATFORM_RESET() \
78 CYG_MACRO_START \ 81 CYG_MACRO_START \
79 cyg_uint32 ctrl; \ 82 cyg_uint32 ctrl; \
80 \ 83 \
81 /* If watchdog is already enabled, writing to timer4 has no effect. */ \ 84 /* If watchdog is already enabled, writing to timer4 has no effect. */ \
93 HAL_WRITE_UINT32(SA110_CONTROL, ctrl); \ 96 HAL_WRITE_UINT32(SA110_CONTROL, ctrl); \
94 \ 97 \
95 for(;;); /* wait for it */ \ 98 for(;;); /* wait for it */ \
96 CYG_MACRO_END 99 CYG_MACRO_END
97 100
98 #ifdef CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT 101 #define HAL_STUB_PLATFORM_RESET_ENTRY 0x41000000
99 #define HAL_STUB_PLATFORM_INIT_BREAK_IRQ() CYG_EMPTY_STATEMENT
100 #define HAL_STUB_PLATFORM_INTERRUPTIBLE (&hal_ebsa285_interruptible)
101 #else
102 #define HAL_STUB_PLATFORM_INTERRUPTIBLE 0
103 #endif
104
105 #endif // ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
106 102
107 //----------------------------------------------------------------------------- 103 //-----------------------------------------------------------------------------
108 #endif // CYGONCE_HAL_PLF_STUB_H 104 #endif // CYGONCE_HAL_PLF_STUB_H
109 // End of plf_stub.h 105 // End of plf_stub.h