[GitHub] [incubator-nuttx] patacongo edited a comment on pull request #4571: Correct a few license headers under net/

2021-09-17 Thread GitBox


patacongo edited a comment on pull request #4571:
URL: https://github.com/apache/incubator-nuttx/pull/4571#issuecomment-922171561


   Here is how I would see the rest of this working out.  uIP 1.0 consists only 
of IPv4, ARP, TCP, and glue logic.
   
   * IPv4.  This is scattered throughout the code.  There is no real discussion 
for this.
   * ARP.  uIP 1.0 had a very buggy ARP implementation.  For example, it would 
drop outgoing packets if the MAC address was not already in the ARP table, 
sending an ARP request instead.  Because of this I completely redesigned and 
re=implemented ARP.  I don't think there is anything from uIP 1.0 in NuttX 
except for, perhaps, the ARP table access routines.  I would have to look at 
that to be certain.
   * TCP.  The uIP 1.0 TCP was also largely re-implemented, but I am not 
certain of the extent.  I suspect that there may still be some traces of the 
uIP 1.0 TCP state machine (tcp_input.c) but  most likely, that is the only uIP 
1.0 TCP logic left.
   * UDP.  UDP was expermental and incomplete in uIP 1.0.  UDP has been 
completely re-implemented and should not have any relation to UDP in uIP 1.0.  
That needs to be verified.
   * Since the execution environments are so different, I don't there should be 
any licensing dependencies between the two code bases for the "glue logic".  By 
glue logic, it is meant the socket layer and and the network device interface.  
NuttX has true BSD sockets and true network device drivers which have no 
counterpart in uIP 1.0.
   
   One other thing, parts of the 6LoWPAN implementation came from  Contiki and 
also have attributions to Adam Dunkels.  These specific files should have the 
headers reverted and should be treated as third party files.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-nuttx] patacongo commented on pull request #4571: Correct a few license headers under net/

2021-09-17 Thread GitBox


patacongo commented on pull request #4571:
URL: https://github.com/apache/incubator-nuttx/pull/4571#issuecomment-922171561


   Here is how I would see the rest of this working out.  uIP 1.0 consists only 
of IPv4, ARP, TCP, and glue logic.
   
   * IPv4.  This is scattered throughout the code.  There is no real 
discussion for this.
   * ARP.  uIP 1.0 had a very buggy ARP implementation.  For example, it 
would drop outgoing packets if the MAC address was not already in the ARP 
table, sending an ARP request instead.  Because of this I completely redesigned 
and re=implemented ARP.  I don't think there is anything from uIP 1.0 in NuttX 
except for, perhaps, the ARP table access routines.  I would have to look at 
that to be certain.
   * TCP.  The uIP 1.0 TCP was also largely re-implemented, but I am not 
certain of the extent.  I suspect that there may still be some traces of the 
uIP 1.0 TCP state machine (tcp_input.c) but  most likely, that is the only uIP 
1.0 TCP logic left.
   * UDP.  UDP was expermental and incomplete in uIP 1.0.  UDP has been 
completely re-implemented and should not have any relation to UDP in uIP 1.0.  
That needs to be verified.
   * Since the execution environments are so different, I don't there 
should be any licensing dependencies between the two code bases for the "glue 
logic".  By glue logic, it is meant the socket layer and and the network device 
interface.  NuttX has true BSD sockets and true network device drivers which 
have no counterpart in uIP 1.0.
   
   One other thing, parts of the 6LoWPAN implementation came from  Contiki and 
also have attributions to Adam Dunkels.  These specific files should have the 
headers reverted and should be treated as third party files.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #4335: arch/bl602:Add bl602 os adapter layer

2021-09-17 Thread GitBox


xiaoxiang781216 merged pull request #4335:
URL: https://github.com/apache/incubator-nuttx/pull/4335


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[incubator-nuttx] 01/02: Add bl602 os adapter layer

2021-09-17 Thread xiaoxiang
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit d489392d08e550e828146395d4e945de9952e6e3
Author: jsun 
AuthorDate: Fri Aug 13 10:26:22 2021 +0800

Add bl602 os adapter layer

N/A

Signed-off-by: jsun 
---
 arch/risc-v/src/bl602/Make.defs  |5 +-
 arch/risc-v/src/bl602/bl602_head.S   |   11 +-
 arch/risc-v/src/bl602/bl602_netdev.c |   10 +-
 arch/risc-v/src/bl602/bl602_os_hal.c | 1606 ++
 arch/risc-v/src/bl602/bl602_os_hal.h |  186 
 5 files changed, 1810 insertions(+), 8 deletions(-)

diff --git a/arch/risc-v/src/bl602/Make.defs b/arch/risc-v/src/bl602/Make.defs
index 316cb85..43575a8 100644
--- a/arch/risc-v/src/bl602/Make.defs
+++ b/arch/risc-v/src/bl602/Make.defs
@@ -51,6 +51,7 @@ CHIP_CSRCS  = bl602_allocateheap.c
 CHIP_CSRCS += bl602_idle.c bl602_irq.c bl602_irq_dispatch.c
 CHIP_CSRCS += bl602_serial.c bl602_lowputc.c bl602_tim.c
 CHIP_CSRCS += bl602_start.c bl602_timerisr.c bl602_efuse.c
+CHIP_CSRCS += bl602_os_hal.c
 
 ifeq ($(CONFIG_I2C),y)
 CHIP_CSRCS += bl602_i2c.c
@@ -83,7 +84,7 @@ CHIP_CSRCS += bl602_glb.c bl602_gpio.c bl602_hbn.c 
bl602_systemreset.c
 
 ifeq ($(CONFIG_BL602_WIRELESS),y)
 WIRELESS_DRV_UNPACK  = bl_blob
-WIRELESS_DRV_VERSION = 1.8.0
+WIRELESS_DRV_VERSION = 1.9.1-dev
 WIRELESS_DRV_ZIP = v$(WIRELESS_DRV_VERSION).zip
 WIRELESS_DRV_URL = 
https://github.com/bouffalolab/bl_blob/archive/refs/heads
 
@@ -108,7 +109,7 @@ INCLUDES += $(shell $(INCDIR) "$(CC)" 
$(ARCH_SRCDIR)$(DELIM)chip$(DELIM)$(WIRELE
 CHIP_CSRCS += bl602_netdev.c
 
 EXTRA_LIBPATHS += -L 
$(ARCH_SRCDIR)$(DELIM)chip$(DELIM)$(WIRELESS_DRV_UNPACK)$(DELIM)libs$(DELIM)BL602$(DELIM)nuttx
-EXTRA_LIBS += -lbl602_wifi -lblecontroller
+EXTRA_LIBS += -lbl602_wifi -lbl602_wifi_manage -lblecontroller
 
 # Due to some Wi-Fi related libraries, the option is need to avoid linking too 
much
 # unused functions.
diff --git a/arch/risc-v/src/bl602/bl602_head.S 
b/arch/risc-v/src/bl602/bl602_head.S
index 2439e13..54b43cd 100644
--- a/arch/risc-v/src/bl602/bl602_head.S
+++ b/arch/risc-v/src/bl602/bl602_head.S
@@ -77,12 +77,17 @@ exception_common:
   addi s0, sp, XCPTCONTEXT_SIZE
   sw   s0,  2*4(sp)   /* original SP */
 
-  /* Setup arg0(exception cause), arg1(context) */
-
-  csrr a0, mcause  /* exception cause */
   csrr s0, mepc
   sw   s0, 0(sp)   /* exception PC */
 
+#ifdef CONFIG_STACK_OVERFLOW_CHECK
+  la t0, __cyg_profile_func_enter
+  jalr x1, 0(t0)
+#endif
+
+  /* Setup arg0(exception cause), arg1(context) */
+
+  csrr a0, mcause  /* exception cause */
   mv   a1, sp  /* context = sp */
 
 #if CONFIG_ARCH_INTERRUPTSTACK > 15
diff --git a/arch/risc-v/src/bl602/bl602_netdev.c 
b/arch/risc-v/src/bl602/bl602_netdev.c
index 569139d..ad4fe5b 100644
--- a/arch/risc-v/src/bl602/bl602_netdev.c
+++ b/arch/risc-v/src/bl602/bl602_netdev.c
@@ -60,7 +60,7 @@
 #include "wifi_manager/wifi_mgmr_api.h"
 #include "wifi_manager/bl_wifi.h"
 #include "wifi_manager/include/wifi_mgmr_ext.h"
-#include "wifi_driver/os_hal.h"
+#include "bl602_os_hal.h"
 #include "bl602_netdev.h"
 #include "bl602_efuse.h"
 
@@ -248,6 +248,7 @@ extern void wifi_mgmr_tsk_init(void);
 extern int bl602_ef_ctrl_read_mac_address(uint8_t mac[6]);
 extern void wifi_main(int argc, char *argv[]);
 extern void wifi_mgmr_start_background(wifi_conf_t *conf);
+extern int bl_pm_init(void);
 extern struct net_device bl606a0_sta;
 
 /* Common TX logic */
@@ -2004,6 +2005,7 @@ bl602_net_ioctl(FAR struct net_driver_s *dev, int cmd, 
unsigned long arg)
 
 static int wifi_manager_process(int argc, FAR char *argv[])
 {
+  bl_pm_init();
   wifi_main_init();
   ipc_emb_notify();
 
@@ -2120,10 +2122,12 @@ void bl602_net_event(int evt, int val)
 case CODE_WIFI_ON_DISCONNECT:
   do
 {
-  struct bl602_net_driver_s *priv = _bl602_net[0];
+  /* struct bl602_net_driver_s *priv = _bl602_net[0]; */
+
   if (g_state.sta_connected == 1)
 {
-  netdev_carrier_off(>net_dev);
+  /* netdev_carrier_off(>net_dev); */
+
   g_state.sta_connected = 0;
 }
 }
diff --git a/arch/risc-v/src/bl602/bl602_os_hal.c 
b/arch/risc-v/src/bl602/bl602_os_hal.c
new file mode 100644
index 000..d5dcd45
--- /dev/null
+++ b/arch/risc-v/src/bl602/bl602_os_hal.c
@@ -0,0 +1,1606 @@
+/
+ * arch/risc-v/src/bl602/bl602_os_hal.c
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.  The
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the
+ * License.  You may obtain a copy of the License 

[incubator-nuttx] 02/02: Update bl602 MTU_SIZE and TX_BUF_SIZE

2021-09-17 Thread xiaoxiang
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit f4b6bb281cbf0fb26288aad83e7afe4955643ad0
Author: jsun 
AuthorDate: Fri Sep 17 18:37:00 2021 +0800

Update bl602 MTU_SIZE and TX_BUF_SIZE

N/A

Signed-off-by: jsun 
---
 arch/risc-v/src/bl602/bl602_netdev.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/risc-v/src/bl602/bl602_netdev.c 
b/arch/risc-v/src/bl602/bl602_netdev.c
index ad4fe5b..549e92e 100644
--- a/arch/risc-v/src/bl602/bl602_netdev.c
+++ b/arch/risc-v/src/bl602/bl602_netdev.c
@@ -107,13 +107,13 @@
 
 #define BL602_NET_WDDELAY (1 * CLOCKS_PER_SEC)
 
+#define WIFI_MTU_SIZE 1516
+
 #define BL602_NET_TXBUFF_NUM  12
-#define BL602_NET_TXBUFF_SIZE (1650)
+#define BL602_NET_TXBUFF_SIZE (WIFI_MTU_SIZE + PRESERVE_80211_HEADER_LEN)
 
 #define BL602_TXDESC_THRESHOLD 3
 
-#define WIFI_MTU_SIZE 1514
-
 #if BL602_NET_TXBUFF_SIZE & 0x3 != 0
 #error "BL602_NET_TXBUFF_SIZE must be aligned to 4 bytes"
 #endif


[incubator-nuttx] branch master updated (04c9079 -> f4b6bb2)

2021-09-17 Thread xiaoxiang
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git.


from 04c9079  Back in 2007, an early network implementation was developed 
for NuttX.  This early development was inspired largely by uIP 1.0 and 
recognition of that was noted in the then BSD license headers.  Over the next 
14 years, a new, much more advanced, original network was developed for NuttX.  
However, some references to Adam Dunkels were still present in the file headers.
 new d489392  Add bl602 os adapter layer
 new f4b6bb2  Update bl602 MTU_SIZE and TX_BUF_SIZE

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 arch/risc-v/src/bl602/Make.defs  |5 +-
 arch/risc-v/src/bl602/bl602_head.S   |   11 +-
 arch/risc-v/src/bl602/bl602_netdev.c |   16 +-
 arch/risc-v/src/bl602/bl602_os_hal.c | 1606 ++
 arch/risc-v/src/bl602/bl602_os_hal.h |  186 
 5 files changed, 1813 insertions(+), 11 deletions(-)
 create mode 100644 arch/risc-v/src/bl602/bl602_os_hal.c
 create mode 100644 arch/risc-v/src/bl602/bl602_os_hal.h


[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #4571: Correct a few license headers under net/

2021-09-17 Thread GitBox


xiaoxiang781216 merged pull request #4571:
URL: https://github.com/apache/incubator-nuttx/pull/4571


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[incubator-nuttx] branch master updated: Back in 2007, an early network implementation was developed for NuttX. This early development was inspired largely by uIP 1.0 and recognition of that was noted

2021-09-17 Thread xiaoxiang
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
 new 04c9079  Back in 2007, an early network implementation was developed 
for NuttX.  This early development was inspired largely by uIP 1.0 and 
recognition of that was noted in the then BSD license headers.  Over the next 
14 years, a new, much more advanced, original network was developed for NuttX.  
However, some references to Adam Dunkels were still present in the file headers.
04c9079 is described below

commit 04c90799549685f618650d34128e3a06a459a781
Author: Gregory Nutt 
AuthorDate: Fri Sep 17 16:12:48 2021 -0600

Back in 2007, an early network implementation was developed for NuttX.  
This early development was inspired largely by uIP 1.0 and recognition of that 
was noted in the then BSD license headers.  Over the next 14 years, a new, much 
more advanced, original network was developed for NuttX.  However, some 
references to Adam Dunkels were still present in the file headers.

Because of this, it will take some time to detangle the licensing under 
net/.  Many new features, original features were added to the NuttX network.  
Clearly, any references to Adam Dunkels in the files that implement these new 
features that have no counterpart in uIP 1.0 are errors.

This PR removes the references and converts the license headers to Apache 
2.0 where possible.  The affected files include only (1) the implementation of 
IPv6 (including neighbor support under ICMPv6) and (2) Raw sockets.  Neither of 
these features are present in uIP 1.0 and the licenses can be freely updated.
---
 net/devif/ipv6_input.c| 78 ++-
 net/icmpv6/icmpv6_advertise.c | 43 ++---
 net/icmpv6/icmpv6_input.c | 43 ++---
 net/icmpv6/icmpv6_radvertise.c| 47 +++
 net/neighbor/neighbor.h   | 51 -
 net/neighbor/neighbor_add.c   | 43 ++---
 net/neighbor/neighbor_findentry.c | 43 ++---
 net/neighbor/neighbor_globals.c   | 44 ++
 net/neighbor/neighbor_lookup.c| 43 ++---
 net/neighbor/neighbor_update.c| 47 +++
 net/pkt/pkt_conn.c| 46 +++
 net/pkt/pkt_input.c   | 43 ++---
 net/pkt/pkt_poll.c| 43 ++---
 13 files changed, 166 insertions(+), 448 deletions(-)

diff --git a/net/devif/ipv6_input.c b/net/devif/ipv6_input.c
index 2c42602..6618c56 100644
--- a/net/devif/ipv6_input.c
+++ b/net/devif/ipv6_input.c
@@ -2,74 +2,20 @@
  * net/devif/ipv6_input.c
  * Device driver IPv6 packet receipt interface
  *
- *   Copyright (C) 2015, 2017 Gregory Nutt. All rights reserved.
- *   Author: Gregory Nutt 
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.  The
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the
+ * License.  You may obtain a copy of the License at
  *
- * Adapted for NuttX from logic in uIP which also has a BSD-like license:
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- * uIP is an implementation of the TCP/IP protocol stack intended for
- * small 8-bit and 16-bit microcontrollers.
- *
- * uIP provides the necessary protocols for Internet communication,
- * with a very small code footprint and RAM requirements - the uIP
- * code size is on the order of a few kilobytes and RAM usage is on
- * the order of a few hundred bytes.
- *
- *   Original author Adam Dunkels 
- *   Copyright () 2001-2003, Adam Dunkels.
- *   All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *notice, this list of conditions and the following disclaimer in the
- *documentation and/or other materials provided with the distribution.
- * 3. The name of the author may not be used to endorse or promote
- *products derived from this software without specific prior
- *written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
- * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE 

[GitHub] [incubator-nuttx] a-lunev commented on a change in pull request #4433: net/devif/devif_callback.c: corrected the connection event list to work as FIFO instead of LIFO

2021-09-17 Thread GitBox


a-lunev commented on a change in pull request #4433:
URL: https://github.com/apache/incubator-nuttx/pull/4433#discussion_r711428140



##
File path: net/devif/devif.h
##
@@ -260,6 +260,9 @@ typedef CODE uint16_t (*devif_callback_event_t)(FAR struct 
net_driver_s *dev,
 struct devif_callback_s
 {
   FAR struct devif_callback_s *nxtconn;
+  FAR struct devif_callback_s *tail_helper; /* The tail helper field is used

Review comment:
   Hi Xiang,
   Please review my new commit of the intermediate step (Approach 3.s). 
Actually, I had to add (*tail) argument not only to devif_callback_alloc(), but 
to devif_conn_callback_free() as well.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[incubator-nuttx-website] branch asf-site updated: Publishing web: ea6fce84bf8202600a0318215864afe272c81f07 docs: 15b68b9abb8df4c8c8760ec2658df30441914d9e

2021-09-17 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
 new 6740cb2  Publishing web: ea6fce84bf8202600a0318215864afe272c81f07 
docs: 15b68b9abb8df4c8c8760ec2658df30441914d9e
6740cb2 is described below

commit 6740cb2818a5ed7be06baded72e253789390c934
Author: Xiang 
AuthorDate: Sat Sep 18 00:08:41 2021 +

Publishing web: ea6fce84bf8202600a0318215864afe272c81f07 docs: 
15b68b9abb8df4c8c8760ec2658df30441914d9e
---
 content/docs/10.0.0/index.html  |  2 +-
 content/docs/10.0.1/index.html  |  2 +-
 content/docs/10.1.0/index.html  |  2 +-
 content/docs/latest/_sources/quickstart/install.rst.txt | 10 +-
 content/docs/latest/index.html  |  2 +-
 content/docs/latest/quickstart/install.html | 10 +-
 content/docs/latest/searchindex.js  |  2 +-
 content/feed.xml|  4 ++--
 8 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/content/docs/10.0.0/index.html b/content/docs/10.0.0/index.html
index 225efa3..3f45afe 100644
--- a/content/docs/10.0.0/index.html
+++ b/content/docs/10.0.0/index.html
@@ -207,7 +207,7 @@ by following these 
 NuttX Documentation¶
 NuttX is a real-time operating system (RTOS) with an emphasis on standards 
compliance and small footprint. Scalable from 8-bit to 32-bit microcontroller 
environments, the primary governing standards in NuttX are Posix and ANSI 
standards. Additional standard APIs from Unix and other common RTOS’s (such as 
VxWorks) are adopted for functionality not available under these standards, or 
for functionality that is not appropriate for deeply-embedded environments 
(such as fork()).
-Last Updated: 17 September 21 at 02:53
+Last Updated: 18 September 21 at 00:05
 
 Table of Contents
 
diff --git a/content/docs/10.0.1/index.html b/content/docs/10.0.1/index.html
index fe7a437..8cf15a6 100644
--- a/content/docs/10.0.1/index.html
+++ b/content/docs/10.0.1/index.html
@@ -213,7 +213,7 @@ by following these 
 NuttX Documentation¶
 NuttX is a real-time operating system (RTOS) with an emphasis on standards 
compliance and small footprint. Scalable from 8-bit to 32-bit microcontroller 
environments, the primary governing standards in NuttX are Posix and ANSI 
standards. Additional standard APIs from Unix and other common RTOS’s (such as 
VxWorks) are adopted for functionality not available under these standards, or 
for functionality that is not appropriate for deeply-embedded environments 
(such as fork()).
-Last Updated: 17 September 21 at 02:53
+Last Updated: 18 September 21 at 00:05
 
 Table of Contents
 
diff --git a/content/docs/10.1.0/index.html b/content/docs/10.1.0/index.html
index d80f32f..a182d7d 100644
--- a/content/docs/10.1.0/index.html
+++ b/content/docs/10.1.0/index.html
@@ -213,7 +213,7 @@ by following these 
 NuttX Documentation¶
 NuttX is a real-time operating system (RTOS) with an emphasis on standards 
compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller 
environments, the primary governing standards in NuttX are POSIX and ANSI 
standards. Additional standard APIs from Unix and other common RTOS’s (such as 
VxWorks) are adopted for functionality not available under these standards, or 
for functionality that is not appropriate for deeply-embedded environments 
(such as fork()).
-Last Updated: 17 September 21 at 02:53
+Last Updated: 18 September 21 at 00:06
 
 Table of Contents
 
diff --git a/content/docs/latest/_sources/quickstart/install.rst.txt 
b/content/docs/latest/_sources/quickstart/install.rst.txt
index f08b036..ea8c197 100644
--- a/content/docs/latest/_sources/quickstart/install.rst.txt
+++ b/content/docs/latest/_sources/quickstart/install.rst.txt
@@ -165,8 +165,8 @@ Apache NuttX is actively developed on GitHub. There are two 
main repositories, `
$ cd nuttx
$ curl -L https://github.com/apache/incubator-nuttx/tarball/master -o 
nuttx.tar.gz 
$ curl -L https://github.com/apache/incubator-nuttx-apps/tarball/master 
-o apps.tar.gz
-   $ tar zxf nuttx.tar.gz
-   $ tar zxf apps.tar.gz
+   $ tar zxf nuttx.tar.gz --one-top-level=nuttx --strip-components 1
+   $ tar zxf apps.tar.gz --one-top-level=apps --strip-components 1

 There are also ``.zip`` archives available (useful for Windows users): 
just replace ``tarball`` with
 ``zipball``.
@@ -174,13 +174,13 @@ Apache NuttX is actively developed on GitHub. There are 
two main repositories, `
   .. tab:: Download stable release
   
 Go to `releases `_ and choose a 
version to download. The following
-example uses version 9.1.0:
+example uses version 10.1.0:
 
 .. code-block:: 

[GitHub] [incubator-nuttx] patacongo opened a new pull request #4571: Correct a few license headers under net/

2021-09-17 Thread GitBox


patacongo opened a new pull request #4571:
URL: https://github.com/apache/incubator-nuttx/pull/4571


   ## Summary
   
   Back in 2007, an early network implementation was developed for NuttX.  This 
early development was inspired largely by uIP 1.0 and recognition of that was 
noted in the then BSD license headers.  Over the next 14 years, a new, much 
more advanced, original network was developed for NuttX.  However, some 
references to Adam Dunkels were still present in the file headers.
   
   Because of this, it will take some time to detangle the licensing under 
net/.  Many new features, original features were added to the NuttX network.  
Clearly, any references to Adam Dunkels in the files that implement these new 
features that have no counterpart in uIP 1.0 are errors.
   
   This PR removes the references and converts the license headers to Apache 
2.0 where possible.  The affected files include only (1) the implementation of 
IPv6 (including neighbor support under ICMPv6) and (2) Raw sockets.  Neither of 
these features are present in uIP 1.0 and the licenses can be freely updated.
   
   ## Impact
   
   None, functionally
   
   ## Testing
   
   CI only
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[incubator-nuttx] branch master updated: esp32_spiflash.c: Correctly disable APP's CPU cache.

2021-09-17 Thread acassis
This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
 new 15b68b9  esp32_spiflash.c: Correctly disable APP's CPU cache.
15b68b9 is described below

commit 15b68b9abb8df4c8c8760ec2658df30441914d9e
Author: Abdelatif Guettouche 
AuthorDate: Fri Sep 17 16:34:44 2021 +0200

esp32_spiflash.c: Correctly disable APP's CPU cache.

Signed-off-by: Abdelatif Guettouche 
---
 arch/xtensa/src/esp32/esp32_spiflash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/xtensa/src/esp32/esp32_spiflash.c 
b/arch/xtensa/src/esp32/esp32_spiflash.c
index c813afe..09f578b 100644
--- a/arch/xtensa/src/esp32/esp32_spiflash.c
+++ b/arch/xtensa/src/esp32/esp32_spiflash.c
@@ -426,7 +426,7 @@ static inline void IRAM_ATTR
 
   spi_disable_cache(state->cpu, >val[state->cpu]);
 #ifdef CONFIG_SMP
-  spi_disable_cache(state->cpu, >val[other]);
+  spi_disable_cache(other, >val[other]);
 #endif
 }
 


[GitHub] [incubator-nuttx] acassis merged pull request #4570: esp32_spiflash.c: Correctly disable APP's CPU cache.

2021-09-17 Thread GitBox


acassis merged pull request #4570:
URL: https://github.com/apache/incubator-nuttx/pull/4570


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-nuttx] Ouss4 opened a new pull request #4570: esp32_spiflash.c: Correctly disable APP's CPU cache.

2021-09-17 Thread GitBox


Ouss4 opened a new pull request #4570:
URL: https://github.com/apache/incubator-nuttx/pull/4570


   ## Summary
   Disable the correct cache.
   ## Impact
   ESP32 SPI Flash driver.
   ## Testing
   esp32-devkitc:spiflash with SMP.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-nuttx] btashton closed issue #4562: quickstart install instructions don't quite work (tar ball top-level dir misnamed)

2021-09-17 Thread GitBox


btashton closed issue #4562:
URL: https://github.com/apache/incubator-nuttx/issues/4562


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-nuttx] btashton merged pull request #4564: Doc: Update download version to 10.1 and fix tar command

2021-09-17 Thread GitBox


btashton merged pull request #4564:
URL: https://github.com/apache/incubator-nuttx/pull/4564


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[incubator-nuttx] branch master updated: Doc: Update download version to 10.1 and fix tar command

2021-09-17 Thread btashton
This is an automated email from the ASF dual-hosted git repository.

btashton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
 new eaf50cd  Doc: Update download version to 10.1 and fix tar command
eaf50cd is described below

commit eaf50cd06b5e5b1c6521f0594a4bd6abde5b15fe
Author: Alan C. Assis 
AuthorDate: Thu Sep 16 12:49:45 2021 -0300

Doc: Update download version to 10.1 and fix tar command
---
 Documentation/quickstart/install.rst | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/Documentation/quickstart/install.rst 
b/Documentation/quickstart/install.rst
index f08b036..ea8c197 100644
--- a/Documentation/quickstart/install.rst
+++ b/Documentation/quickstart/install.rst
@@ -165,8 +165,8 @@ Apache NuttX is actively developed on GitHub. There are two 
main repositories, `
$ cd nuttx
$ curl -L https://github.com/apache/incubator-nuttx/tarball/master -o 
nuttx.tar.gz 
$ curl -L https://github.com/apache/incubator-nuttx-apps/tarball/master 
-o apps.tar.gz
-   $ tar zxf nuttx.tar.gz
-   $ tar zxf apps.tar.gz
+   $ tar zxf nuttx.tar.gz --one-top-level=nuttx --strip-components 1
+   $ tar zxf apps.tar.gz --one-top-level=apps --strip-components 1

 There are also ``.zip`` archives available (useful for Windows users): 
just replace ``tarball`` with
 ``zipball``.
@@ -174,13 +174,13 @@ Apache NuttX is actively developed on GitHub. There are 
two main repositories, `
   .. tab:: Download stable release
   
 Go to `releases `_ and choose a 
version to download. The following
-example uses version 9.1.0:
+example uses version 10.1.0:
 
 .. code-block:: console
 
$ mkdir nuttx
$ cd nuttx
-   $ curl -L 
https://downloads.apache.org/incubator/nuttx/9.1.0/apache-nuttx-9.1.0-incubating.tar.gz
 -o nuttx.tar.gz 
-   $ curl -L 
https://downloads.apache.org/incubator/nuttx/9.1.0/apache-nuttx-apps-9.1.0-incubating.tar.gz
 -o apps.tar.gz
+   $ curl -L 
https://www.apache.org/dyn/closer.lua/incubator/nuttx/10.1.0/apache-nuttx-10.1.0-incubating.tar.gz?action=download
 -o nuttx.tar.gz 
+   $ curl -L 
https://www.apache.org/dyn/closer.lua/incubator/nuttx/10.1.0/apache-nuttx-apps-10.1.0-incubating.tar.gz?action=download
 -o apps.tar.gz
$ tar zxf nuttx.tar.gz
$ tar zxf apps.tar.gz


[GitHub] [incubator-nuttx] michallenc commented on pull request #4506: LCD: Merge files for ST7735 and ST7789 into ST77XX

2021-09-17 Thread GitBox


michallenc commented on pull request #4506:
URL: https://github.com/apache/incubator-nuttx/pull/4506#issuecomment-921850947


   > Yes, maybe the way to solve it is passing some parameter in the LCD 
initialize to indicate the type of LCD, this way we could have more than 1 
initialization with the same or different type
   
   Yes, something like in 
[arch/.../imxrt_flexcan.c](https://github.com/apache/incubator-nuttx/blob/master/arch/arm/src/imxrt/imxrt_flexcan.c).
 I am not sure how this will turn out, It´s likely that I will put this on ice 
as my semester starts next week and I need to start working on [my semestral & 
bechalor 
project](https://fel.cvut.cz/en/education/semestral-projects.html?supervisor=pisa_detail=2247)
 (also with NuttX btw) and this should be done correctly and carefully 
otherwise we could end up with 3 or 4 not working lcd drivers. I will see how 
much time will I be able to put in this merge.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[incubator-nuttx] 04/04: UCANS32K146 board: Add CAN configuraton

2021-09-17 Thread xiaoxiang
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 9bbfd31b25ead1184ec7460137284bdedd660622
Author: Jari van Ewijk 
AuthorDate: Thu Sep 16 15:49:24 2021 +0200

UCANS32K146 board: Add CAN configuraton
---
 boards/arm/s32k1xx/ucans32k146/README.txt  |  6 ++
 .../arm/s32k1xx/ucans32k146/configs/can/defconfig  | 75 ++
 2 files changed, 81 insertions(+)

diff --git a/boards/arm/s32k1xx/ucans32k146/README.txt 
b/boards/arm/s32k1xx/ucans32k146/README.txt
index 21f332d..7477d09 100644
--- a/boards/arm/s32k1xx/ucans32k146/README.txt
+++ b/boards/arm/s32k1xx/ucans32k146/README.txt
@@ -144,3 +144,9 @@ Configurations
   Configures the NuttShell (nsh) located at apps/examples/nsh.  Support
   for builtin applications is enabled, but in the base configuration the
   only application selected is the "Hello, World!" example.
+
+can:
+---
+  Besides the NuttShell this configuration also enables (Socket)CAN
+  support, as well as I2C and SPI support.  It includes the SLCAN and
+  can-utils applications for monitoring and debugging CAN applications.
diff --git a/boards/arm/s32k1xx/ucans32k146/configs/can/defconfig 
b/boards/arm/s32k1xx/ucans32k146/configs/can/defconfig
new file mode 100644
index 000..5fc15f7
--- /dev/null
+++ b/boards/arm/s32k1xx/ucans32k146/configs/can/defconfig
@@ -0,0 +1,75 @@
+#
+# This file is autogenerated: PLEASE DO NOT EDIT IT.
+#
+# You can use "make menuconfig" to make any modifications to the installed 
.config file.
+# You can then do "make savedefconfig" to generate a new defconfig file that 
includes your
+# modifications.
+#
+# CONFIG_ARCH_FPU is not set
+# CONFIG_NET_ETHERNET is not set
+# CONFIG_NET_IPv4 is not set
+# CONFIG_NSH_ARGCAT is not set
+# CONFIG_NSH_CMDOPT_HEXDUMP is not set
+# CONFIG_NSH_CMDPARMS is not set
+# CONFIG_SLCAN_TRACE is not set
+CONFIG_ALLOW_GPL_COMPONENTS=y
+CONFIG_ARCH="arm"
+CONFIG_ARCH_BOARD="ucans32k146"
+CONFIG_ARCH_BOARD_UCANS32K146=y
+CONFIG_ARCH_CHIP="s32k1xx"
+CONFIG_ARCH_CHIP_S32K146=y
+CONFIG_ARCH_CHIP_S32K14X=y
+CONFIG_ARCH_CHIP_S32K1XX=y
+CONFIG_ARCH_STACKDUMP=y
+CONFIG_BOARD_LOOPSPERMSEC=6667
+CONFIG_BUILTIN=y
+CONFIG_CANUTILS_CANDUMP=y
+CONFIG_CANUTILS_CANSEND=y
+CONFIG_CANUTILS_SLCAN=y
+CONFIG_FS_PROCFS=y
+CONFIG_HAVE_CXX=y
+CONFIG_HAVE_CXXINITIALIZE=y
+CONFIG_I2C=y
+CONFIG_I2CTOOL_DEFFREQ=10
+CONFIG_I2CTOOL_MAXADDR=0x7f
+CONFIG_I2CTOOL_MAXBUS=0
+CONFIG_I2CTOOL_MINADDR=0x00
+CONFIG_LPUART1_SERIAL_CONSOLE=y
+CONFIG_NET=y
+CONFIG_NETDEV_IFINDEX=y
+CONFIG_NET_CAN=y
+CONFIG_NET_CAN_SOCK_OPTS=y
+CONFIG_NET_TIMESTAMP=y
+CONFIG_NSH_ARCHINIT=y
+CONFIG_NSH_BUILTIN_APPS=y
+CONFIG_NSH_FILEIOSIZE=512
+CONFIG_NSH_READLINE=y
+CONFIG_PREALLOC_TIMERS=4
+CONFIG_RAM_SIZE=126976
+CONFIG_RAM_START=0x1fff
+CONFIG_RAW_BINARY=y
+CONFIG_RR_INTERVAL=200
+CONFIG_RTC=y
+CONFIG_RTC_FREQUENCY=32768
+CONFIG_RTC_HIRES=y
+CONFIG_S32K1XX_FLEXCAN0=y
+CONFIG_S32K1XX_FLEXCAN1=y
+CONFIG_S32K1XX_LPI2C0=y
+CONFIG_S32K1XX_LPSPI0=y
+CONFIG_S32K1XX_LPUART0=y
+CONFIG_S32K1XX_LPUART1=y
+CONFIG_S32K1XX_RTC=y
+CONFIG_SCHED_LPWORK=y
+CONFIG_SCHED_WAITPID=y
+CONFIG_SDCLONE_DISABLE=y
+CONFIG_SIG_DEFAULT=y
+CONFIG_SPITOOL_DEFFREQ=40
+CONFIG_SPITOOL_MAXBUS=0
+CONFIG_START_DAY=6
+CONFIG_START_MONTH=9
+CONFIG_START_YEAR=2021
+CONFIG_SYMTAB_ORDEREDBYNAME=y
+CONFIG_SYSTEM_I2CTOOL=y
+CONFIG_SYSTEM_NSH=y
+CONFIG_SYSTEM_SPITOOL=y
+CONFIG_USER_ENTRYPOINT="nsh_main"


[incubator-nuttx] branch master updated (ea6955f -> 9bbfd31)

2021-09-17 Thread xiaoxiang
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git.


from ea6955f  lcd/st77xx: change 16 bit cmd send to 8 bit
 new 7c8515e  Rename RDDRONE-UAVCAN146 board to UCANS32K146
 new 456b4ed  Remove RDDRONE-UAVCAN144 board
 new 887c508  UCANS32K146 board config: cleanup & update
 new 9bbfd31  UCANS32K146 board: Add CAN configuraton

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 boards/Kconfig |  26 +--
 boards/arm/s32k1xx/rddrone-uavcan144/README.txt|  15 --
 .../rddrone-uavcan144/configs/nsh/defconfig|  63 --
 .../rddrone-uavcan144/configs/nshdebug/defconfig   |  65 --
 .../arm/s32k1xx/rddrone-uavcan144/include/board.h  | 138 -
 .../s32k1xx/rddrone-uavcan144/scripts/Make.defs|  67 ---
 .../arm/s32k1xx/rddrone-uavcan144/scripts/flash.ld | 137 -
 .../s32k1xx/rddrone-uavcan144/scripts/s32k144.cfg  |  58 --
 .../arm/s32k1xx/rddrone-uavcan144/scripts/sram.ld  | 114 ---
 .../rddrone-uavcan144/src/rddrone-uavcan144.h  | 124 
 .../rddrone-uavcan144/src/s32k1xx_autoleds.c   | 150 --
 .../rddrone-uavcan144/src/s32k1xx_bringup.c| 154 --
 .../rddrone-uavcan144/src/s32k1xx_buttons.c| 151 --
 .../rddrone-uavcan144/src/s32k1xx_clockconfig.c| 217 
 .../rddrone-uavcan144/src/s32k1xx_periphclocks.c   | 150 --
 .../s32k1xx/rddrone-uavcan144/src/s32k1xx_spi.c| 184 -
 boards/arm/s32k1xx/rddrone-uavcan146/Kconfig   |   8 -
 boards/arm/s32k1xx/rddrone-uavcan146/README.txt|  15 --
 .../arm/s32k1xx/rddrone-uavcan146/include/board.h  | 152 --
 .../s32k1xx/rddrone-uavcan146/scripts/s32k146.cfg  |  58 --
 boards/arm/s32k1xx/rddrone-uavcan146/src/Makefile  |  44 
 .../rddrone-uavcan146/src/s32k1xx_appinit.c|  79 
 .../s32k1xx/rddrone-uavcan146/src/s32k1xx_spi.c| 184 -
 .../rddrone-uavcan146/src/s32k1xx_userleds.c   | 102 --
 .../{rddrone-uavcan144 => ucans32k146}/Kconfig |   4 +-
 boards/arm/s32k1xx/ucans32k146/README.txt  | 152 ++
 .../nsh => ucans32k146/configs/can}/defconfig  |  25 +--
 .../nshdebug => ucans32k146/configs/nsh}/defconfig |  33 +--
 boards/arm/s32k1xx/ucans32k146/include/board.h | 159 +++
 .../scripts/Make.defs  |   2 +-
 .../scripts/flash.ld   |   2 +-
 .../scripts/s32k146.cfg|   0
 .../scripts/sram.ld|   2 +-
 .../src/Makefile   |  14 +-
 .../src/s32k1xx_appinit.c  |  23 ++-
 .../src/s32k1xx_autoleds.c |  72 ---
 .../src/s32k1xx_boot.c |   9 +-
 .../src/s32k1xx_bringup.c  | 113 ++-
 .../src/s32k1xx_buttons.c  |  21 +-
 .../src/s32k1xx_clockconfig.c  |   8 +-
 .../src/s32k1xx_i2c.c} |  69 ---
 .../src/s32k1xx_periphclocks.c |   6 +-
 boards/arm/s32k1xx/ucans32k146/src/s32k1xx_spi.c   | 223 +
 .../src/s32k1xx_userleds.c |  20 +-
 .../src/ucans32k146.h} |  55 ++---
 45 files changed, 781 insertions(+), 2686 deletions(-)
 delete mode 100644 boards/arm/s32k1xx/rddrone-uavcan144/README.txt
 delete mode 100644 boards/arm/s32k1xx/rddrone-uavcan144/configs/nsh/defconfig
 delete mode 100644 
boards/arm/s32k1xx/rddrone-uavcan144/configs/nshdebug/defconfig
 delete mode 100644 boards/arm/s32k1xx/rddrone-uavcan144/include/board.h
 delete mode 100644 boards/arm/s32k1xx/rddrone-uavcan144/scripts/Make.defs
 delete mode 100644 boards/arm/s32k1xx/rddrone-uavcan144/scripts/flash.ld
 delete mode 100644 boards/arm/s32k1xx/rddrone-uavcan144/scripts/s32k144.cfg
 delete mode 100644 boards/arm/s32k1xx/rddrone-uavcan144/scripts/sram.ld
 delete mode 100644 boards/arm/s32k1xx/rddrone-uavcan144/src/rddrone-uavcan144.h
 delete mode 100644 boards/arm/s32k1xx/rddrone-uavcan144/src/s32k1xx_autoleds.c
 delete mode 100644 boards/arm/s32k1xx/rddrone-uavcan144/src/s32k1xx_bringup.c
 delete mode 100644 boards/arm/s32k1xx/rddrone-uavcan144/src/s32k1xx_buttons.c
 delete mode 100644 
boards/arm/s32k1xx/rddrone-uavcan144/src/s32k1xx_clockconfig.c
 delete mode 100644 
boards/arm/s32k1xx/rddrone-uavcan144/src/s32k1xx_periphclocks.c
 delete mode 100644 boards/arm/s32k1xx/rddrone-uavcan144/src/s32k1xx_spi.c
 delete mode 100644 

[incubator-nuttx] 01/04: Rename RDDRONE-UAVCAN146 board to UCANS32K146

2021-09-17 Thread xiaoxiang
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 7c8515e21ceb953a5179fe9a8ea21fe92cddde39
Author: Jari van Ewijk 
AuthorDate: Tue Sep 14 15:36:53 2021 +0200

Rename RDDRONE-UAVCAN146 board to UCANS32K146
---
 boards/Kconfig | 12 ++--
 .../s32k1xx/{rddrone-uavcan146 => ucans32k146}/Kconfig |  4 ++--
 .../{rddrone-uavcan146 => ucans32k146}/README.txt  |  2 +-
 .../configs/nsh/defconfig  |  4 ++--
 .../configs/nshdebug/defconfig |  4 ++--
 .../{rddrone-uavcan146 => ucans32k146}/include/board.h | 18 +-
 .../scripts/Make.defs  |  2 +-
 .../scripts/flash.ld   |  2 +-
 .../scripts/s32k146.cfg|  0
 .../{rddrone-uavcan146 => ucans32k146}/scripts/sram.ld |  2 +-
 .../{rddrone-uavcan146 => ucans32k146}/src/Makefile|  2 +-
 .../src/s32k1xx_appinit.c  |  4 ++--
 .../src/s32k1xx_autoleds.c |  6 +++---
 .../src/s32k1xx_boot.c |  4 ++--
 .../src/s32k1xx_bringup.c  |  4 ++--
 .../src/s32k1xx_buttons.c  |  6 +++---
 .../src/s32k1xx_clockconfig.c  |  4 ++--
 .../src/s32k1xx_periphclocks.c |  4 ++--
 .../src/s32k1xx_spi.c  |  7 +++
 .../src/s32k1xx_userleds.c |  4 ++--
 .../src/ucans32k146.h} | 17 -
 21 files changed, 55 insertions(+), 57 deletions(-)

diff --git a/boards/Kconfig b/boards/Kconfig
index 5a8133b..d2c35c7 100644
--- a/boards/Kconfig
+++ b/boards/Kconfig
@@ -1465,14 +1465,14 @@ config ARCH_BOARD_RDDRONE_UAVCAN144
This options selects support for NuttX on the NXP 
RDDRONE-UAVCAN board
featuring the S32K144 Cortex-M4F.
 
-config ARCH_BOARD_RDDRONE_UAVCAN146
-   bool "NXP RDDRONE-UAVCAN146"
+config ARCH_BOARD_UCANS32K146
+   bool "NXP UCANS32K146"
depends on ARCH_CHIP_S32K146
select ARCH_HAVE_LEDS
select ARCH_HAVE_BUTTONS
select ARCH_HAVE_IRQBUTTONS
---help---
-   This options selects support for NuttX on the NXP 
RDDRONE-UAVCAN board
+   This options selects support for NuttX on the NXP UCANS32K board
featuring the S32K146 Cortex-M4F.
 
 config ARCH_BOARD_S32K146EVB
@@ -2475,7 +2475,7 @@ config ARCH_BOARD
default "s32k118evb"   if ARCH_BOARD_S32K118EVB
default "s32k144evb"   if ARCH_BOARD_S32K144EVB
default "rddrone-uavcan144"if ARCH_BOARD_RDDRONE_UAVCAN144
-   default "rddrone-uavcan146"if ARCH_BOARD_RDDRONE_UAVCAN146
+   default "ucans32k146"  if ARCH_BOARD_UCANS32K146
default "rv32m1-vega"  if ARCH_BOARD_RV32M1_VEGA
default "s32k146evb"   if ARCH_BOARD_S32K146EVB
default "s32k148evb"   if ARCH_BOARD_S32K148EVB
@@ -2637,8 +2637,8 @@ endif
 if ARCH_BOARD_RDDRONE_UAVCAN144
 source "boards/arm/s32k1xx/rddrone-uavcan144/Kconfig"
 endif
-if ARCH_BOARD_RDDRONE_UAVCAN146
-source "boards/arm/s32k1xx/rddrone-uavcan146/Kconfig"
+if ARCH_BOARD_UCANS32K146
+source "boards/arm/s32k1xx/ucans32k146/Kconfig"
 endif
 if ARCH_BOARD_S32K146EVB
 source "boards/arm/s32k1xx/s32k146evb/Kconfig"
diff --git a/boards/arm/s32k1xx/rddrone-uavcan146/Kconfig 
b/boards/arm/s32k1xx/ucans32k146/Kconfig
similarity index 66%
rename from boards/arm/s32k1xx/rddrone-uavcan146/Kconfig
rename to boards/arm/s32k1xx/ucans32k146/Kconfig
index 77a4ee5..47d4939 100644
--- a/boards/arm/s32k1xx/rddrone-uavcan146/Kconfig
+++ b/boards/arm/s32k1xx/ucans32k146/Kconfig
@@ -3,6 +3,6 @@
 # see the file kconfig-language.txt in the NuttX tools repository.
 #
 
-if ARCH_BOARD_RDDRONE_UAVCAN146
+if ARCH_BOARD_UCANS32K146
 
-endif # ARCH_BOARD_RDDRONE_UAVCAN146
+endif # ARCH_BOARD_UCANS32K146
diff --git a/boards/arm/s32k1xx/rddrone-uavcan146/README.txt 
b/boards/arm/s32k1xx/ucans32k146/README.txt
similarity index 66%
rename from boards/arm/s32k1xx/rddrone-uavcan146/README.txt
rename to boards/arm/s32k1xx/ucans32k146/README.txt
index 69f96c0..4162fb0c 100644
--- a/boards/arm/s32k1xx/rddrone-uavcan146/README.txt
+++ b/boards/arm/s32k1xx/ucans32k146/README.txt
@@ -1,7 +1,7 @@
 README
 ==
 
-This directory holds the port to the NXP RDDRONE-UAVCAN board with S32K146 MCU.
+This directory holds the port to the NXP UCANS32K board with S32K146 MCU.
 
 Contents
 
diff --git a/boards/arm/s32k1xx/rddrone-uavcan146/configs/nsh/defconfig 
b/boards/arm/s32k1xx/ucans32k146/configs/nsh/defconfig
similarity index 96%
rename from 

[incubator-nuttx] 03/04: UCANS32K146 board config: cleanup & update

2021-09-17 Thread xiaoxiang
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 887c508866e0b0f9e4d22501528ebc84e64dff66
Author: Jari van Ewijk 
AuthorDate: Thu Sep 16 15:45:09 2021 +0200

UCANS32K146 board config: cleanup & update
---
 boards/arm/s32k1xx/ucans32k146/README.txt  | 135 +-
 .../arm/s32k1xx/ucans32k146/configs/nsh/defconfig  |  42 +-
 .../s32k1xx/ucans32k146/configs/nshdebug/defconfig |  65 -
 boards/arm/s32k1xx/ucans32k146/include/board.h | 123 
 boards/arm/s32k1xx/ucans32k146/scripts/s32k146.cfg |   2 +-
 boards/arm/s32k1xx/ucans32k146/src/Makefile|  12 +-
 .../arm/s32k1xx/ucans32k146/src/s32k1xx_appinit.c  |  19 +--
 .../arm/s32k1xx/ucans32k146/src/s32k1xx_autoleds.c |  68 +
 boards/arm/s32k1xx/ucans32k146/src/s32k1xx_boot.c  |   5 +-
 .../arm/s32k1xx/ucans32k146/src/s32k1xx_bringup.c  | 109 --
 .../arm/s32k1xx/ucans32k146/src/s32k1xx_buttons.c  |  17 +--
 .../s32k1xx/ucans32k146/src/s32k1xx_clockconfig.c  |   4 +-
 .../src/{s32k1xx_boot.c => s32k1xx_i2c.c}  |  67 -
 .../s32k1xx/ucans32k146/src/s32k1xx_periphclocks.c |   2 +
 boards/arm/s32k1xx/ucans32k146/src/s32k1xx_spi.c   | 158 +
 .../arm/s32k1xx/ucans32k146/src/s32k1xx_userleds.c |  18 ++-
 boards/arm/s32k1xx/ucans32k146/src/ucans32k146.h   |  40 +++---
 17 files changed, 497 insertions(+), 389 deletions(-)

diff --git a/boards/arm/s32k1xx/ucans32k146/README.txt 
b/boards/arm/s32k1xx/ucans32k146/README.txt
index 4162fb0c..21f332d 100644
--- a/boards/arm/s32k1xx/ucans32k146/README.txt
+++ b/boards/arm/s32k1xx/ucans32k146/README.txt
@@ -1,15 +1,146 @@
 README
 ==
 
-This directory holds the port to the NXP UCANS32K board with S32K146 MCU.
+This directory holds the port to the NXP UCANS32K146 boards.  There exist a
+few different revisions/variants of this board.  All variants with the
+S32K146 microcontroller are supported.
 
 Contents
 
 
   o Status
+  o Serial Console
+  o LEDs and Buttons
+  o Thread-Aware Debugging with Eclipse
+  o Configurations
 
 Status
 ==
 
   2020-01-23:  Configuration created (copy-paste from S32K146EVB).
-Tested: Serial console
+Tested: Serial console, I2C, SPI.
+
+  2020-06-15:  Added FlexCAN driver with SocketCAN support to the S32K1XX
+arch, which has been tested with the UCANS32K146 board as well.
+
+  2020-06-16:  Added Emulated EEPROM driver and initialization.
+
+Serial Console
+==
+
+  By default, the serial console will be provided on the DCD-LZ UART
+  (available on the 7-pin DCD-LZ debug connector P6):
+
+OpenSDA UART RX  PTC6  (LPUART1_RX)
+OpenSDA UART TX  PTC7  (LPUART1_TX)
+
+  USB drivers for the PEmicro CDC Serial Port are available here:
+  http://www.pemicro.com/opensda/
+
+LEDs and Buttons
+
+
+  LEDs
+  
+  The UCANS32K146 has one RGB LED:
+
+RedLEDPTD15  (FTM0 CH0)
+GreenLED  PTD16  (FTM0 CH1)
+BlueLED   PTD0   (FTM0 CH2)
+
+  An output of '0' illuminates the LED.
+
+  If CONFIG_ARCH_LEDS is not defined, then the user can control the LEDs in
+  any way.  The following definitions are used to access individual RGB
+  components (see ucans32k146.h):
+
+GPIO_LED_R
+GPIO_LED_G
+GPIO_LED_B
+
+  The RGB components could, alternatively, be controlled through PWM using
+  the common RGB LED driver.
+
+  If CONFIG_ARCH_LEDs is defined, then NuttX will control the LEDs on board
+  the UCANS32K146.  The following definitions describe how NuttX controls the
+  LEDs:
+
+==+++=
+ RED GREEN BLUE
+==+++=
+
+LED_STARTED  NuttX has been started  OFF  OFF  OFF
+LED_HEAPALLOCATE Heap has been allocated OFF  OFF  ON
+LED_IRQSENABLED  Interrupts enabled  OFF  OFF  ON
+LED_STACKCREATED Idle stack created  OFF  ON   OFF
+LED_INIRQIn an interrupt   (no change)
+LED_SIGNAL   In a signal handler   (no change)
+LED_ASSERTIONAn assertion failed   (no change)
+LED_PANICThe system has crashed  FLASHOFF  OFF
+LED_IDLE S32K146 in sleep mode (no change)
+==+++=
+
+  Buttons
+  ---
+  The UCANS32K146 supports one button:
+
+SW3  PTC14
+
+Thread-Aware Debugging with Eclipse
+===
+
+  Thread-aware debugging is possible with openocd-nuttx
+  ( https://github.com/sony/openocd-nuttx ) and was tested together with the
+  Eclipse-based S32 Design Studio for Arm:  
+  

[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #4560: RDDRONE-UAVCAN / UCANS32K146 boards cleanup & update

2021-09-17 Thread GitBox


xiaoxiang781216 merged pull request #4560:
URL: https://github.com/apache/incubator-nuttx/pull/4560


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[incubator-nuttx] 02/04: Remove RDDRONE-UAVCAN144 board

2021-09-17 Thread xiaoxiang
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 456b4ed5848fe1abd417aed5ba52ab3d9e76c25f
Author: Jari van Ewijk 
AuthorDate: Tue Sep 14 15:39:58 2021 +0200

Remove RDDRONE-UAVCAN144 board
---
 boards/Kconfig |  14 --
 boards/arm/s32k1xx/rddrone-uavcan144/Kconfig   |   8 -
 boards/arm/s32k1xx/rddrone-uavcan144/README.txt|  15 --
 .../rddrone-uavcan144/configs/nsh/defconfig|  63 --
 .../rddrone-uavcan144/configs/nshdebug/defconfig   |  65 --
 .../arm/s32k1xx/rddrone-uavcan144/include/board.h  | 138 -
 .../s32k1xx/rddrone-uavcan144/scripts/Make.defs|  67 ---
 .../arm/s32k1xx/rddrone-uavcan144/scripts/flash.ld | 137 -
 .../s32k1xx/rddrone-uavcan144/scripts/s32k144.cfg  |  58 --
 .../arm/s32k1xx/rddrone-uavcan144/scripts/sram.ld  | 114 ---
 boards/arm/s32k1xx/rddrone-uavcan144/src/Makefile  |  44 -
 .../rddrone-uavcan144/src/rddrone-uavcan144.h  | 124 
 .../rddrone-uavcan144/src/s32k1xx_appinit.c|  79 
 .../rddrone-uavcan144/src/s32k1xx_autoleds.c   | 150 --
 .../s32k1xx/rddrone-uavcan144/src/s32k1xx_boot.c   |  78 
 .../rddrone-uavcan144/src/s32k1xx_bringup.c| 154 ---
 .../rddrone-uavcan144/src/s32k1xx_buttons.c| 151 --
 .../rddrone-uavcan144/src/s32k1xx_clockconfig.c| 217 -
 .../rddrone-uavcan144/src/s32k1xx_periphclocks.c   | 150 --
 .../s32k1xx/rddrone-uavcan144/src/s32k1xx_spi.c| 184 -
 .../rddrone-uavcan144/src/s32k1xx_userleds.c   | 102 --
 21 files changed, 2112 deletions(-)

diff --git a/boards/Kconfig b/boards/Kconfig
index d2c35c7..d04a65b 100644
--- a/boards/Kconfig
+++ b/boards/Kconfig
@@ -1455,16 +1455,6 @@ config ARCH_BOARD_S32K144EVB
This options selects support for NuttX on the NXP S32K144EVB 
board
featuring the S32K144 Cortex-M4F.
 
-config ARCH_BOARD_RDDRONE_UAVCAN144
-   bool "NXP RDDRONE-UAVCAN144"
-   depends on ARCH_CHIP_S32K144
-   select ARCH_HAVE_LEDS
-   select ARCH_HAVE_BUTTONS
-   select ARCH_HAVE_IRQBUTTONS
-   ---help---
-   This options selects support for NuttX on the NXP 
RDDRONE-UAVCAN board
-   featuring the S32K144 Cortex-M4F.
-
 config ARCH_BOARD_UCANS32K146
bool "NXP UCANS32K146"
depends on ARCH_CHIP_S32K146
@@ -2474,7 +2464,6 @@ config ARCH_BOARD
default "rx65n-grrose" if ARCH_BOARD_RX65N_GRROSE
default "s32k118evb"   if ARCH_BOARD_S32K118EVB
default "s32k144evb"   if ARCH_BOARD_S32K144EVB
-   default "rddrone-uavcan144"if ARCH_BOARD_RDDRONE_UAVCAN144
default "ucans32k146"  if ARCH_BOARD_UCANS32K146
default "rv32m1-vega"  if ARCH_BOARD_RV32M1_VEGA
default "s32k146evb"   if ARCH_BOARD_S32K146EVB
@@ -2634,9 +2623,6 @@ endif
 if ARCH_BOARD_S32K144EVB
 source "boards/arm/s32k1xx/s32k144evb/Kconfig"
 endif
-if ARCH_BOARD_RDDRONE_UAVCAN144
-source "boards/arm/s32k1xx/rddrone-uavcan144/Kconfig"
-endif
 if ARCH_BOARD_UCANS32K146
 source "boards/arm/s32k1xx/ucans32k146/Kconfig"
 endif
diff --git a/boards/arm/s32k1xx/rddrone-uavcan144/Kconfig 
b/boards/arm/s32k1xx/rddrone-uavcan144/Kconfig
deleted file mode 100644
index c61362c..000
--- a/boards/arm/s32k1xx/rddrone-uavcan144/Kconfig
+++ /dev/null
@@ -1,8 +0,0 @@
-#
-# For a description of the syntax of this configuration file,
-# see the file kconfig-language.txt in the NuttX tools repository.
-#
-
-if ARCH_BOARD_RDDRONE_UAVCAN144
-
-endif # ARCH_BOARD_RDDRONE_UAVCAN144
diff --git a/boards/arm/s32k1xx/rddrone-uavcan144/README.txt 
b/boards/arm/s32k1xx/rddrone-uavcan144/README.txt
deleted file mode 100644
index be52005..000
--- a/boards/arm/s32k1xx/rddrone-uavcan144/README.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-README
-==
-
-This directory holds the port to the NXP RDDRONE-UAVCAN board with S32K144 MCU.
-
-Contents
-
-
-  o Status
-
-Status
-==
-
-  2020-01-23:  Configuration created (copy-paste from S32K146EVB).
-Tested: Serial console, I2C, SPI
diff --git a/boards/arm/s32k1xx/rddrone-uavcan144/configs/nsh/defconfig 
b/boards/arm/s32k1xx/rddrone-uavcan144/configs/nsh/defconfig
deleted file mode 100644
index d42c12f..000
--- a/boards/arm/s32k1xx/rddrone-uavcan144/configs/nsh/defconfig
+++ /dev/null
@@ -1,63 +0,0 @@
-#
-# This file is autogenerated: PLEASE DO NOT EDIT IT.
-#
-# You can use "make menuconfig" to make any modifications to the installed 
.config file.
-# You can then do "make savedefconfig" to generate a new defconfig file that 
includes your
-# modifications.
-#
-# CONFIG_ARCH_FPU is not set
-# CONFIG_NSH_ARGCAT is not set
-# CONFIG_NSH_CMDOPT_HEXDUMP is 

[incubator-nuttx-apps] branch master updated: SLCAN: Fix incorrect format identifier in print function

2021-09-17 Thread xiaoxiang
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
 new 7cbe2db  SLCAN: Fix incorrect format identifier in print function
7cbe2db is described below

commit 7cbe2db2c945e09d0d6758b7578c78fc82827bc8
Author: Jari van Ewijk 
AuthorDate: Fri Sep 17 13:44:59 2021 +0200

SLCAN: Fix incorrect format identifier in print function
---
 canutils/slcan/slcan.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/canutils/slcan/slcan.c b/canutils/slcan/slcan.c
index 674db52..4ebff93 100644
--- a/canutils/slcan/slcan.c
+++ b/canutils/slcan/slcan.c
@@ -258,20 +258,20 @@ int main(int argc, char *argv[])
   if (nbytes == CAN_MTU)
 {
   reccount++;
-  debug_print("R%d, Id:0x%X\n", reccount, frame.can_id);
+  debug_print("R%d, Id:0x%lX\n", reccount, frame.can_id);
   if (frame.can_id & CAN_EFF_FLAG)
 {
   /* 29 bit address */
 
   frame.can_id = frame.can_id & ~CAN_EFF_FLAG;
-  sprintf(sbuf, "T%08X%d", frame.can_id, frame.len);
+  sprintf(sbuf, "T%08lX%d", frame.can_id, frame.len);
   sbp = [10];
 }
   else
 {
   /* 11 bit address */
 
-  sprintf(sbuf, "t%03X%d", frame.can_id, frame.len);
+  sprintf(sbuf, "t%03lX%d", frame.can_id, frame.len);
   sbp = [5];
 }
 


[GitHub] [incubator-nuttx-apps] xiaoxiang781216 merged pull request #855: SLCAN: Fix incorrect format identifier in print function

2021-09-17 Thread GitBox


xiaoxiang781216 merged pull request #855:
URL: https://github.com/apache/incubator-nuttx-apps/pull/855


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-nuttx] acassis commented on pull request #4569: MPFS emmcsd

2021-09-17 Thread GitBox


acassis commented on pull request #4569:
URL: https://github.com/apache/incubator-nuttx/pull/4569#issuecomment-921774283


   @jrosberg it is failing because this warning:
   ```
   Building NuttX...
   In file included from mmcsd/mmcsd_spi.c:39:
   mmcsd/mmcsd_spi.c: In function 'mmcsd_read':
   Error: mmcsd/mmcsd_spi.c:1300:9: error: format '%d' expects argument of type 
'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} 
[-Werror=format=]
  finfo("Read %d bytes:\n", nbytes);
^~  ~~
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[incubator-nuttx] branch master updated: lcd/st77xx: change 16 bit cmd send to 8 bit

2021-09-17 Thread acassis
This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
 new ea6955f  lcd/st77xx: change 16 bit cmd send to 8 bit
ea6955f is described below

commit ea6955f77b4ec9ffb3797a278674d231bdf93290
Author: Peter Bee 
AuthorDate: Fri Sep 17 14:49:19 2021 +0800

lcd/st77xx: change 16 bit cmd send to 8 bit

Make sending commands independent of processor endianness. The data can
be handled by application side, such as LVGL has SWAP16 option.

Signed-off-by: Peter Bee 
---
 drivers/lcd/gc9a01.c | 16 ++--
 drivers/lcd/st7735.c | 16 ++--
 drivers/lcd/st7789.c | 18 +++---
 3 files changed, 31 insertions(+), 19 deletions(-)

diff --git a/drivers/lcd/gc9a01.c b/drivers/lcd/gc9a01.c
index 6f8de70..84ac24a 100644
--- a/drivers/lcd/gc9a01.c
+++ b/drivers/lcd/gc9a01.c
@@ -482,17 +482,21 @@ static void gc9a01_setarea(FAR struct gc9a01_dev_s *dev,
   /* Set row address */
 
   gc9a01_sendcmd(dev, GC9A01_RASET);
-  gc9a01_select(dev->spi, 16);
-  SPI_SEND(dev->spi, y0 + GC9A01_YOFFSET);
-  SPI_SEND(dev->spi, y1 + GC9A01_YOFFSET);
+  gc9a01_select(dev->spi, 8);
+  SPI_SEND(dev->spi, (y0 + GC9A01_YOFFSET) >> 8);
+  SPI_SEND(dev->spi, (y0 + GC9A01_YOFFSET) & 0xff);
+  SPI_SEND(dev->spi, (y1 + GC9A01_YOFFSET) >> 8);
+  SPI_SEND(dev->spi, (y1 + GC9A01_YOFFSET) & 0xff);
   gc9a01_deselect(dev->spi);
 
   /* Set column address */
 
   gc9a01_sendcmd(dev, GC9A01_CASET);
-  gc9a01_select(dev->spi, 16);
-  SPI_SEND(dev->spi, x0 + GC9A01_XOFFSET);
-  SPI_SEND(dev->spi, x1 + GC9A01_XOFFSET);
+  gc9a01_select(dev->spi, 8);
+  SPI_SEND(dev->spi, (x0 + GC9A01_XOFFSET) >> 8);
+  SPI_SEND(dev->spi, (x0 + GC9A01_XOFFSET) & 0xff);
+  SPI_SEND(dev->spi, (x1 + GC9A01_XOFFSET) >> 8);
+  SPI_SEND(dev->spi, (x1 + GC9A01_XOFFSET) & 0xff);
   gc9a01_deselect(dev->spi);
 }
 
diff --git a/drivers/lcd/st7735.c b/drivers/lcd/st7735.c
index b3b7eed..8824fd1 100644
--- a/drivers/lcd/st7735.c
+++ b/drivers/lcd/st7735.c
@@ -405,17 +405,21 @@ static void st7735_setarea(FAR struct st7735_dev_s *dev,
   /* Set row address */
 
   st7735_sendcmd(dev, ST7735_RASET);
-  st7735_select(dev->spi, 16);
-  SPI_SEND(dev->spi, y0 + ST7735_YOFFSET);
-  SPI_SEND(dev->spi, y1 + ST7735_YOFFSET);
+  st7735_select(dev->spi, 8);
+  SPI_SEND(dev->spi, (y0 + ST7735_YOFFSET) >> 8);
+  SPI_SEND(dev->spi, (y0 + ST7735_YOFFSET) & 0xff);
+  SPI_SEND(dev->spi, (y1 + ST7735_YOFFSET) >> 8);
+  SPI_SEND(dev->spi, (y1 + ST7735_YOFFSET) & 0xff);
   st7735_deselect(dev->spi);
 
   /* Set column address */
 
   st7735_sendcmd(dev, ST7735_CASET);
-  st7735_select(dev->spi, 16);
-  SPI_SEND(dev->spi, x0 + ST7735_XOFFSET);
-  SPI_SEND(dev->spi, x1 + ST7735_XOFFSET);
+  st7735_select(dev->spi, 8);
+  SPI_SEND(dev->spi, (x0 + ST7735_XOFFSET) >> 8);
+  SPI_SEND(dev->spi, (x0 + ST7735_XOFFSET) & 0xff);
+  SPI_SEND(dev->spi, (x1 + ST7735_XOFFSET) >> 8);
+  SPI_SEND(dev->spi, (x1 + ST7735_XOFFSET) & 0xff);
   st7735_deselect(dev->spi);
 }
 
diff --git a/drivers/lcd/st7789.c b/drivers/lcd/st7789.c
index a9e519e..e4eb394 100644
--- a/drivers/lcd/st7789.c
+++ b/drivers/lcd/st7789.c
@@ -300,7 +300,7 @@ static void st7789_deselect(FAR struct spi_dev_s *spi)
 
 static inline void st7789_sendcmd(FAR struct st7789_dev_s *dev, uint8_t cmd)
 {
-  st7789_select(dev->spi, ST7789_BYTESPP * 8);
+  st7789_select(dev->spi, 8);
   SPI_CMDDATA(dev->spi, SPIDEV_DISPLAY(0), true);
   SPI_SEND(dev->spi, cmd);
   SPI_CMDDATA(dev->spi, SPIDEV_DISPLAY(0), false);
@@ -386,17 +386,21 @@ static void st7789_setarea(FAR struct st7789_dev_s *dev,
   /* Set row address */
 
   st7789_sendcmd(dev, ST7789_RASET);
-  st7789_select(dev->spi, 16);
-  SPI_SEND(dev->spi, y0 + ST7789_YOFFSET);
-  SPI_SEND(dev->spi, y1 + ST7789_YOFFSET);
+  st7789_select(dev->spi, 8);
+  SPI_SEND(dev->spi, (y0 + ST7789_YOFFSET) >> 8);
+  SPI_SEND(dev->spi, (y0 + ST7789_YOFFSET) & 0xff);
+  SPI_SEND(dev->spi, (y1 + ST7789_YOFFSET) >> 8);
+  SPI_SEND(dev->spi, (y1 + ST7789_YOFFSET) & 0xff);
   st7789_deselect(dev->spi);
 
   /* Set column address */
 
   st7789_sendcmd(dev, ST7789_CASET);
-  st7789_select(dev->spi, 16);
-  SPI_SEND(dev->spi, x0 + ST7789_XOFFSET);
-  SPI_SEND(dev->spi, x1 + ST7789_XOFFSET);
+  st7789_select(dev->spi, 8);
+  SPI_SEND(dev->spi, (x0 + ST7789_XOFFSET) >> 8);
+  SPI_SEND(dev->spi, (x0 + ST7789_XOFFSET) & 0xff);
+  SPI_SEND(dev->spi, (x1 + ST7789_XOFFSET) >> 8);
+  SPI_SEND(dev->spi, (x1 + ST7789_XOFFSET) & 0xff);
   st7789_deselect(dev->spi);
 }
 


[GitHub] [incubator-nuttx] acassis merged pull request #4567: lcd/st77xx: change 16 bit cmd send to 8 bit

2021-09-17 Thread GitBox


acassis merged pull request #4567:
URL: https://github.com/apache/incubator-nuttx/pull/4567


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-nuttx] acassis commented on pull request #4564: Doc: Update download version to 10.1 and fix tar command

2021-09-17 Thread GitBox


acassis commented on pull request #4564:
URL: https://github.com/apache/incubator-nuttx/pull/4564#issuecomment-921763788


   > .
   
   Done, please review and merge


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[incubator-nuttx] branch master updated (e5af776 -> a7a3d8b)

2021-09-17 Thread acassis
This is an automated email from the ASF dual-hosted git repository.

acassis pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git.


from e5af776  bcm43xxx: fixed an issue with abrupt stall of receiving new 
credits (via sdpcm header) from bcm43362 chip/firmware as soon as a high 
network traffic started
 add a7a3d8b  boards/esp32c3: add ESP32C3 LCD drivers

No new revisions were added by this update.

Summary of changes:
 boards/risc-v/esp32c3/esp32c3-devkit/Kconfig   | 12 +
 boards/risc-v/esp32c3/esp32c3-devkit/src/Makefile  | 12 +
 .../esp32c3/esp32c3-devkit/src/esp32c3_board_spi.c | 16 +++
 .../esp32c3/esp32c3-devkit/src/esp32c3_bringup.c   | 31 +
 .../esp32c3/esp32c3-devkit/src/esp32c3_gc9a01.c}   | 51 +++---
 .../esp32c3/esp32c3-devkit/src/esp32c3_st7735.c}   | 47 ++--
 .../esp32c3/esp32c3-devkit/src/esp32c3_st7789.c}   | 47 ++--
 7 files changed, 142 insertions(+), 74 deletions(-)
 copy boards/{arm/rp2040/common/src/rp2040_st7789.c => 
risc-v/esp32c3/esp32c3-devkit/src/esp32c3_gc9a01.c} (79%)
 copy boards/{arm/rp2040/common/src/rp2040_st7735.c => 
risc-v/esp32c3/esp32c3-devkit/src/esp32c3_st7735.c} (81%)
 copy boards/{arm/rp2040/common/src/rp2040_st7789.c => 
risc-v/esp32c3/esp32c3-devkit/src/esp32c3_st7789.c} (81%)


[GitHub] [incubator-nuttx] acassis merged pull request #4568: boards/esp32c3: add ESP32C3 LCD drivers

2021-09-17 Thread GitBox


acassis merged pull request #4568:
URL: https://github.com/apache/incubator-nuttx/pull/4568


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-nuttx] jarivanewijk commented on pull request #4560: RDDRONE-UAVCAN / UCANS32K146 boards cleanup & update

2021-09-17 Thread GitBox


jarivanewijk commented on pull request #4560:
URL: https://github.com/apache/incubator-nuttx/pull/4560#issuecomment-921736073


   Looks like there is a warning being caused by the SLCAN application. This PR 
gets rid of the warning: 
https://github.com/apache/incubator-nuttx-apps/pull/855. If that gets merged 
and checks are run on this PR again it should pass.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-nuttx-apps] jarivanewijk opened a new pull request #855: SLCAN: Fix incorrect format identifier in print function

2021-09-17 Thread GitBox


jarivanewijk opened a new pull request #855:
URL: https://github.com/apache/incubator-nuttx-apps/pull/855


   ## Summary
   
   Fixes an incorrect format identifier in print functions in the SLCAN code. 
The variable is of type unsigned long, but the identifier corresponds to a 
standard unsigned type (hexadecimal): %X needs to be changed to %lX to prevent 
a compiler warning.
   
   ## Impact
   
   This prevents a warning that for examiple causes this PR to fail the checks: 
https://github.com/apache/incubator-nuttx/pull/4560
   
   ## Testing
   
   Builds without warnings/errors now.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-nuttx] xiaoxiang781216 closed issue #4389: esp32c3:ledc(pwm) is not support “CONFIG_PWM_NCHANNELS” ?

2021-09-17 Thread GitBox


xiaoxiang781216 closed issue #4389:
URL: https://github.com/apache/incubator-nuttx/issues/4389


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-nuttx] PeterBee97 commented on issue #4389: esp32c3:ledc(pwm) is not support “CONFIG_PWM_NCHANNELS” ?

2021-09-17 Thread GitBox


PeterBee97 commented on issue #4389:
URL: 
https://github.com/apache/incubator-nuttx/issues/4389#issuecomment-921702159


   Solved by https://github.com/apache/incubator-nuttx/pull/4553.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on a change in pull request #854: system/libuv: Bump to v1.42.0

2021-09-17 Thread GitBox


xiaoxiang781216 commented on a change in pull request #854:
URL: 
https://github.com/apache/incubator-nuttx-apps/pull/854#discussion_r710920736



##
File path: system/libuv/0001-unix-check-wehter-SIGPROF-exists.patch
##
@@ -0,0 +1,48 @@
+From 6aba4ab8a44c73e1a771cdffea3588e09f71ec22 Mon Sep 17 00:00:00 2001
+From: Huang Qi 
+Date: Mon, 12 Apr 2021 12:13:43 +0800
+Subject: [PATCH 1/6] unix: check wehter SIGPROF exists
+
+Signed-off-by: Huang Qi 
+Change-Id: I676ab6d271d1a224e3e570e27f15072a3bb23de4
+---
+ src/unix/loop.c   | 2 ++
+ src/unix/posix-poll.c | 2 ++
+ 2 files changed, 4 insertions(+)
+
+diff --git a/src/unix/loop.c b/src/unix/loop.c
+index a88e71c3..dad463b3 100644
+--- a/src/unix/loop.c
 b/src/unix/loop.c
+@@ -220,8 +220,10 @@ int uv__loop_configure(uv_loop_t* loop, uv_loop_option 
option, va_list ap) {
+   if (option != UV_LOOP_BLOCK_SIGNAL)
+ return UV_ENOSYS;
+ 
++#ifdef SIGPROF

Review comment:
   the change is general, let's upstream to libuv community.

##
File path: system/libuv/0003-nuttx-initial-support.patch
##
@@ -0,0 +1,171 @@
+From 9a33511642a63ccd0f862ed97597666438d44d23 Mon Sep 17 00:00:00 2001
+From: Huang Qi 
+Date: Fri, 19 Mar 2021 18:36:29 +0800
+Subject: [PATCH 3/6] nuttx: initial support
+
+Signed-off-by: Huang Qi 
+Change-Id: Ib680de8d8d5b4612e4f58cd37ff1398b4b73a7e1
+---
+ include/uv/unix.h |  2 ++
+ src/random.c  |  2 +-
+ src/threadpool.c  |  2 +-
+ src/unix/core.c   |  2 +-
+ src/unix/nuttx.c  | 45 +
+ src/unix/signal.c |  3 ++-
+ src/unix/udp.c|  8 +---
+ 7 files changed, 57 insertions(+), 7 deletions(-)
+ create mode 100644 src/unix/nuttx.c
+
+diff --git a/include/uv/unix.h b/include/uv/unix.h
+index e3cf7bdd..bf8dc32c 100644
+--- a/include/uv/unix.h
 b/include/uv/unix.h
+@@ -71,6 +71,8 @@
+ # include "uv/posix.h"
+ #elif defined(__QNX__)
+ # include "uv/posix.h"
++#elif defined(__NuttX__)

Review comment:
   let's upstream NuttX specific change to libuv community too.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-nuttx-apps] no1wudi opened a new pull request #854: system/libuv: Bump to v1.42.0

2021-09-17 Thread GitBox


no1wudi opened a new pull request #854:
URL: https://github.com/apache/incubator-nuttx-apps/pull/854


   ## Summary
   Bump libuv to latest release with new porting (without libuv's builtin test 
currently), porting tree see: 
   
   https://github.com/no1wudi/incubator-nuttx-apps/tree/dev
   
   Note: In this porting, we use standard POSIX system call instead of some 
nuttx's specific logic (they may have some benefits for code size or memory 
overhead)
   ## Impact
   libuv
   ## Testing
   Tested with adb on my custom board.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-nuttx] jrosberg opened a new pull request #4569: MPFS emmcsd

2021-09-17 Thread GitBox


jrosberg opened a new pull request #4569:
URL: https://github.com/apache/incubator-nuttx/pull/4569


   ## Summary
   mpfs: add emmcsd driver
   
   ## Impact
   This adds the emmcsd driver for the Polarfire Icicle kit.
   
   ## Testing
   The driver has been tested with several SD-cards, such as:
   
   - Kingston 32 GB SDS2 Canvas Select Plus
   - Kingston MicroSD Canvas Select Plus
   - Sandisk Extreme PRO 32 GB
   - Transcend 8 GB MicroSD
   
   The internal eMMC hasn't been tested comprehensively.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-nuttx] PeterBee97 opened a new pull request #4568: boards/esp32c3: add ESP32C3 LCD drivers

2021-09-17 Thread GitBox


PeterBee97 opened a new pull request #4568:
URL: https://github.com/apache/incubator-nuttx/pull/4568


   Add board driver for ST7735, ST7789 and GC9A01
   
   Signed-off-by: Peter Bee 
   
   ## Summary
   
   ## Impact
   
   ## Testing
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-nuttx] PeterBee97 opened a new pull request #4567: lcd/st77xx: change 16 bit cmd send to 8 bit

2021-09-17 Thread GitBox


PeterBee97 opened a new pull request #4567:
URL: https://github.com/apache/incubator-nuttx/pull/4567


   Make sending commands independent of processor endianness. The data can
   be handled by application side, such as LVGL has SWAP16 option.
   
   Signed-off-by: Peter Bee 
   
   ## Summary
   
   ## Impact
   
   ## Testing
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org