nuttx/arch/arm/src/samv7
Gregory Nutt 22cd0d47fa This commit attempts remove some long standard confusion in naming and some actual problems that result from the naming confusion. The basic problem is the standard MTU does not include the size of the Ethernet header. For clarity, I changed the naming of most things called MTU to PKTSIZE. For example, CONFIG_NET_ETH_MTU is now CONFIG_NET_ETH_PKTSIZE.
This makes the user interface a little hostile.  People thing of an MTU of 1500 bytes, but the corresponding packet is really 1514 bytes (including the 14 byte Ethernet header).  A more friendly solution would configure the MTU (as before), but then derive the packet buffer size by adding the MAC header length.  Instead, we define the packet buffer size then derive the MTU.

The MTU is not common currency in networking.  On the wire, the only real issue is the MSS which is derived from MTU by subtracting the IP header and TCP header sizes (for the case of TCP).  Now it is derived for the PKTSIZE by subtracting the IP header, the TCP header, and the MAC header sizes.  So we should be all good and without the recurring 14 byte error in MTU's and MSS's.

Squashed commit of the following:

    Trivial update to fix some spacing issues.
    net/: Rename several macros containing _MTU to _PKTSIZE.
    net/: Rename CONFIG_NET_SLIP_MTU to CONFIG_NET_SLIP_PKTSIZE and similarly for CONFIG_NET_TUN_MTU.  These are not the MTU which does not include the size of the link layer header.  These are the full size of the packet buffer memory (minus any GUARD bytes).
    net/: Rename CONFIG_NET_6LOWPAN_MTU to CONFIG_NET_6LOWPAN_PKTSIZE and similarly for CONFIG_NET_TUN_MTU.  These are not the MTU which does not include the size of the link layer header.  These are the full size of the packet buffer memory (minus any GUARD bytes).
    net/: Rename CONFIG_NET_ETH_MTU to CONFIG_NET_ETH_PKTSIZE.  This is not the MTU which does not include the size of the link layer header.  This is the full size of the packet buffer memory (minus any GUARD bytes).
    net/: Rename the file d_mtu in the network driver structure to d_pktsize.  That value saved there is not the MTU.  The packetsize is the memory large enough to hold the maximum packet PLUS the size of the link layer header.  The MTU does not include the link layer header.
2018-07-04 14:10:40 -06:00
..
chip arch/: Remove dangling space at the end of lines. 2017-06-28 13:16:48 -06:00
chip.h SAMV7 EMAC: Fix alignment issue: RX buffers need to be invalidated. This means the alignment of buffers must be at least to the data cache line size at both ends of the buffer 2015-03-28 13:09:01 -06:00
Kconfig arch/arm/src: Fix small typo where I2S is referenced as I2C 2018-05-27 16:23:03 -06:00
Make.defs Squashed commit of the following: 2018-06-20 12:30:37 -06:00
sam_allocateheap.c Rename board_led_on to board_autoled_on 2015-11-01 09:07:06 -06:00
sam_clockconfig.c SAMV71 and SAME70: Place the Main Oscillator Enable in the board.h 2016-03-04 12:31:54 -06:00
sam_clockconfig.h SAMV7 USB: USB must be enabled before PMC 480MHz clock is enabled 2015-08-11 15:48:26 -06:00
sam_config.h arch/arm/src/samv7/sam_lowputc.c: Fix undefined variable when using USART1 for other purposes than UART (e.g. SPI). 2018-01-26 07:52:45 -06:00
sam_dac.c Squashed commit of the following: 2017-09-30 11:51:37 -06:00
sam_dac.h Add support for SAMV7 DACC module 2016-08-15 08:00:36 -06:00
sam_emac.c This commit attempts remove some long standard confusion in naming and some actual problems that result from the naming confusion. The basic problem is the standard MTU does not include the size of the Ethernet header. For clarity, I changed the naming of most things called MTU to PKTSIZE. For example, CONFIG_NET_ETH_MTU is now CONFIG_NET_ETH_PKTSIZE. 2018-07-04 14:10:40 -06:00
sam_ethernet.c Standardization of some function headers. 2018-03-13 09:52:27 -06:00
sam_ethernet.h Standardization of some function headers. 2018-03-13 09:52:27 -06:00
sam_freerun.c Revert "sam_tc_clockselect() reworked to calculate frequency error using smallest possible divisor minimizing the frequency error rather than largest possible divisor which maximized the error." 2016-08-17 12:34:54 -06:00
sam_freerun.h SAM3/4, SAMA5, SAMv7 Tickless: Refuse to call lower-level timer logic if not yet initialized 2016-02-05 10:22:11 -06:00
sam_gpio.c SAM GPIO: Apply Wolfgang's change for SAM3/4 to SAMA5 and SAMV7 2016-09-20 15:33:31 -06:00
sam_gpio.h Centralize definitions associated with CONFIG_DEBUG_GPIO 2016-06-15 09:20:23 -06:00
sam_gpioirq.c irq_dispatch: Add argument pointer to irq_dispatch 2017-02-27 06:27:56 -06:00
sam_hsmci.c Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
sam_hsmci.h Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
sam_hsmci_clkdiv.c Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
sam_irq.c ARM: Remove redundant interrupt stack coloring 2017-03-16 19:13:39 +08:00
sam_lowputc.c arch/arm/src/samv7/sam_lowputc.c: Fix undefined variable when using USART1 for other purposes than UART (e.g. SPI). 2018-01-26 07:52:45 -06:00
sam_lowputc.h Make some file section headers more consistent with standard 2015-04-08 08:04:12 -06:00
sam_mcan.c arch/arm/src/samv7: Add ability for CAN BUS_OFF autorecovery according ISO11898-1:2015. With this change we added an ioctl for triggering the autorecovery sequence for BUS_OFF to the CAN-driver and the SAMV7 low-level driver. According the datasheet: If the device goes Bus_Off, it will set MCAN_CCCR.INIT of its own accord, stopping all bus activities. Once MCAN_CCCR.INIT has been cleared by the processor (application), the device will then wait for 129 occurrences of Bus Idle (129 * 11 consecutive recessive bits) before resuming normal operation. At the end of the Bus_Off recovery sequence, the Error Management Counters will be reset. During the waiting time after the resetting of MCAN_CCCR.INIT, each time a sequence of 11 recessive bits has been monitored, a Bit0 Error code is written to MCAN_PSR.LEC, enabling the processor to readily check up whether the CAN bus is stuck at dominant or continuously disturbed and to monitor the Bus_Off recovery sequence. MCAN_ECR.REC is used to count these sequences. 2018-07-04 07:48:59 -06:00
sam_mcan.h Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
sam_mpuinit.c Trivial fix of two typos 2018-03-13 16:39:36 -06:00
sam_mpuinit.h Rename CONFIG_ARMV7M_MPU to CONFIG_ARM_MPU so that we can reuse the configuration settings for the ARMV7R MPU 2015-12-14 13:56:21 -06:00
sam_oneshot.c Fix lots of occurrences of 'the the', 'the there', 'the these', 'the then', 'the they. 2017-05-11 13:35:56 -06:00
sam_oneshot.h SAMV7: Add option to support oneshot timer without free-running timer. Add oneshot lower half driver. 2016-08-11 16:27:01 -06:00
sam_oneshot_lowerhalf.c Add a simulated oneshot lowerhalf driver 2016-08-12 13:14:03 -06:00
sam_pck.c Add _ to the beginning of all debug macros to avoid name collisions 2016-06-16 12:33:32 -06:00
sam_pck.h SAMV7: Extend programmable clock support for queries about the PCK configuration 2015-12-03 14:11:39 -06:00
sam_periphclks.h arch/arm/src/samv7: Add SAME70 memory map 2015-11-14 12:01:28 -06:00
sam_progmem.c progmem interface: Discern r/w and erase page sizes. Introduce new up_progmem_erasesize architecture API to be able to communicate the read/write page size independently from erase page size. Implement up_progmem_erasesize for all architectures that already support progmem, assuming that for those architectures the sizes of both read/write and erase pages are identical. 2018-05-01 06:23:52 -06:00
sam_progmem.h SAMV7 flash logic is complete, uncompiled, and untested 2015-11-12 10:46:59 -06:00
sam_qspi.c Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
sam_qspi.h Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
sam_rswdt.c Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
sam_serial.c Adapt some drivers to utilize the IRQ argument feature. 2017-02-27 20:54:18 -06:00
sam_spi.c Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
sam_spi.h Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
sam_spi_slave.c Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
sam_ssc.c arch/arm/src: Fix small typo where I2S is referenced as I2C 2018-05-27 16:23:03 -06:00
sam_ssc.h Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
sam_start.c Squashed commit of the following: 2018-06-20 12:30:37 -06:00
sam_start.h Make some file section headers more consistent with standard 2015-04-08 08:04:12 -06:00
sam_systemreset.c Restore PR. I have no idea where it went. 2016-05-23 17:45:15 -06:00
sam_tc.c Squashed commit of the following: 2017-10-04 15:22:27 -06:00
sam_tc.h Revert "sam_tc_clockselect() reworked to calculate frequency error using smallest possible divisor minimizing the frequency error rather than largest possible divisor which maximized the error." 2016-08-17 12:34:54 -06:00
sam_tickless.c Fix lots of occurrences of 'the the', 'the there', 'the these', 'the then', 'the they. 2017-05-11 13:35:56 -06:00
sam_timerisr.c irq_dispatch: Add argument pointer to irq_dispatch 2017-02-27 06:27:56 -06:00
sam_trng.c Squashed commit of the following: 2017-10-04 15:22:27 -06:00
sam_trng.h SAMV7: Port SAMAD5 TRNG driver to the SAMV7 2015-12-06 08:53:31 -06:00
sam_twihs.c sched/wdog: wd_start() is an internal OS function and should not set the errno value. Reviewed and updated every call to wd_start() to verify if return value is used and if so if the errno value is accessed. 2018-01-31 10:09:14 -06:00
sam_twihs.h Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
sam_usbdev.h SAMV7: A little more USB-related stuff 2015-03-21 08:54:01 -06:00
sam_usbdevhs.c Make sure that labeling is used consistently in all function headers (part 2). 2018-02-01 12:03:55 -06:00
sam_userspace.c SAMV7 protected mode: Don't enable D-Cache until userspace data has been initialized 2015-11-07 09:35:23 -06:00
sam_userspace.h Make some file section headers more consistent with standard 2015-04-08 08:04:12 -06:00
sam_wdt.c Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
sam_wdt.h Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
sam_xdmac.c Squashed commit of the following: 2018-05-21 11:46:16 -06:00
sam_xdmac.h Change *err() to either info() or err(ERROR:..), depending upon if an error has occurred. 2016-06-16 15:10:57 -06:00
same70_periphclks.h arch/arm/src/samv7: Add SAME70 memory map 2015-11-14 12:01:28 -06:00
samv71_periphclks.h arch/arm/src/samv7: Add support for SAME70 peripheral clocks 2015-11-14 11:41:53 -06:00