#ifdef ECC_TEST static inline void ecc_off(void) { *(volatile int *)(INTERNAL_REG_BASE_ADDR+0x4b4) &= ~0x00200000; } static inline void ecc_on(void) { *(volatile int *)(INTERNAL_REG_BASE_ADDR+0x4b4) |= 0x00200000; } static int putshex(const char *buf, int len) { int i; for (i=0;i