Mercurial > ecos
changeset 2418:ba2923d2586f
* src/can_lpc2xxx.c: The definition of "info" is missing when only
one CAN channel is configured.
| author | asl |
|---|---|
| date | Fri, 17 Aug 2007 08:48:57 +0000 |
| parents | 05280737f180 |
| children | 2e7c1dfc434c |
| files | packages/devs/can/arm/lpc2xxx/current/ChangeLog packages/devs/can/arm/lpc2xxx/current/src/can_lpc2xxx.c |
| diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/devs/can/arm/lpc2xxx/current/ChangeLog +++ b/packages/devs/can/arm/lpc2xxx/current/ChangeLog @@ -1,3 +1,8 @@ +2007-08-17 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org> + + * src/can_lpc2xxx.c: The definition of "info" is missing when only + one CAN channel is configured. + 2007-08-17 Uwe Kindler <uwe_kindler@web.de> * include/can_lpc2xxx_baudrates.h: Removed all prefixed zeros from
--- a/packages/devs/can/arm/lpc2xxx/current/src/can_lpc2xxx.c +++ b/packages/devs/can/arm/lpc2xxx/current/src/can_lpc2xxx.c @@ -928,7 +928,7 @@ static bool lpc2xxx_can_set_baud(can_cha static Cyg_ErrNo lpc2xxx_can_lookup(struct cyg_devtab_entry** tab, struct cyg_devtab_entry* sub_tab, const char* name) { can_channel* chan = (can_channel*) (*tab)->priv; - CAN_DECLARE_INFO(chan); + lpc2xxx_can_info_t *info = (lpc2xxx_can_info_t *)chan->dev_priv; cyg_uint32 regval; chan->callbacks->can_init(chan);
