mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
Update some comments and cosmetic spacing.
This commit is contained in:
@@ -153,48 +153,46 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_STM32_STM32F446) || defined(CONFIG_STM32_STM32F469)
|
#if defined(CONFIG_STM32_STM32F446) || defined(CONFIG_STM32_STM32F469)
|
||||||
# define OTGFS_GINT_RESETS (OTGFS_GINT_USBRST | OTGFS_GINT_RSTDET)
|
# define OTGFS_GINT_RESETS (OTGFS_GINT_USBRST | OTGFS_GINT_RSTDET)
|
||||||
# define OTGFS_GINT_RESERVED (OTGFS_GINT_RES89 | \
|
# define OTGFS_GINT_RESERVED (OTGFS_GINT_RES89 | OTGFS_GINT_RES16 | \
|
||||||
(OTGFS_GINT_RES16 | OTGFS_GINTMSK_EPMISM) \
|
OTGFS_GINTMSK_EPMISM | OTGFS_GINT_RES22)
|
||||||
|OTGFS_GINT_RES22)
|
|
||||||
|
|
||||||
# define OTGFS_GINT_RC_W1 (OTGFS_GINT_MMIS | \
|
# define OTGFS_GINT_RC_W1 (OTGFS_GINT_MMIS | \
|
||||||
OTGFS_GINT_SOF | \
|
OTGFS_GINT_SOF | \
|
||||||
OTGFS_GINT_ESUSP | \
|
OTGFS_GINT_ESUSP | \
|
||||||
OTGFS_GINT_USBSUSP | \
|
OTGFS_GINT_USBSUSP | \
|
||||||
OTGFS_GINT_USBRST | \
|
OTGFS_GINT_USBRST | \
|
||||||
OTGFS_GINT_ENUMDNE | \
|
OTGFS_GINT_ENUMDNE | \
|
||||||
OTGFS_GINT_ISOODRP | \
|
OTGFS_GINT_ISOODRP | \
|
||||||
OTGFS_GINT_EOPF | \
|
OTGFS_GINT_EOPF | \
|
||||||
OTGFS_GINT_IISOIXFR | \
|
OTGFS_GINT_IISOIXFR | \
|
||||||
OTGFS_GINT_IISOOXFR | \
|
OTGFS_GINT_IISOOXFR | \
|
||||||
OTGFS_GINT_RSTDET | \
|
OTGFS_GINT_RSTDET | \
|
||||||
OTGFS_GINT_LPMINT | \
|
OTGFS_GINT_LPMINT | \
|
||||||
OTGFS_GINT_CIDSCHG | \
|
OTGFS_GINT_CIDSCHG | \
|
||||||
OTGFS_GINT_DISC | \
|
OTGFS_GINT_DISC | \
|
||||||
OTGFS_GINT_SRQ | \
|
OTGFS_GINT_SRQ | \
|
||||||
OTGFS_GINT_WKUP)
|
OTGFS_GINT_WKUP)
|
||||||
#else
|
#else
|
||||||
# define OTGFS_GINT_RESETS OTGFS_GINT_USBRST
|
# define OTGFS_GINT_RESETS OTGFS_GINT_USBRST
|
||||||
# define OTGFS_GINT_RESERVED (OTGFS_GINT_RES89 | \
|
# define OTGFS_GINT_RESERVED (OTGFS_GINT_RES89 | OTGFS_GINT_RES16 | \
|
||||||
(OTGFS_GINT_RES16 | OTGFS_GINTMSK_EPMISM) \
|
OTGFS_GINTMSK_EPMISM | OTGFS_GINT_RES2223 | \
|
||||||
|OTGFS_GINT_RES2223 | \
|
|
||||||
OTGFS_GINT_RES27)
|
OTGFS_GINT_RES27)
|
||||||
|
|
||||||
# define OTGFS_GINT_RC_W1 (OTGFS_GINT_MMIS | \
|
# define OTGFS_GINT_RC_W1 (OTGFS_GINT_MMIS | \
|
||||||
OTGFS_GINT_SOF | \
|
OTGFS_GINT_SOF | \
|
||||||
OTGFS_GINT_ESUSP | \
|
OTGFS_GINT_ESUSP | \
|
||||||
OTGFS_GINT_USBSUSP | \
|
OTGFS_GINT_USBSUSP | \
|
||||||
OTGFS_GINT_USBRST | \
|
OTGFS_GINT_USBRST | \
|
||||||
OTGFS_GINT_ENUMDNE | \
|
OTGFS_GINT_ENUMDNE | \
|
||||||
OTGFS_GINT_ISOODRP | \
|
OTGFS_GINT_ISOODRP | \
|
||||||
OTGFS_GINT_EOPF | \
|
OTGFS_GINT_EOPF | \
|
||||||
OTGFS_GINT_IISOIXFR | \
|
OTGFS_GINT_IISOIXFR | \
|
||||||
OTGFS_GINT_IISOOXFR | \
|
OTGFS_GINT_IISOOXFR | \
|
||||||
OTGFS_GINT_CIDSCHG | \
|
OTGFS_GINT_CIDSCHG | \
|
||||||
OTGFS_GINT_DISC | \
|
OTGFS_GINT_DISC | \
|
||||||
OTGFS_GINT_SRQ | \
|
OTGFS_GINT_SRQ | \
|
||||||
OTGFS_GINT_WKUP)
|
OTGFS_GINT_WKUP)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Debug ***********************************************************************/
|
/* Debug ***********************************************************************/
|
||||||
|
|||||||
@@ -52,14 +52,6 @@
|
|||||||
|
|
||||||
#ifndef CONFIG_DISABLE_SIGNALS
|
#ifndef CONFIG_DISABLE_SIGNALS
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Pre-processor Definitions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Data
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@@ -68,7 +60,8 @@
|
|||||||
* Name: z8_sigsetup
|
* Name: z8_sigsetup
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static void z8_sigsetup(FAR struct tcb_s *tcb, sig_deliver_t sigdeliver, FAR chipreg_t *regs)
|
static void z8_sigsetup(FAR struct tcb_s *tcb, sig_deliver_t sigdeliver,
|
||||||
|
FAR chipreg_t *regs)
|
||||||
{
|
{
|
||||||
/* Save the return address and interrupt state. These will be restored by
|
/* Save the return address and interrupt state. These will be restored by
|
||||||
* the signal trampoline after the signals have been delivered.
|
* the signal trampoline after the signals have been delivered.
|
||||||
@@ -125,7 +118,7 @@ void up_schedule_sigaction(FAR struct tcb_s *tcb, sig_deliver_t sigdeliver)
|
|||||||
{
|
{
|
||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
|
|
||||||
_info("tcb=0x%p sigdeliver=0x%04x\n", tcb, (uint16_t)sigdeliver);
|
sinfo("tcb=0x%p sigdeliver=0x%04x\n", tcb, (uint16_t)sigdeliver);
|
||||||
|
|
||||||
/* Make sure that interrupts are disabled */
|
/* Make sure that interrupts are disabled */
|
||||||
|
|
||||||
|
|||||||
+8
-2
@@ -31,8 +31,14 @@ config NET_ARP_IPIN
|
|||||||
bool "ARP address harvesting"
|
bool "ARP address harvesting"
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
Harvest IP/MAC address mappings from the ARP table
|
Harvest IP/MAC address mappings from the ARP table from incoming
|
||||||
from incoming IP packets.
|
IP packets. If this option is selected, CONFIG_NET_ARTAB_SIZE
|
||||||
|
should be large enough to hold the hosts on the network.
|
||||||
|
|
||||||
|
This option is NOT recommended on busy networks with many remote
|
||||||
|
hosts. On such networks the ARP table will be full most of the
|
||||||
|
time and the MAC addresses that you want will get flushed from
|
||||||
|
the table often.
|
||||||
|
|
||||||
config NET_ARP_SEND
|
config NET_ARP_SEND
|
||||||
bool "ARP send"
|
bool "ARP send"
|
||||||
|
|||||||
Reference in New Issue
Block a user