Commit f77d8824 authored by Alessandro Rubini's avatar Alessandro Rubini

trivial: print the filter table in hex

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 92fc54a4
......@@ -87,7 +87,7 @@
#define PFILTER_MAX_CODE_SIZE 32
#define pfilter_dbg(x, ...) /* nothing */
#define pfilter_dbg pp_printf
extern volatile struct EP_WB *EP;
......@@ -193,6 +193,7 @@ static void pfilter_load(void)
EP->PFCR0 = 0; // disable pfilter
for (i = 0; i < code_pos; i++) {
pfilter_dbg("pos %02i: %x.%08x\n", i, (uint32_t)(code_buf[i] >> 32), (uint32_t)(code_buf[i]));
uint32_t cr0, cr1;
cr1 = EP_PFCR1_MM_DATA_LSB_W(code_buf[i] & 0xfff);
cr0 =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment