Changeset c2011b47 in rtems for bsps/sparc/shared


Ignore:
Timestamp:
Feb 21, 2018, 6:23:35 PM (2 years ago)
Author:
Martin Aberg <maberg@…>
Branches:
master
Children:
431661d
Parents:
1a2656cd
git-author:
Martin Aberg <maberg@…> (02/21/18 18:23:35)
git-committer:
Daniel Hellstrom <daniel@…> (09/20/18 10:48:32)
Message:

leon, grspw_pkt: support CCSDS/ISO16 data CRC

When the CCSDS/CCITT CRC-16 and 16-bit ISO-checksum logic is available in
GRSPW2, the DCRCT field is used to determine how to generate the CRC/checksum
code. grspw_hw_sup has been extended with the field ccsds_crc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/sparc/shared/spw/grspw_pkt.c

    r1a2656cd rc2011b47  
    114114#define GRSPW_CTRL_NCH_BIT      27
    115115#define GRSPW_CTRL_PO_BIT       26
     116#define GRSPW_CTRL_CC_BIT       25
    116117#define GRSPW_CTRL_ID_BIT       24
    117118#define GRSPW_CTRL_LE_BIT       22
     
    138139#define GRSPW_CTRL_NCH  (0x3<<GRSPW_CTRL_NCH_BIT)
    139140#define GRSPW_CTRL_PO   (1<<GRSPW_CTRL_PO_BIT)
     141#define GRSPW_CTRL_CC   (1<<GRSPW_CTRL_CC_BIT)
    140142#define GRSPW_CTRL_ID   (1<<GRSPW_CTRL_ID_BIT)
    141143#define GRSPW_CTRL_LE   (1<<GRSPW_CTRL_LE_BIT)
     
    31213123        priv->hwsup.rmap = (ctrl & GRSPW_CTRL_RA) >> GRSPW_CTRL_RA_BIT;
    31223124        priv->hwsup.rmap_crc = (ctrl & GRSPW_CTRL_RC) >> GRSPW_CTRL_RC_BIT;
     3125        priv->hwsup.ccsds_crc = (ctrl & GRSPW_CTRL_CC) >> GRSPW_CTRL_CC_BIT;
    31233126        priv->hwsup.rx_unalign = (ctrl & GRSPW_CTRL_RX) >> GRSPW_CTRL_RX_BIT;
    31243127        priv->hwsup.nports = 1 + ((ctrl & GRSPW_CTRL_PO) >> GRSPW_CTRL_PO_BIT);
Note: See TracChangeset for help on using the changeset viewer.