/* determine current SYSCLK (13'MHz or main oscillator) */
target_read_u32(target, 0x40004050, &sysclk_ctrl);
- if (sysclk_ctrl & 1)
+ if ((sysclk_ctrl & 1) == 0)
sysclk = lpc3180_info->osc_freq;
else
sysclk = 13000;
{
jtag_add_dr_scan(4, fields, -1);
jtag_execute_queue();
- } while ((access & 1) != 1);
+ } while (buf_get_u32(&access, 0, 1) != 1);
#ifdef _DEBUG_INSTRUCTION_EXECUTION_
DEBUG("addr: 0x%x value: %8.8x", address, *value);
{
jtag_add_dr_scan(4, fields, -1);
jtag_execute_queue();
- } while (access != 1);
+ } while (buf_get_u32(&access, 0, 1) != 1);
#ifdef _DEBUG_INSTRUCTION_EXECUTION_
DEBUG("addr: 0x%x value: %8.8x", address, value);