Gregory Nutt
c6adc4ba8e
sched/pthread/pthread_initialize.c: Fix a warning found in build testing (that is actually and bug and would cause an incorrect value to be returned in many cases.
2018-08-05 16:23:07 -06:00
Gregory Nutt
9726352d7a
configs/olimex-stm32-p407/kmodule: Add a configuration that can be used for testing installation of kernel modules in the protected build. This configuration is useless in its present state, not due to any problem with the OS itself, but rather with the current apps/ build system. The symbol table is built by apps/examples/module/drivers/Makefile in user space. The problem with that is that the kernel module does reference internal kernel symbols which are not available in the user space build context. A mechanism is needed in the build system to build the symbol table in the context of the kernel. There is currently no way to do that.
2018-08-05 15:42:11 -06:00
Gregory Nutt
e79772f6d8
tools/showsize.sh needs to be executable.
2018-08-05 15:34:25 -06:00
Gregory Nutt
c2267a57a0
Kconfig files: Fix several errors noted by Alex Denisov in Bitbucket issue 115.
2018-08-05 10:48:02 -06:00
Gregory Nutt
b4b531ef1b
include/nuttx/binfmt/binfmt.h: Remove fields from struct binary_s that are not longer used after commit 20a86dfc1b
.
2018-08-05 08:50:43 -06:00
Gregory Nutt
4fa546c5d8
Refresh a configuration: Fix an assertion that was messed up in the previous commit.
2018-08-05 08:41:32 -06:00
Gregory Nutt
20a86dfc1b
binfmt/ and sched/group: Re-architect the way that loadable ELF or NXFLAT modules are unloaded. Memory resources must be recovered when the task loaded into memory exits. The originmal implementatino used the death-of-child SIGCHLD signal to perform the unload. There are several problems with this: It is overly complex, it requires that the parent task stay resident while the loaded task runs, and it has fatal logic flaws in the protected and kernel model builds because the user signal handler attempts to run in the kernel address space. This commit corrects with using a mindlessly simply BINFMT callback when the task exits.
2018-08-05 08:09:54 -06:00
Gregory Nutt
3e814eb160
Update a README file.
2018-08-04 16:39:10 -06:00
Gregory Nutt
d68b0c35f9
Squashed commit of the following:
...
configs/olimex-stm32-p407: Various changes as necessary to get the new kelf configuration working.
configs/olimex-stm32-p407: Add kernel ELF (kelf) configuration.
2018-08-04 16:18:51 -06:00
Gregory Nutt
5996d70883
Revise commit 09ccd43d61
: That change had the subtle side-effect of unconditionally enabling interrupts in the primask. That may be what we want in most cases, but certainly not all. This does increse the size of the inline function by about 48-bits per instantiation.
2018-08-04 07:37:31 -06:00
GregoryN
1185ff1fc6
Merged loadable_app into master
2018-08-03 21:37:08 -06:00
Gregory Nutt
679d2875f2
Update some comments.
2018-08-03 16:20:42 -06:00
Gregory Nutt
9b7e5ede0a
configs/metro-m4: Add an option to build the Metro M4 image to run out of SRAM. This ought to be a safer and quicker way to do the initial bring-up (having bricked the first Metro M4 due to a bad FLASH image).
2018-08-03 15:26:44 -06:00
Gregory Nutt
bbee0d70de
arch/arm/src/stm32f7: Fix an error introduced by the patch by Evgeniy Bobkov in Issue #114 . That patch brok all STM32 F7 builds.
2018-08-03 14:26:29 -06:00
Gregory Nutt
056d704cf9
This commit brings in a fragmentary, experimental implementation of NETLINK sockets. There is not too much to that socket support on this initial commit, just the netlink socketer framework. However, I decided to bring it into master because there is a enough that I would not want to lose what is in place. And since it is dependent on CONFIG_EXPERIMENATL, its presence on master should be innocuous.
...
Squashed commit of the following:
net/netlink: Mark netlink support as EXPERIMENTAL.
net/netlink/netlink_sockif.c: Add netlink_getpeername to the socket interface.
net: Add getpeeername() support for netlink sockets.
include/netpacket/netlink.h: Add a few more definitions and structures used at the NetLink interface. Still missing many.
net/netlink: Add basic framework for Netlink socket support.
include/: Add basic Netlink definitions.
2018-08-03 13:22:36 -06:00
Evgeniy Bobkov
caa7fa7327
This commit ports the stm32f20xxf40xx_flash.c driver to the STM32F7 platform and fixes some relevant problems in the header files.
2018-08-03 11:02:59 -06:00
Gregory Nutt
bfc8f9dfdb
arch/arm/src/imxrt/imxrt_enet.c: Fix a warning about imxrt_calcethcrc() being defined, but not used.
2018-08-03 10:53:37 -06:00
Daniel P. Carvalho
9574b0f29b
configs/nucleo-l432kc: Fix stm32_userleds and some comments. After change LD2 to LD3 in board.h stm32_userleds.c was broken.
2018-08-03 09:31:40 -06:00
Gregory Nutt
2fd4925965
Update some comments
2018-08-03 09:30:31 -06:00
Gregory Nutt
10069067c1
include/nuttx/i2c/i2c_master.h: Rename I2C_M_NORESTART to I2C_M_NOSTART since it may be used in other contexts than a repeated start. Add comments to clarilfy setup for repeated start.
2018-08-03 08:51:55 -06:00
Gregory Nutt
ee28cd9aeb
include/nuttx/i2c/i2c_master.h: Add a definition to distinguish a new START of messages from a repeated start. No lower-half I2C drivers actually implement this new flag bit, however. drivers/i2c/i2c_writeread.c: Use new repeated START definition where appopriated. Other: Some cosmetic changes, updates to README files, etc.
2018-08-03 07:43:57 -06:00
Masayuki Ishikawa
ac5b2ea049
Merged in masayuki2009/nuttx.nuttx/fix_tcp_statistics (pull request #703 )
...
net/tcp: Remove g_netstats.tcp.syndrop++ from tcp_data_event()
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: GregoryN <gnutt@nuttx.org>
2018-08-03 01:25:53 +00:00
Gregory Nutt
09ccd43d61
arch/arm/include/armv7-m, arch/arm/include/armv7-m, arch/arm/include/stm32f7: Add a configuration to enable workaround for r0p1 Errata 837070: Increasing priority usingwrite to BASEPRI does not take effect immediately.
...
This update is required to be serialized to the instruction stream meaning that after this update completes, it takes effect immediately and no exceptions of lower priority than the new boosted priority can pre-empt execution. Because of this erratum, the priority boosting does not take place immediately, allowing the instruction after the MSR to be interrupted by an exception of lower priority than the new boosted priority. This effect is only limited to the next instruction. Subsequent instructions are guaranteed to see the new boosted priority.
This was raised in Bitbucket issue 113 from Vadzim Dambrouski.
2018-08-02 16:51:58 -06:00
Gregory Nutt
f649db2405
Costmetic changes during review of MAX3421E logic.
2018-08-02 13:58:26 -06:00
Russ Webber
ee21bcfaa8
Merged in russkel/nuttx/russkel/adxl345-remove-comment-references-to-tou-1533231727620 (pull request #702 )
...
adxl345: remove comment references to touchscreens
Approved-by: GregoryN <gnutt@nuttx.org>
2018-08-02 17:59:59 +00:00
Daniel Pereira Carvalho
d755b07a06
drivers/analog: Add driver for digital to analog converted DAC7571.
...
configs/nucleo-l432kc: Add support for a connect DAC7571 converter.
2018-08-02 06:40:48 -06:00
Gregory Nutt
88100026fa
configs/metro-m4: Update README. I have bricked by board 8(
2018-08-02 06:40:48 -06:00
Gregory Nutt
1d70e7f4b0
Revert "drivers/input/ft5x06.c: Back out part of last PR. I think that is correct to detach the interrupt handler when the drivers is unlinked."
...
No... I was misled. The shutdown function is usually called when the
driver is unlinked. But not in this case. In this case, it is simply
called when the last reference is closed. And no, you don't want to
detach the interrupt handler in that case. My bad.
This reverts commit b79e6b9c9a
.
2018-08-01 17:41:07 -06:00
Gregory Nutt
b79e6b9c9a
drivers/input/ft5x06.c: Back out part of last PR. I think that is correct to detach the interrupt handler when the drivers is unlinked.
2018-08-01 17:38:48 -06:00
Marcin Wyrwas
18ca531b40
Merged in plwm/nuttx/stm32f746g-disco-touchscreen (pull request #701 )
...
stm32f746g-disco: touchscreen support
* fixed FT5x06 driver to correctly close (previously it unregistered interrupt handler during close)
* added LittlevGL demo for STM32F746G-DISCO
Approved-by: GregoryN <gnutt@nuttx.org>
2018-08-01 21:31:39 +00:00
Gregory Nutt
5dec4a6763
configs/metro-m4: Corrrect SERCOM3 pin configuration
2018-08-01 14:56:11 -06:00
Gregory Nutt
8876f9cdae
configs/metro-m4: Instructions for unlocking FLASH ... which may be lethal.
2018-08-01 14:10:34 -06:00
Gregory Nutt
221bbad682
drivers/usbhost/usbhost_max3421e.c: Fix unmatched SPI lock/unlock.
2018-07-31 12:55:19 -06:00
Gregory Nutt
d543937a19
max3421e: Update some comments and a README. Cosmetic only.
2018-07-31 11:39:41 -06:00
Gregory Nutt
d252c7947d
drivers/usbhost/usbhost_max3421e.c: Mutual exclusion semaphore must be re-entrant.
2018-07-30 17:31:40 -06:00
Gregory Nutt
8b2dc155a0
drivers/usbhost/usbhost_max3421e.c: Fix several errors found in early testing.
2018-07-30 16:56:19 -06:00
Gregory Nutt
89459594f6
Update a README
2018-07-30 15:36:34 -06:00
Gregory Nutt
b2c978dc83
This commit brings the SAMDL2 USB driver into the SAMD5E5 port.
...
Squashed commit of the following:
arch/arm/src/samd5e5/sam_usb.c: USB driver now compiles with some issues.
arch/arm/src/samd5e5/chip/sam_fuses.h: Add fuse definition header file.
arch/arm/src/samd5e5: Bring USB driver in from SAMD2L2.
2018-07-30 10:43:11 -06:00
Gregory Nutt
c3d0f65529
configs/metro-m4: Review clock settings and make some corrections to the board.h header file.
2018-07-30 08:01:45 -06:00
Simon Liedl
6fe770bb21
Merged in sliedl/nuttx (pull request #700 )
...
sched/mqueue/mq_notify.c: Fix - only part of struct copied to internal structure
As source adress the adress of the struct member sigev_value was used,
and it is not located the start of the struct.
This leads to invalid data being copied to internal structure.
Both source and destination should be of type struct sigevent* .
Approved-by: GregoryN <gnutt@nuttx.org>
2018-07-30 12:50:04 +00:00
Gregory Nutt
c14d97a921
ARMv7-M/ARMv6-M: Review last PR. Rename CONFIG_DEBUG_HARDFAULT to OHNFIG_DEBUG_HARDFAULT_ALERT for consistency.
2018-07-30 06:46:44 -06:00
Masayuki Ishikawa
382a829657
Merged in masayuki2009/nuttx.nuttx/hardfault_info (pull request #699 )
...
hardfault info
* arch/arm: Introduce CONFIG_DEBUG_HARDFAULT_INFO to Kconfig
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
* arch/arm/src/armv7-m: Introduce CONFIG_DEBUG_HARDFAULT_INFO to up_hardfault.c
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
* arch/arm/src/armv6-m: Introduce CONFIG_DEBUG_HARDFAULT_INFO to up_hardfault.c
Also, replace _alert() with hfalert()
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: GregoryN <gnutt@nuttx.org>
2018-07-30 12:32:55 +00:00
Gregory Nutt
54db2cadd2
arch/arm/src/samd5e5/sam_start.c: Fix a typo/error when debug features are enabled.
2018-07-29 17:14:51 -06:00
Gregory Nutt
a0fb3e11ac
configs/metro-m4: Fix some errors in nsh/defconfig.
2018-07-29 16:32:02 -06:00
Gregory Nutt
65e102ee6b
configs/metro-m4: Fix Metro M4 compile and link. This rippled back to more changes in arch/arm/src/samd5e5, like the sercom logic was not in the compile! Also a great opporunity to improve some naming.
2018-07-29 16:29:54 -06:00
Gregory Nutt
41666dafa8
drivers/usbhost/usbhost_max3421e.c: Fix an error in reading the pending interrupts. Aos fix a number of typos and update a README.
2018-07-29 15:06:44 -06:00
Gregory Nutt
754c8493ff
arch/arm/src/samd5e5: Leverage the SAMD2L2 DMA controller.
2018-07-29 11:31:26 -06:00
Gregory Nutt
a29223c156
arch/arm/src/samd5e5: Fix some compilation issues introduced with last commit.
2018-07-29 08:08:42 -06:00
Gregory Nutt
5e4c63ed58
arch/arm/src/samd5e5: Bring in untested SPI and I2C drivers from SAMD2L2.
2018-07-29 07:43:21 -06:00
Gregory Nutt
9a24e7b724
arch/arm/src/samd5e5/chip/sam_dmac.h: Add DMA register definitions.
2018-07-28 11:41:55 -06:00