You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/07/04 04:33:48 UTC
[incubator-nuttx] branch master updated (f75437d -> 12fb49d)
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 f75437d libs: libnx: nxfonts: Fix prefix of generated fonts data
new 751f797 boards: cxd56xx: Fix crashdump compile error in SMP
new 6f78544 boards: cxd56xx: Fix some printf format warnings
new adc72de boards: cxd56xx: Fix bmp280 compile error
new 12fb49d boards: cxd56xx: Fix warning of cxd56 audio driver
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/arm/cxd56xx/common/src/cxd56_audio.c | 2 ++
boards/arm/cxd56xx/common/src/cxd56_crashdump.c | 4 ++++
boards/arm/cxd56xx/drivers/sensors/bmp280_scu.c | 2 +-
boards/arm/cxd56xx/spresense/src/cxd56_pwm.c | 4 ++--
4 files changed, 9 insertions(+), 3 deletions(-)
[incubator-nuttx] 01/04: boards: cxd56xx: Fix crashdump compile
error in SMP
Posted by xi...@apache.org.
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 751f7973e9ce1de810aa3c6ab032e9fd03599fa7
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Sun Jul 4 12:25:31 2021 +0900
boards: cxd56xx: Fix crashdump compile error in SMP
In CONFIG_SMP=y, use arm_intstack_top() instead of g_intstacktop
to get the base address of interrupt stack.
---
boards/arm/cxd56xx/common/src/cxd56_crashdump.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/boards/arm/cxd56xx/common/src/cxd56_crashdump.c b/boards/arm/cxd56xx/common/src/cxd56_crashdump.c
index 57dee9e..0278b09 100644
--- a/boards/arm/cxd56xx/common/src/cxd56_crashdump.c
+++ b/boards/arm/cxd56xx/common/src/cxd56_crashdump.c
@@ -189,7 +189,11 @@ void board_crashdump(uintptr_t currentsp, FAR void *tcb,
#if CONFIG_ARCH_INTERRUPTSTACK > 3
/* Get the limits on the interrupt stack memory */
+#ifdef CONFIG_SMP
+ pdump->info.stacks.interrupt.top = (uint32_t)arm_intstack_top();
+#else
pdump->info.stacks.interrupt.top = (uint32_t)&g_intstacktop;
+#endif
pdump->info.stacks.interrupt.size = (CONFIG_ARCH_INTERRUPTSTACK & ~3);
/* If In interrupt Context save the interrupt stack data centered
[incubator-nuttx] 02/04: boards: cxd56xx: Fix some printf format
warnings
Posted by xi...@apache.org.
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 6f78544fd9cde6a3fa6c6625acf435ed5e73ef31
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Sun Jul 4 12:28:07 2021 +0900
boards: cxd56xx: Fix some printf format warnings
Fix some warnings by -Wformat.
---
boards/arm/cxd56xx/spresense/src/cxd56_pwm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/boards/arm/cxd56xx/spresense/src/cxd56_pwm.c b/boards/arm/cxd56xx/spresense/src/cxd56_pwm.c
index d211c62..ebcf01a 100644
--- a/boards/arm/cxd56xx/spresense/src/cxd56_pwm.c
+++ b/boards/arm/cxd56xx/spresense/src/cxd56_pwm.c
@@ -60,13 +60,13 @@ static int pwm_initialize(uint32_t channel)
pwm = cxd56_pwminitialize(channel);
if (!pwm)
{
- pwmerr("Failed to get the CXD56 PWM%d lower half\n", channel);
+ pwmerr("Failed to get the CXD56 PWM%ld lower half\n", channel);
return -ENODEV;
}
/* Register the PWM driver at "/dev/pwmX" */
- snprintf(devname, sizeof(devname), "/dev/pwm%d", channel);
+ snprintf(devname, sizeof(devname), "/dev/pwm%ld", channel);
ret = pwm_register(devname, pwm);
if (ret < 0)
{
[incubator-nuttx] 04/04: boards: cxd56xx: Fix warning of cxd56
audio driver
Posted by xi...@apache.org.
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 12fb49d0a371aa73929ecc833c969eecbc545dd8
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Sun Jul 4 12:42:32 2021 +0900
boards: cxd56xx: Fix warning of cxd56 audio driver
Only when CONFIG_AUDIO_CXD56 is enabled, board_audio_initialize_driver
function is available.
---
boards/arm/cxd56xx/common/src/cxd56_audio.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/boards/arm/cxd56xx/common/src/cxd56_audio.c b/boards/arm/cxd56xx/common/src/cxd56_audio.c
index 692fa16..023b8c0 100644
--- a/boards/arm/cxd56xx/common/src/cxd56_audio.c
+++ b/boards/arm/cxd56xx/common/src/cxd56_audio.c
@@ -453,6 +453,7 @@ void board_audio_finalize(void)
board_audio_i2s_disable();
}
+#ifdef CONFIG_AUDIO_CXD56
/****************************************************************************
* Name: board_audio_initialize_driver
*
@@ -530,3 +531,4 @@ int board_audio_initialize_driver(int minor)
return ret;
}
+#endif /* CONFIG_AUDIO_CXD56 */
[incubator-nuttx] 03/04: boards: cxd56xx: Fix bmp280 compile error
Posted by xi...@apache.org.
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 adc72de2eef75f54a460326bfb405aa1ea77f602
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Sun Jul 4 12:42:12 2021 +0900
boards: cxd56xx: Fix bmp280 compile error
Fix compile error caused by bmp280.h being updated.
---
boards/arm/cxd56xx/drivers/sensors/bmp280_scu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/boards/arm/cxd56xx/drivers/sensors/bmp280_scu.c b/boards/arm/cxd56xx/drivers/sensors/bmp280_scu.c
index 9094baa..ceb272b 100644
--- a/boards/arm/cxd56xx/drivers/sensors/bmp280_scu.c
+++ b/boards/arm/cxd56xx/drivers/sensors/bmp280_scu.c
@@ -465,7 +465,7 @@ static int bmp280_initialize(FAR struct bmp280_dev_s *priv)
{
int ret;
- ret = bmp280_set_standby(priv, BMP280_STANDBY_1_MS);
+ ret = bmp280_set_standby(priv, BMP280_STANDBY_05_MS);
if (ret != OK)
{