Mercurial > ecos
comparison packages/hal/arm/cma230/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 | c5536bad4c24 |
| children | 25e238959bae |
comparison
equal
deleted
inserted
replaced
| 109:5720c4b6e1d2 | 110:84e4bde58b26 |
|---|---|
| 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/arm_stub.h> // architecture stub support | 54 #include <cyg/hal/arm_stub.h> // architecture stub support |
| 55 | 55 |
| 56 //---------------------------------------------------------------------------- | 56 //---------------------------------------------------------------------------- |
| 57 // 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. | |
| 58 | 60 |
| 59 extern void hal_cma230_init_serial(void); | 61 externC void cyg_hal_plf_comms_init(void); |
| 60 extern int hal_cma230_get_char(void); | |
| 61 extern void hal_cma230_put_char(int c); | |
| 62 extern int hal_cma230_interruptible(int); | |
| 63 | 62 |
| 64 #define HAL_STUB_PLATFORM_INIT_SERIAL() hal_cma230_init_serial() | 63 #define HAL_STUB_PLATFORM_INIT_SERIAL() cyg_hal_plf_comms_init() |
| 65 #define HAL_STUB_PLATFORM_GET_CHAR() hal_cma230_get_char() | 64 |
| 66 #define HAL_STUB_PLATFORM_PUT_CHAR(c) hal_cma230_put_char((c)) | |
| 67 #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)) |
| 68 #define HAL_STUB_PLATFORM_INTERRUPTIBLE (&hal_cma230_interruptible) | 66 #define HAL_STUB_PLATFORM_INTERRUPTIBLE 0 |
| 69 #define HAL_STUB_PLATFORM_INIT_BREAK_IRQ() CYG_EMPTY_STATEMENT | 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 #define HAL_STUB_PLATFORM_RESET() CYG_EMPTY_STATEMENT | 77 #define HAL_STUB_PLATFORM_RESET() CYG_EMPTY_STATEMENT |
| 78 | 78 |
| 79 #endif // ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS | 79 #define HAL_STUB_PLATFORM_RESET_ENTRY 0xe000000 |
| 80 | 80 |
| 81 //----------------------------------------------------------------------------- | 81 //----------------------------------------------------------------------------- |
| 82 #endif // CYGONCE_HAL_PLF_STUB_H | 82 #endif // CYGONCE_HAL_PLF_STUB_H |
| 83 // End of plf_stub.h | 83 // End of plf_stub.h |
