mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
Fix typo in pre-processor command noted by Pierre-noel Bouteville. Also move # of pre-processior command to column 1
This commit is contained in:
+1
-1
Submodule arch updated: f228b56a83...5ab894e788
+1
-1
Submodule configs updated: 83173e5f40...5f86fa27a3
@@ -395,7 +395,7 @@ FAR struct lcd_dev_s *up_oledinitialize(FAR struct spi_dev_s *spi)
|
||||
#warning "Missing logic"
|
||||
|
||||
/* Configure and enable LCD */
|
||||
#warning "Missing logic"
|
||||
#warning "Missing logic"
|
||||
|
||||
return &g_lcddev.dev;
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@
|
||||
# define SH1101A_MRATIO(d) ((d) & 0x3f)
|
||||
#define SH1101A_DCDC_MODE (0xad) /* Set DC-DC OFF/ON: (Double Bytes Command) */
|
||||
# define SH1101A_DCDC_OFF (0x8a)
|
||||
# define SH1101A_DCDC_ON (0x8b)
|
||||
# define SH1101A_DCDC_ON (0x8b)
|
||||
#define SH1101A_DISPOFFON(s) (0xae | ((s) & 0x01)) /* Display OFF/ON: (aeh - afh) */
|
||||
# define SH1101A_DISPOFF SH1101A_DISPOFFON(0) /* Display off */
|
||||
# define SH1101A_DISPON SH1101A_DISPOFFON(1) /* Display on */
|
||||
|
||||
@@ -287,7 +287,7 @@ extern "C"
|
||||
* no global user heap structure.
|
||||
*/
|
||||
|
||||
#if defined(CONFIG_ARCH_ADDRENV) && defined(CONFIG_BUILD_KERNEL)
|
||||
#if defined(CONFIG_ARCH_ADDRENV) && defined(CONFIG_BUILD_KERNEL)
|
||||
/* In the kernel build, there a multiple user heaps; one for each task
|
||||
* group. In this build configuration, the user heap structure lies
|
||||
* in a reserved region at the beginning of the .bss/.data address
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
|
||||
int fseek(FAR FILE *stream, long int offset, int whence)
|
||||
{
|
||||
#if CONFIG_STDIO_BUFFER_SIZE > 0
|
||||
#if CONFIG_STDIO_BUFFER_SIZE > 0
|
||||
/* Flush any valid read/write data in the buffer (also verifies stream) */
|
||||
|
||||
if (lib_rdflush(stream) < 0 || lib_wrflush(stream) < 0)
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
* Pre-processor definitions
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_LIBC_TMPDIR
|
||||
#ifndef CONFIG_LIBC_TMPDIR
|
||||
# define CONFIG_LIBC_TMPDIR "/tmp"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -386,7 +386,7 @@ int work_usrstart(void)
|
||||
(void)pthread_attr_init(&attr);
|
||||
(void)pthread_attr_setstacksize(&attr, CONFIG_LIB_USRWORKSTACKSIZE);
|
||||
|
||||
+#ifdef CONFIG_SCHED_SPORADIC
|
||||
#ifdef CONFIG_SCHED_SPORADIC
|
||||
/* Get the current sporadic scheduling parameters. Those will not be
|
||||
* modified.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -176,7 +176,7 @@ struct arp_notify_s
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_NET_ARP
|
||||
#ifdef CONFIG_NET_ARP
|
||||
/****************************************************************************
|
||||
* Name: arp_reset
|
||||
*
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@
|
||||
* Pre-processor definitions
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef MIN
|
||||
#ifndef MIN
|
||||
# define MIN(a,b) ((a) < (b) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ tcp_data_event(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn,
|
||||
|
||||
nllvdbg("Dropped %d bytes\n", dev->d_len);
|
||||
|
||||
#ifdef CONFIG_NET_STATISTICS
|
||||
#ifdef CONFIG_NET_STATISTICS
|
||||
g_netstats.tcp.syndrop++;
|
||||
g_netstats.tcp.drop++;
|
||||
#endif
|
||||
|
||||
@@ -72,4 +72,4 @@ const uint8_t g_funcnparms[SYS_nsyscalls] =
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
#endif /* CONFIG_LIB_SYSCALL */
|
||||
#endif /* CONFIG_LIB_SYSCALL */
|
||||
|
||||
Reference in New Issue
Block a user