Gregory Nutt
c999d12bba
net/utils: net_lock() and net_restorelock() not return a value. That values is the standard zero on success; negated errno value on failure. This return value is only needed for -ECANCELED. That cancellation indication needs to ripple all the way back to the highest levels where the cancellation can be acted on. This commit only adds the return value; it does not add checking for the return values of net_lock() and net_restorelock() at higher levels. That is required too.
2019-04-14 09:37:25 -06:00
Gregory Nutt
4179b8416f
graphics/: Clean up some C and Kconfig comments. Remove Kconfig dependency on EXPERIMENTAL.
2019-04-13 16:54:55 -06:00
Gregory Nutt
23727e59aa
Fix two malformed pre-preprocessor conditionals.
2019-04-13 15:42:46 -06:00
Valmantas Paliksa
ca5d940b7a
drivers/can/mcp2515.c: mcp2515 driver optimizations.
2019-04-12 11:37:08 -06:00
Valmantas Paliksa
7d112f5639
drivers/can/can.c: Support multiple readers of the same port
2019-04-12 11:13:42 -06:00
Gregory Nutt
13c6254f1b
Documentation/NXGraphicsSubsystem.html: Update documentation to describe block, synchronization, and cursor interfaces.
2019-04-11 16:20:22 -06:00
Matias N
6e80562bf9
include/nuttx/usb/hid.h: The usbhid_descriptor_s struct defined in hid.h included some optional fields that should not be hard-defined as part of that structure. An arbitrray number of optional entries could be included in the descriptor, but that is not properly represneted. No code on NuttX currently depends on the structure definition with an optional descriptor so it is safe to remove.
2019-04-10 17:16:12 -06:00
Gregory Nutt
ad76ca674b
graphics/nxbe: Some bugfix found early in cursor testing.
2019-04-10 12:31:43 -06:00
Gregory Nutt
d3bf5c7408
include/nuttx/nx/nxcursor.h: Nees to include nx.h.
2019-04-10 08:51:22 -06:00
Gregory Nutt
cbb09c55ec
graphics/nxbe and nxmu: This bring the software cursor to code complete. Still untested. Some flicker is expected. It has not been determined if that level of flicker is acceptable or not.
2019-04-09 15:09:10 -06:00
Gregory Nutt
4aadcc8c28
Adds support for cursors with differing pixel depths on multiple displays
...
Squashed commit of the following:
Update .gitignore
Fix some compile-related issues.
Add support for cursors of differing pixeldepth.
Various compile-related fixes.
graphics/nxglib: Separate cursor rendering routines in nxglib/ (like all other rendering logic). graphics/nxbe: Flesh out remaining cursor methods.
2019-04-09 11:33:59 -06:00
Gregory Nutt
0a6bb6e614
grahics/nxglib/nxglib.h: Move internal function prototypes from include/nuttx/nx/nxglib.h to graphics/nxglib/nxglib.h.
2019-04-08 17:14:41 -06:00
Gregory Nutt
2c2729521b
Abandon attempt to get common data structures for NX and the raw framebuffer cursor interface. This backs out several changes.
2019-04-07 18:00:40 -06:00
Gregory Nutt
e5c56aaab6
graphics: A little more progress with software cursors.
2019-04-07 16:04:21 -06:00
Gregory Nutt
79b83f0c05
graphics: Extend the definition of the cursor image structure.
2019-04-07 13:25:20 -06:00
Gregory Nutt
42e2c9139c
Squashed commit of the following:
...
libs/libnx/nxme: Add front-end, client, message handling needed for cursor support. Still actual cursor logic yet, just message handling.
graphics/nxmu and graphics/nxbe: Add back-end message handling needed for cursor support. No actual cursor logic yet, just message handling.
2019-04-06 14:34:56 -06:00
Gregory Nutt
04b723e447
Squashed commit of the following:
...
include/nuttx/nx/nxcursor.h: Add a header file descrbing the implementation of an NX cursor interface. There is no implementation in place yet.
include/nuttx/video/cursor.h: Separate out cursor definitions from fb.h. Other graphic interfaces other than a framebuffer may support a cursor, possible a software cursor.
2019-04-06 12:18:05 -06:00
raiden00pl
a234b909bc
Merged in raiden00/nuttx_l0f0 (pull request #848 )
...
Fixes for MFRC522
drivers/contactless/mfrc522.c: in mfrc522_read uid.sak must be different from 0x04 not as before from 0x00. SAK == 0x00 is a valid PICC type
drivers/contactless/mfrc522.c: add interface to read MIFARE Ultralight data
configs/nucleo-l073rz: add mfrc522 support
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-04-05 15:49:45 +00:00
Gregory Nutt
0b3375cb78
graphics/, lib/libnx, include/nutt/nx: Add support for modal windows.
2019-04-05 08:24:46 -06:00
Gregory Nutt
cc5c59b8a6
syscall/syscall.csv: Correct an error in creating the munmap() proxy if CONFIG_FS_RAMMAP is not defined.
2019-04-04 20:37:32 -06:00
oao Matos
24f5cde922
include/signal.h: Add commented out definition of the si_addr field.
2019-04-04 11:22:52 -06:00
Joao Matos
03db654393
include/alloca.h: Add alloca.h. Included limited implmentation of alloc() that is only available for GCC versions 3 and above.
2019-04-04 11:04:08 -06:00
Joao Matos
7df60a2c16
include/sys/syscall.h and syscall/: Added support for munmap() syscall.
2019-04-04 10:54:46 -06:00
Joao Matos
604f699711
Fixed R_OK/X_OK definitions to match POSIX.
2019-04-04 10:35:50 -06:00
Joao Matos
8f5a94c5e5
include/pthread.h and libs/libcpthread: Fixed pthread_attr_get/setstacksize param type to size_t.
2019-04-04 10:33:57 -06:00
Joao Matos
08ff68edec
sched/pthread: Added non-standard pthread_get_stackaddr_np() and pthread_get_stacksize_np().
2019-04-04 10:30:46 -06:00
Gregory Nutt
94c691edc9
configs/boardctl.c, include/sys/boardctl.h: Add a command to start the VNC server.
2019-04-02 06:32:55 -06:00
Gregory Nutt
8ed0d21b73
tools/tesbuild.sh: Correct help test.
2019-03-28 12:12:15 -06:00
Xiang Xiao
acca831c11
include/sys/select.h: Fix compiler error when CONFIG_NSOCKET_DESCRIPTORS is undefined.
2019-03-26 09:20:23 -06:00
Xiang Xiao
12b92c366b
include/limits.h: Remove the duplicate TMP_MAX definitions. The standard require TMP_MAX define in stdio.h.
2019-03-26 09:18:14 -06:00
Gregory Nutt
10388e9123
exmamples/, graphics/NxWidgets: Implement new interfaces nx_synch() and nxtk_synch(). This are used to syncrhonize the NX server with the window client. Currently most of the logic is equivalent to nx_block() and nxtk_block(), but with slightly different semantics. The are separate now because they are likely to diverge in the future.
2019-03-25 13:48:27 -06:00
Gregory Nutt
f5e8dc60f4
graphics/nxmu, include/nuttx/nx/nxmu.h, libs/libnx: Add new server->client callback to notify the window client of server events. Remove the old 'blocked' callback and just make it one case of an 'event' callback.
2019-03-25 13:00:13 -06:00
Gregory Nutt
3e6c196ffa
arch/ and config/ files: All board interfaces (those starting with board_) must be defined in board-specific logic. Otherwise, they cannot be customized of specialized usage by different boards. The board_reset() interface was defined in architecture-specific logic that only called up_systemreset(). That is useless!
...
This change removes the board_reset() implementation from the architecture-specific code and re-implements in the src/ directory of each board that has CONFIG_BOARDCTL_RESET enabled. That is the correct functional partitioning.
2019-03-25 11:12:38 -06:00
Bill Gatliff
38f2346bdb
drivers/video/max7456.c: Support for the Maxim MAX7456 on-screen-display chip.
2019-03-24 06:49:34 -06:00
Gregory Nutt
842d3dc4e5
Rename sched_alarm_expiration to nxsched_alarm_expiration. That is the appropriate name for an internal sched/ function (still many named incorrectly).
2019-03-20 19:34:23 -06:00
Gregory Nutt
9acb652e29
Rename sched_timer_expiration to nxsched_timer_expiration. That is the appropriate name for an internal sched/ function (still many named incorrectly).
2019-03-20 19:31:43 -06:00
Gregory Nutt
b290160b3b
Rename sched_process_timer to nxsched_process_timer. That is the appropriate name for an internal sched/ function (still many named incorrectly).
2019-03-20 19:27:40 -06:00
Gregory Nutt
f6ac82e246
Backs out part of commit d7a602e9b2
. When CONFIG_SCHED_CPULOAD_EXTCLK is defined, the prototype must still be available in nuttx/arch.h
2019-03-20 19:17:30 -06:00
Valmantas Paliksa
d7a602e9b2
sched/sched and include/nuttx/arch.h: Rename sched_process_cpuload to nxsched_process_cpuload. All internal sched_ functions should be prefixed with nx. Remove duplicate prototype from nuttx/arch.h.
2019-03-20 08:01:27 -06:00
Xiang Xiao
64252a298f
arch/: Unify the cache interface for all architectures
2019-03-19 10:37:13 -06:00
Xiang Xiao
13782f3357
include/nuttx/userspace.h: Add add a new field (us_heapend) to struct userspace_s that labels the end of the heap.
2019-03-19 10:20:43 -06:00
Xiang Xiao
11e7c53f61
include/nuttx/compiler.h: Assume inline support if __STDC_VERSION__ not defined.
2019-03-19 10:07:52 -06:00
Xiang Xiao
e26fa54252
libs/libc/netdb: Support the nameserver change notification then we can pass dns info from server to client in usrsock case.
2019-03-19 10:02:10 -06:00
Xiang Xiao
756c9f4eac
libs/libc/string/lib_strsep.c: Add strsep BSD/Linux function.
2019-03-19 08:25:29 -06:00
Gregory Nutt
10b73fde9d
graphics/: Correct logic for copy of bit maps with resolution less than 8 bits from the per-window framebuffer to the device.
2019-03-18 09:45:09 -06:00
Gregory Nutt
4d4ae87cb7
libs/libnx/nxtk/nxtk_setsize.c: Add logic to redraw NXTK borders for the case of per-window framebuffers. There are no redraw callbacks in this case, so we cannot rely on the callbacks to redraw the borders.
2019-03-17 14:37:57 -06:00
Gregory Nutt
42628d2209
include/fixedmath.h: Add macros for conversion between types b16_t and type double
2019-03-16 13:04:03 -06:00
Gregory Nutt
ae8e0359b9
include/nuttx/nx/nxglib.h: Eliminate some warnings.
2019-03-15 15:52:31 -06:00
Gregory Nutt
9a97eb0fcf
This commit brings the per-framebuffer logic to code-complete. Still untested.
...
Squashed commit of the following:
Update TODO list
graphics/nxbe: The moverectangle renderer now supports updates to the per-window framebuffer (unclipped) as well as the graphics device memory (clipped).
graphics/nxbe: The filltrapezond renderer now supports updates to the per-window framebuffer (unclipped) as well as the graphics device memory (clipped).
graphics/nxbe: The getrectangle method now returns data from the per-window framebuffer if available.
graphics/nxbe: The fillrectangle renderer now supports updates to the per-window framebuffer (unclipped) as well as the graphics device memory (clipped).
graphics/nxmu: If a window supports a per-window framebuffer, then redraw callbacks are suppressed and the device content is updated from the shadow, per-window framebuffer. graphics/nxbe: The copyrectangle renderer now supports updates to the per-window framebuffer (unclipped) as well as the graphics device memory (clipped).
graphics/nxbe/nxbe_setsize.c: Reallocate the per-window framebuffer when the window size changes.
2019-03-15 12:15:33 -06:00
Gregory Nutt
f2d90e6298
graphics: For consistency, rename fields fb->fbmem as in other structures.
2019-03-14 12:19:01 -06:00