Skip to content

Commit

Permalink
cpu/stm32/eth: improve defines concerning checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztof-cabaj committed Dec 10, 2024
1 parent 428a424 commit bb982ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cpu/stm32/include/periph/cpu_eth.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ typedef struct eth_dma_desc {
* | `0b10` | Calculate and insert IPv4 checksum, insert pre-calculated payload checksum |
* | `0b11 | Calculated and insert both IPv4 and payload checksum |
*/
#define TX_DESC_STAT_CIC (BIT22 | BIT23)
#define TX_DESC_STAT_CIC (BIT22 | BIT23)
#define TX_DESC_STAT_CIC_NO_HW_CHECKSUM (0) /**< Do not compute checksums in hardware */

Check warning on line 144 in cpu/stm32/include/periph/cpu_eth.h

View workflow job for this annotation

GitHub Actions / static-tests

line is longer than 100 characters
#define TX_DESC_STAT_CIC_HW_CHECKSUM_IPV4 (BIT22) /**< Compute the IPv4 header checksum in hardware */

Check warning on line 145 in cpu/stm32/include/periph/cpu_eth.h

View workflow job for this annotation

GitHub Actions / static-tests

line is longer than 100 characters
#define TX_DESC_STAT_CIC_HW_CHECKSUM_BOTH (BIT22 | BIT32) /**< Compute the IPv4 header and payload checksum in hardware */

Check warning on line 146 in cpu/stm32/include/periph/cpu_eth.h

View workflow job for this annotation

GitHub Actions / static-tests

line is longer than 100 characters

#define TX_DESC_STAT_TTSE (BIT25) /**< If set, an PTP timestamp is added to the descriptor after TX completed */

Check warning on line 148 in cpu/stm32/include/periph/cpu_eth.h

View workflow job for this annotation

GitHub Actions / static-tests

line is longer than 100 characters
#define TX_DESC_STAT_FS (BIT28) /**< If set, buffer contains first segment of frame to transmit */

Check warning on line 149 in cpu/stm32/include/periph/cpu_eth.h

View workflow job for this annotation

GitHub Actions / static-tests

line is longer than 100 characters
#define TX_DESC_STAT_LS (BIT29) /**< If set, buffer contains last segment of frame to transmit */

Check warning on line 150 in cpu/stm32/include/periph/cpu_eth.h

View workflow job for this annotation

GitHub Actions / static-tests

line is longer than 100 characters
Expand Down

0 comments on commit bb982ad

Please sign in to comment.