Mercurial > nand-ecoscentric
comparison packages/hal/powerpc/viper/current/include/hal_diag.h @ 382:0f9e057c8163
Mostly cosmetic cleanups. TS1000 FLASH package renamed. Remove some old cruft in Viper & TS1000 ports.
| author | gthomas |
|---|---|
| date | Fri, 18 Oct 2002 16:56:52 +0000 |
| parents | d2c90368aeef |
| children | 74dbf4c3f2e1 |
comparison
equal
deleted
inserted
replaced
| 381:6131849116d0 | 382:0f9e057c8163 |
|---|---|
| 56 | 56 |
| 57 #include <pkgconf/hal.h> | 57 #include <pkgconf/hal.h> |
| 58 | 58 |
| 59 #include <cyg/infra/cyg_type.h> | 59 #include <cyg/infra/cyg_type.h> |
| 60 | 60 |
| 61 #if defined(CYGSEM_HAL_VIRTUAL_VECTOR_DIAG) | |
| 62 | |
| 63 #include <cyg/hal/hal_if.h> | 61 #include <cyg/hal/hal_if.h> |
| 64 | 62 |
| 65 #define HAL_DIAG_INIT() hal_if_diag_init() | 63 #define HAL_DIAG_INIT() hal_if_diag_init() |
| 66 #define HAL_DIAG_WRITE_CHAR(_c_) hal_if_diag_write_char(_c_) | 64 #define HAL_DIAG_WRITE_CHAR(_c_) hal_if_diag_write_char(_c_) |
| 67 #define HAL_DIAG_READ_CHAR(_c_) hal_if_diag_read_char(&_c_) | 65 #define HAL_DIAG_READ_CHAR(_c_) hal_if_diag_read_char(&_c_) |
| 68 | 66 |
| 69 #else // everything by steam | |
| 70 | |
| 71 //----------------------------------------------------------------------------- | |
| 72 // functions implemented in hal_diag.c | |
| 73 | |
| 74 externC void hal_diag_init(void); | |
| 75 | |
| 76 externC void hal_diag_write_char(char c); | |
| 77 | |
| 78 externC void hal_diag_read_char(char *c); | |
| 79 | |
| 80 //----------------------------------------------------------------------------- | |
| 81 | |
| 82 #define HAL_DIAG_INIT() hal_diag_init() | |
| 83 | |
| 84 #define HAL_DIAG_WRITE_CHAR(_c_) hal_diag_write_char(_c_) | |
| 85 | |
| 86 #define HAL_DIAG_READ_CHAR(_c_) hal_diag_read_char(&_c_) | |
| 87 | |
| 88 #endif // CYGSEM_HAL_VIRTUAL_VECTOR_DIAG | |
| 89 | |
| 90 //----------------------------------------------------------------------------- | 67 //----------------------------------------------------------------------------- |
| 91 // end of hal_diag.h | 68 // end of hal_diag.h |
| 92 #endif // CYGONCE_HAL_HAL_DIAG_H | 69 #endif // CYGONCE_HAL_HAL_DIAG_H |
