Gregory Nutt
8c11a73d33
net/tcp: Same change to tcp_send_buffered.c probably also applies to tcp_sendfile.c.
2017-10-19 16:31:28 -06:00
Gregory Nutt
7d62a74915
Fix an error introduced in last commit.
2017-10-19 16:26:09 -06:00
Gregory Nutt
5a416be95b
net/tcp: Same change to tcp_send_buffered.c probably also applies to tcp_send_unbuffered.c.
2017-10-19 16:14:38 -06:00
Mateusz Szafoni
09f3e9ce5c
Merged in raiden00/nuttx (pull request #513 )
...
Master
* stm32f33xxx_adc.c: fix some warnings and compilation error when extsel not in use
* nucleo-f334r8/adc: change serial console to USART2 (STLINK COM)
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-10-19 20:07:04 +00:00
Gregory Nutt
cf5cba953d
There was a possible recursion that could eventually overflow the stack. The error occurred when closing the socket with inet_close() while a socket callback was still queued. When the socket callback was executed by devif_conn_event(), this resulted in a call to psock_send_eventhandler() with TCP_CLOSE flag set which then called tcp_lost_connection(). tcp_shutdown_monitor() then called tcp_callback() again, which again called psock_send_eventhandler(), and so on.... Noted by Pascal Speck. Solution is also similar to a solution proposed by Pascal Speck.
2017-10-19 11:55:51 -06:00
Gregory Nutt
bc40403516
There was a reference counting problem in the TPC logic of net_clone(). net_clone() which is the common logic underlying dup() and dup2() for sockets. When net_clone() calls net_start_monitor() and net_start_monitor() returns a failure (because the underlying TCP connection) then net_clone() must back out the reference count on the structure. Problem noted by Pascal Speck and this implementation of the solution is based on his suggestion.
2017-10-19 11:09:23 -06:00
Jussi Kivilinna
5ef548677a
drivrs/mtd/filemtd.c: add block device MTD interface. Block MTD interface allows using block device directly as MTD instead of having to use file-system in between. NOTE that this provides the opposite capability of FTL which will let you use an MTD interface directly as a block device.
2017-10-19 09:53:41 -06:00
Alan Carvalho de Assis
0ef127e273
libc/match: Use of exp() vs expf() in logf() caused function to be slow.
2017-10-19 09:14:34 -06:00
Sebastien Lorquet
1182702b80
drivers/ioexpander: The IRQ subsystem now supports passing a void * parameter to IRQ handlers. Use that method to support multiple pc9555 devices, by passing a pointer to the device to the board defined irq handler. Now the CONFIG_ for multiple PCA devices just allocates device structures dynamically instead of statically when not enabled.
...
The same interrupt handler is entered with the device structure parameter in all situations,
multiple or single PCA. One should still be careful if multiple PCA devices share the same IRQ.
2017-10-19 08:10:40 -06:00
Mattias Edlund
ee1330ed5e
The timer frequencies (BOARD_TIMx_FREQUENCY) are incorrectly defined in configs/stm3240g-eval/include/board.h. Since the APB prescalers are set to divide by 4 and 2 respectively, the frequencies should be "2xAPBx" as said in the comment. The correct frequencies are already defined but as STM32_APBx_TIMx_CLKIN.
2017-10-19 07:00:55 -06:00
Gregory Nutt
ffca71b9bf
Alexey T, Bitbuck Issue 73:
...
Lower part of STM32 CAN driver arch/arm/src/stm32/stm32_can.c uses all three hw tx mailboxes and clears TXFP bit in the CAN_MCR register (it means transmission order is defined by identifier and mailbox number).
This creates situation when order frames are put in upper part of CAN driver (via can_write) and order frames are sent on bus can be different (and I experience this in wild).
Since CAN driver API pretends to be "file like" I expect data to be read from fd the same order it is written. So I consider described behaviour to be a bug.
I propose either to set TXFP bit in the CAN_MCR register (FIFO transmit order) or to use only one mailbox.
2017-10-19 06:34:54 -06:00
Gregory Nutt
9b5f56ba5b
BCM2708: The PiZero configuration now compiles and links cleanly. Still a few thngs missing internally.
2017-10-18 14:07:52 -06:00
Gregory Nutt
e18e8573d1
BCM2708: Allow pass parameters with AUX interrupts; Add mini-UART break capability.
2017-10-18 13:57:54 -06:00
Gregory Nutt
bcff0543f9
BCM2708: Add a little more Mini-UART logic. Still missing UART configuration logic.
2017-10-18 13:44:32 -06:00
Gregory Nutt
6235e72ce0
BCM2708: Add a little more Mini-UART logic. Still missing UART configuration logic.
2017-10-18 12:50:56 -06:00
Anthony Merlino
433b997bc6
Merged in antmerlino/nuttx/photon-spi (pull request #512 )
...
photon: Support SPI1 and SPI3
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-10-18 18:22:29 +00:00
Anthony Merlino
e9fa96258b
net/: Fix some build issues noted when both IPv4 and IPv6 are enabled.
2017-10-18 11:08:56 -06:00
Gregory Nutt
d29cb09da3
drivers/usbdev: Move test for NULL pointer before the pointer is deferences. Noted by Juha Niskanen.
2017-10-18 11:06:14 -06:00
Gregory Nutt
cc09e77a94
fs/vfs: Fix after recent changes. write() was return negative values in errno. Noted by Jussi Kivilinna.
2017-10-18 10:17:55 -06:00
Gregory Nutt
25079a9c93
BCM2708: Fleshes out GPIO interrupt logic.
2017-10-18 10:13:10 -06:00
Gregory Nutt
63b93a9fba
BCM2708: Add framework for a Mini-UART driver (incomplete)
2017-10-18 09:17:08 -06:00
Gregory Nutt
3316103efd
BCM2708: Add hooks to support both Mini- and PL011 UARTs.
2017-10-18 08:09:24 -06:00
Gregory Nutt
8dd1bb03b2
drivers/usbdev: Add a debug assertion to CDC/ACM driver.
2017-10-18 07:10:34 -06:00
Gregory Nutt
85a1a3cc98
drivers/usbdev: Correct input flow control logic when watermarks are not enabled. Problem not by and change based on suggestion by Juha Niskanen.
2017-10-18 06:49:11 -06:00
Gregory Nutt
477a8d1aa7
BCM2708: Add support for AUX interrupts.
2017-10-17 17:08:54 -06:00
Gregory Nutt
d160ae8a32
BCM2708: Add some build configuration and support logic for low-level serial otput (unfinished)
2017-10-17 16:26:52 -06:00
Gregory Nutt
851fa7ba85
BCM2708: Fixes off system timer logic for the Pi Zero.
2017-10-17 14:53:11 -06:00
Gregory Nutt
ea23268f34
BCM2708: Add system timer register definitions and a partial implementation of the tickless mode timer.
2017-10-17 13:54:54 -06:00
Juha Niskanen
d101fad026
Merged in juniskane/nuttx_stm32l4/stm32_rtc_small_patches_pr (pull request #511 )
...
Stm32 rtc small patches
* RTC: canceling an alarm marks it as inactive
* STM32L4, STM32F4, STM32F7 RTC: fix reading alarm value that is more than 24h in future
* STM32F0 RTC: fix backup register count in stm32_rtcc.h
All other STM32: SHIFTR_SUBFS_MASK was correct in STM32F0 only
* STM32L1: use correct EXTI line definitions
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-10-17 16:45:48 +00:00
Gregory Nutt
3750da237c
BCM2708: Flesh out some GPIO logic.
2017-10-17 10:33:48 -06:00
Gregory Nutt
c810a77cca
Add skeleton GPIO C files; Add pinmap file.
2017-10-17 08:58:03 -06:00
Gregory Nutt
0fc8978a90
Pi Zero: Add GPIO module header file.
2017-10-17 07:37:44 -06:00
Gregory Nutt
34a572b226
Update last commit... Check should really use the definition MMSIZE_MAX which is really the same thing, but guaranteed to be the correct maximum size in any present and future configuration.
2017-10-17 07:34:06 -06:00
EunBong Song
196911d4fa
If size is greater than (UINT32_MAX - SIZEOF_MM_ALLOCNODE), malloc size can be overflow by MM_ALIGN_UP macro. For example, if task_create() called with stack_size == -1, up_create_stack() functions allocates SIZEOF_MM_ALLOCNODE bytes for stack.
...
This can cause data abort in up_stack_color() function.
2017-10-17 06:37:09 -06:00
Gregory Nutt
5d6ecfa3ca
Update a document, a README, and some comments.
2017-10-17 06:25:46 -06:00
Gregory Nutt
5b385f4d4d
kthread_create(): Rename kernel_thread() to kthread_create() for better naming consistency with task_create() and kthread_delete().
2017-10-16 11:38:00 -06:00
Gregory Nutt
b1a41b7620
task_delete(): Do not permit user applications to delete kernel threads.
2017-10-16 09:07:27 -06:00
Gregory Nutt
c8eb0a4880
configs/sim: Convert the traveler configuration so that it uses the framebuffer driver.
2017-10-16 07:39:16 -06:00
Gregory Nutt
413cfdfa75
Update some README files.
2017-10-15 16:15:05 -06:00
Gregory Nutt
2f714bda8b
Fix the last commit... that was not the right way to eliminate the warning.
2017-10-15 14:10:16 -06:00
Gregory Nutt
5df894ee44
Eliminate a warning.
2017-10-15 14:04:39 -06:00
Gregory Nutt
c8dad11bf0
Update some configurations
2017-10-15 13:55:36 -06:00
Gregory Nutt
a98f188f04
configs: Fix some configuration proglems found in build testing.
2017-10-15 13:49:19 -06:00
Gregory Nutt
692d4b3dc6
configs/sim: Update touchscreen driver initialization to use only multiple-user NX server logic.
2017-10-15 12:40:01 -06:00
Mateusz Szafoni
61293cfc4c
Merged in raiden00/nuttx (pull request #510 )
...
Initial ADC support for the STM32F33XX
* stm32_adc.h: add JEXTSEL definitions and hrtim trigger configuration
* stm32_adc.c: move STM32F33 ADC logic to a separate file
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-10-15 16:29:05 +00:00
Gregory Nutt
566ad9e5f9
Update TODO list
2017-10-15 09:50:31 -06:00
Gregory Nutt
b75952c479
This removes the last traces of single-user mode.
2017-10-15 09:34:08 -06:00
Gregory Nutt
4b56c0cc0c
boardctl(): Remove the BOARDIOC_GRAPHICS_SETUP command.
2017-10-15 07:56:04 -06:00
Gregory Nutt
8919c485c4
Fix a recently introduced copy-paste error
2017-10-14 18:10:30 -06:00
Gregory Nutt
9d21ecbd2d
All configurations that use NXLINES must select NX_MULTIUSER
2017-10-14 16:52:59 -06:00