/* Blackfin Parallel Port Interface (PPI) model
For "old style" PPIs on BF53x/etc... parts.
- Copyright (C) 2010-2011 Free Software Foundation, Inc.
+ Copyright (C) 2010-2014 Free Software Foundation, Inc.
Contributed by Analog Devices, Inc.
This file is part of simulators.
#define mmr_base() offsetof(struct bfin_ppi, control)
#define mmr_offset(mmr) (offsetof(struct bfin_ppi, mmr) - mmr_base())
-static const char * const mmr_names[] = {
+static const char * const mmr_names[] =
+{
"PPI_CONTROL", "PPI_STATUS", "PPI_COUNT", "PPI_DELAY", "PPI_FRAME",
};
#define mmr_name(off) mmr_names[(off) / 4]
*valuep = value;
break;
case mmr_offset(status):
- dv_w1c_2 (valuep, value, (1 << 10));
+ dv_w1c_2 (valuep, value, ~(1 << 10));
break;
default:
dv_bfin_mmr_invalid (me, addr, nr_bytes, true);
return bfin_gui_update (ppi->gui_state, source, nr_bytes);
}
-static const struct hw_port_descriptor bfin_ppi_ports[] = {
+static const struct hw_port_descriptor bfin_ppi_ports[] =
+{
{ "stat", 0, 0, output_port, },
{ NULL, 0, 0, 0, },
};
ppi->color = bfin_gui_color (color);
}
-const struct hw_descriptor dv_bfin_ppi_descriptor[] = {
+const struct hw_descriptor dv_bfin_ppi_descriptor[] =
+{
{"bfin_ppi", bfin_ppi_finish,},
{NULL, NULL},
};