PRU-SWD: Clean up.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 21 Mar 2016 05:45:04 +0000 (14:45 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 21 Mar 2016 05:45:04 +0000 (14:45 +0900)
commit4dfbe63bf49fde748233c5812dbb9357533a2a36
treeb864624d2e91ecad0c03260daddc0f53cb41ed07
parente28482773d3e2d4b7983a91cb1e5f1e0237c0bf9
PRU-SWD: Clean up.

* pru-swd.p (DRIVE_CLK_HIGH, DRIVE_CLK_LOW, DRIVE_DIO_HIGH)
(DRIVE_DIO_LOW, TRN_INPUT, TRN_OUTPUT, SET_DIO_INPUT): New macros.
(SET_DIO_OUTPUT): Rename.
(DO_SIG_IDLE): DIO=Low during idle cycles and High after finish.
(SIG_GEN): DIO=High after finish.
(WRITE_REG): DIO=High after finish.
pru-swd.p