Gregory Nutt
d40a473f72
Without lowsyslog() *llwarn() is not useful. Eliminate and replace with *warn().
2016-06-20 09:37:08 -06:00
Gregory Nutt
2b445ddccc
Remove lowsyslog(). The new syslog() includes all of the functionality of lowsyslog(). No longer any need for two interfaces.
2016-06-20 08:57:08 -06:00
Paul A. Patience
a96c7492ad
assert: Define static_assert
2016-06-20 10:29:41 -04:00
Gregory Nutt
f4c47636e7
SYSLOG: Debug output from the IDLE task should be forced like interrupt level output
2016-06-20 07:35:38 -06:00
Gregory Nutt
fa365e85f5
Update some cmoments
2016-06-20 06:11:22 -06:00
Gregory Nutt
7dd66a4620
Need to pass va_list as a reference to vsyslog. This is because va_list is a structure in some compilers and passing of structures in the NuttX sycalls does not work.
2016-06-19 14:50:00 -06:00
Gregory Nutt
5b2aa7bf99
Remove all traces of CONFIG_SYSLOG
2016-06-19 13:59:43 -06:00
Gregory Nutt
9434d3e945
There is now one-and-only-one copy of syslog_putc. It is in the SYSLOG channel logic and can redirect syslog output as needed. All former syslog_putc versions were renamed and the corresponding SYSLOG device initializaiton now calls syslog_channel()
2016-06-19 13:03:20 -06:00
Gregory Nutt
d82942cf3b
Merge remote-tracking branch 'origin/master' into syslog
2016-06-19 11:20:31 -06:00
Gregory Nutt
9f260ca193
Some renaming so that future features will fit in better; If the architecture provides its only system logging (via CONFIG_ARCH_SYSLOG), then syslog_initialize() is stubbed out
2016-06-19 11:16:12 -06:00
Gregory Nutt
19c6a82f8b
a few cosmetic changes
2016-06-19 09:52:34 -06:00
Gregory Nutt
f59196247c
Merge remote-tracking branch 'origin/master' into syslog
2016-06-19 09:47:13 -06:00
Gregory Nutt
0f18f3bd15
Move RAMLOG initialize from up_initialilize.c files to syslog_initialize(). up_initialize.c files now call syslog_initialize() unconditionally
2016-06-19 09:39:21 -06:00
Gregory Nutt
3bd953316f
Add a hook before the existing syslog_initialize() call; rename the old syslog_initialize() to syslog_dev_initialize().
2016-06-19 09:12:33 -06:00
Gregory Nutt
2ff6ff39c9
Merge remote-tracking branch 'origin/master' into syslog
2016-06-19 08:11:07 -06:00
Gregory Nutt
b66112347c
include/nuttx/syslog/syslog.h now needs to include stdarg.h
2016-06-19 08:08:43 -06:00
Gregory Nutt
668980b4fa
Merge remote-tracking branch 'origin/master' into syslog
2016-06-19 08:02:42 -06:00
Gregory Nutt
34f776dce9
Move the OS intensive part of vsyslog and vlowsyslog to drivers/syslog/vsyslog.c and vlowsyslog.c. Also move lib_syslogstrem to drivers/syslog/syslogstream.c
2016-06-19 07:56:24 -06:00
Gregory Nutt
39a3c9aaee
Merge remote-tracking branch 'origin/master' into syslog
2016-06-19 07:04:51 -06:00
Gregory Nutt
f5e5908a70
vsyslog is now a system call
2016-06-19 07:03:44 -06:00
Gregory Nutt
fedf00033c
Make default interupt buffer smaller
2016-06-19 07:03:10 -06:00
Gregory Nutt
ea9565e137
SYSLOG: Flesh out interrupt buffer logic
2016-06-18 14:54:25 -06:00
Gregory Nutt
c44a011394
Add some basic SYSLOG channel selection logic
2016-06-18 12:54:55 -06:00
Gregory Nutt
b39e53391d
Add underscore at beginning of alert() as well
2016-06-16 12:38:05 -06:00
Gregory Nutt
0c8c7fecf0
Add _ to the beginning of all debug macros to avoid name collisions
2016-06-16 12:33:32 -06:00
Gregory Nutt
6f08216621
Centralize definitions associated with CONFIG_DEBUG_SYSCALL
2016-06-16 08:12:38 -06:00
Gregory Nutt
7a9f1814a2
Centralize definitions associated with CONFIG_DEBUG_SDIO/MEMCARD
2016-06-16 07:50:54 -06:00
Gregory Nutt
b7f0fbc073
Centralize definitions associated with CONFIG_DEBUG_RTC
2016-06-16 07:39:23 -06:00
Gregory Nutt
37b9742189
Centralize definitions associated with CONFIG_DEBUG_TIMER
2016-06-16 07:16:25 -06:00
Gregory Nutt
6b517ed017
Centralize definitions associated with CONFIG_DEBUG_WATCHDOG
2016-06-16 06:28:04 -06:00
Gregory Nutt
03cbe671ad
Centralize definitions associated with CONFIG_DEBUG_PWM
2016-06-15 17:23:56 -06:00
Gregory Nutt
8ce929a915
Centralize definitions associated with CONFIG_DEBUG_I2S
2016-06-15 16:54:01 -06:00
Gregory Nutt
5c89b18af8
Centralize definitions associated with CONFIG_DEBUG_I2C
2016-06-15 16:30:12 -06:00
Gregory Nutt
63b1eb09e6
Centralize definitions associated with CONFIG_DEBUG_CAN
2016-06-15 15:45:27 -06:00
Gregory Nutt
2ddd57c674
Centralize definitions associated with CONFIG_DEBUG_LEDS
2016-06-15 14:12:19 -06:00
Gregory Nutt
24c51ec1ff
Centralize definitions associated with CONFIG_DEBUG_LCD
2016-06-15 11:40:33 -06:00
Gregory Nutt
ba03134bed
Centralize definitions associated with CONFIG_DEBUG_SPI
2016-06-15 10:41:13 -06:00
Gregory Nutt
a97d3ae707
Centralize definitions associated with CONFIG_DEBUG_GPIO
2016-06-15 09:20:23 -06:00
Gregory Nutt
c4e6f50eac
Centralize definitions associated with CONFIG_DEBUG_IRQ
2016-06-15 08:35:22 -06:00
Gregory Nutt
58a0fa8a1e
Trivial spacing changes from review of last PR
2016-06-14 16:41:10 -06:00
Gregory Nutt
0da02686e6
Merged in K-man23/nuttx/ncp5623c (pull request #57 )
...
Forgot to add the header file for the ncp5623c driver
2016-06-14 16:35:54 -06:00
Konstantin Berezenko
ec455a8f4c
Forgot to add the header file for the ncp5623c driver
2016-06-14 15:16:10 -07:00
Frank Benkert
573b1d415c
* SAMV7: SPI: SPI-Freq. 40MHz; VARSELECT; hw-features
...
This change adds the following improvements:
- Increase the allowed SPI-Frequency from 20 to 40 MHz.
- Correct and rename the "VARSELECT" option This option was included in the code as "CONFIG_SPI_VARSELECT" but nowhere defined in a Kconfig file. The patch renames it to "CONFIG_SAMV7_SPI_VARSELECT" and corrects the implementation according the datasheet of Atmel. In short, this option switches the processor from "fixed peripheral selection" (single device) to "variable peripheral selection" (multiple devices on the bus).
- Add a new Function to the interface to control the timing and delays of the chip according the ChipSelect lines. This function can control the delay between the assertion of the ChipSelect and the first bit, between the last bit and the de-assertion of the ChipSelect and between two ChipSelects. This is needed to tune the transfer according the specification of the connected devices.
- Add three "hw-features" for the SAMV7, which controls the behavior of the ChipSelect:
1. force CS inactive after transfer: this forces a (short) de-assertion of the CS after a transfer, even if more data is
available in time
2. force CS active after transfer: this forces the CS to stay active after a transfer, even if the chip runs out of data. Btw.: this is a prerequisit to make the LASTXFER bit working at all.
- escape LASTXFER: this suppresses the LASTXFER bit at the end of the next transfer. The "escape"-Flag is reset automatically.
2016-06-14 13:12:16 -06:00
Gregory Nutt
a98bc05f65
New debug macro: alert(). This is high priority, unconditional output and is used to simplify and stanardize crash error reporting.
2016-06-14 09:07:53 -06:00
Gregory Nutt
5073bf1de6
Update some comments
2016-06-13 07:02:45 -06:00
Gregory Nutt
f3ec664f63
Debug output level (error, warning, info) is now selectable on a per-subsystem, per-driver basis
2016-06-12 13:08:23 -06:00
Paul A. Patience
f995f3c7bf
assert: Simplify
2016-06-12 08:18:30 -04:00
Gregory Nutt
a1469a3e95
Add CONFIG_DEBUG_ERROR. Change names of *dbg() * *err()
2016-06-11 15:50:49 -06:00
Gregory Nutt
e99301d7c2
Rename *lldbg to *llerr
2016-06-11 14:55:27 -06:00
Gregory Nutt
86b79b33cf
Reserver the name 'err' for other purposes
2016-06-11 14:40:07 -06:00
Gregory Nutt
1cdc746726
Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES
2016-06-11 14:14:08 -06:00
Gregory Nutt
c211ce8be1
DEBUGASSERT() is not enabled with CONFIG_DEBUG_ASSERTIONS, not CONFIG_DEBUG
2016-06-11 12:49:21 -06:00
Gregory Nutt
a3bb764305
Add support for a warn() marco that will be between dbg() and info() in priority
2016-06-11 12:38:37 -06:00
Gregory Nutt
fc3540cffe
Replace all occurrences of vdbg with vinfo
2016-06-11 11:59:51 -06:00
Gregory Nutt
3a74a438d9
Rename CONFIG_DEBUG_VERBOSE to CONFIG_DEBUG_INFO
2016-06-11 11:50:18 -06:00
Gregory Nutt
9c4b604074
Button upper half driver: Add definitions needed for compilation with the poll() interface is not disabled.
2016-06-11 07:22:31 -06:00
Paul A. Patience
5cfffbfa62
crc64: fix error
2016-06-10 12:30:45 -04:00
Paul A. Patience
9587c551ad
libc/misc: add crc64
2016-06-10 11:03:50 -04:00
Gregory Nutt
03c44c3583
Merged in marten_svanfeldt/nuttx-public/for_upstream/is25 (pull request #44 )
...
Added driver of IS25xP SPI flash devices
2016-06-09 09:30:34 -06:00
Marten Svanfeldt
edeb2eed4e
Added driver of IS25xP SPI flash devices
...
Based on sst25xx driver
Signed-off-by: Marten Svanfeldt <marten@intuitiveaerial.com>
2016-06-09 05:13:06 +02:00
Gregory Nutt
d84dbbc455
Add a comment to assert.h
2016-06-08 09:59:11 -06:00
Paul A. Patience
79a157cc9d
assert: Check if NDEBUG is defined
2016-06-08 11:07:24 -04:00
Aleksandr Vyhovanec
c939bbe47a
include/signal.h: Change type of SIG_IGN and related defines to _sa_handler_t
2016-06-07 06:56:19 -06:00
Gregory Nutt
37dd4e52a1
boardctl.h needs to be include-able from C++ files
2016-06-05 12:14:34 -06:00
Gregory Nutt
a18dbfda6e
Remove drivers/mtd/flash_eraseall.c. It is not used in the OS and is just a dumb wrapper around the MDIOC_BULKERASE IOCTL call.
2016-06-02 10:44:13 -06:00
Gregory Nutt
50d640a102
Typo fix
2016-05-30 09:51:46 -06:00
Gregory Nutt
9b4cec9228
Replace confusing references to uIP with just 'the network'
2016-05-30 09:51:15 -06:00
Gregory Nutt
22044edd12
Merged in ziggurat29/nuttx/stm32l4_i2c_lcd_mjkdz_001 (pull request #35 )
...
correct bugs and add enhancements to pcf8574 lcd backpack driver
2016-05-29 14:02:39 -06:00
ziggurat29
4643fcdfd8
correct logic hazard in latch and load nybble; was transitioning control lines at the same time as enable, causing spurious behaviour on less-tolerant displays
...
improve timing parameters in init sequences for better display compatibility
correct (row,col) -> address calculation; affects 4-line displays
update comments in header and readme
2016-05-29 11:09:00 -05:00
Gregory Nutt
7d538d19bf
Costmetic changes to comments and style
2016-05-27 10:53:27 -06:00
Gregory Nutt
23f4f04448
Costmetic update to some comments
2016-05-27 07:50:06 -06:00
Pierre-noel Bouteville
55d704e3c2
ADC: In adc.h, exclude upper half fields if common upper half is not used (CONFIG_ADC not defined).
2016-05-27 07:16:30 -06:00
Pierre-noel Bouteville
41412d0ce9
* fix a bug in crc computation for ms583730
...
* implement POSIX read.
2016-05-27 07:05:20 -06:00
Gregory Nutt
b630d48175
Add bind method to the ADC lower-half interface
2016-05-26 11:32:26 -06:00
Gregory Nutt
001715d57b
FS: Add logic to detach a file structure from a file descriptor. This is for use only within the OS. It permits an open file or driver to be used across multiple threads.
2016-05-26 09:41:50 -06:00
Gregory Nutt
aa7a981674
Update some comments
2016-05-26 08:37:40 -06:00
Gregory Nutt
3603dc6218
1-wire: Initialization/uninitialization functions are not use MCU-independent up_ naming. Should use STM32-specific stm32_ naming. These are not globally accessible but only accessible from STM32 board logic.
2016-05-25 17:56:47 -06:00
Aleksandr Vyhovanec
9a2002a302
1-wire driver based on U[S]ART in single-wire, half-duplex mode.
2016-05-25 08:59:47 -06:00
Gregory Nutt
51504a032e
Oops... forgot to add PCF8574 LCD Backpack files before doing the commit.
2016-05-25 08:48:54 -06:00
Gregory Nutt
4b3e710af6
Add an argument to board_app_initialize()
2016-05-24 10:51:22 -06:00
Alexander Vasiljev
eb11e662db
Modifications to the crypto API needed for LPC43xx.
2016-05-23 08:05:02 -06:00
Gregory Nutt
8ace1e3be2
Remove all implementatinos of up_wdginitialize(). It is no longer used.
2016-05-18 19:48:42 -06:00
Gregory Nutt
32838fcc2c
enter/leave_critical_section: In SMP configuration, may attempt to access the task lists before they have been initialized
2016-05-18 09:17:01 -06:00
Gregory Nutt
a3f3cc12c0
Update some comments; Fix grammatic error in ChangeLog.
2016-05-13 17:36:08 -06:00
Gregory Nutt
faca2fb1e7
ARMv7-A/i.MX6: Add logic to handle allocation of CPU IDLE thread stacks more efficiently
2016-05-13 11:39:42 -06:00
Gregory Nutt
70782b0f14
ARMv7-A i.MX6: More SMP logic. Still untested.
2016-05-12 15:04:46 -06:00
Frank Benkert
9eeb8634fc
Improve the CAN error reporting by also report internal device driver errors.
2016-05-11 07:10:17 -06:00
Sebastien Lorquet
f4fa4799f7
Add a driver for SST26F spi/qspi flash devices (SPI mode only)
2016-05-10 11:09:15 -06:00
Gregory Nutt
b9c2b92b10
Add utilities to count the number of nodes in a queue
2016-04-23 13:25:46 -06:00
Gregory Nutt
0d57612d13
VNC: Need to handle connection closed events
2016-04-23 10:57:28 -06:00
Gregory Nutt
f3499b173a
VNC: Fix a memory clobblering bug
2016-04-23 10:21:49 -06:00
Gregory Nutt
8c1534e3ed
VNC: Finish initializing the VNC server once we have the NX handle
2016-04-22 13:39:35 -06:00
Gregory Nutt
47c2b3d4a7
VNC: Add default mouse/keyboard input handlers
2016-04-22 12:48:27 -06:00
Gregory Nutt
e2f17ce7e7
Trivial changes from review
2016-04-22 07:42:37 -06:00
David Sidrane
fd794111ad
Fixed const warning
2016-04-21 16:45:32 -10:00
Gregory Nutt
1e7b8b80ac
Add a mechanism to get remote keyboard and mouse inputs
2016-04-21 14:52:25 -06:00
Gregory Nutt
be1677ba25
VNC: Client may request pixel data in either big- or little- endian order
2016-04-21 12:18:35 -06:00
Gregory Nutt
eb8c7f1641
VNC: Correct pixel width in RRE encoding
2016-04-21 08:16:33 -06:00
Gregory Nutt
f8604d11a9
VNC: Add some very basic RRE encodings
2016-04-20 17:01:48 -06:00
Gregory Nutt
363169339b
VNC: Fix error in message header size calculation; Add logic to try copy with pixel format changes.
2016-04-20 13:10:09 -06:00
Gregory Nutt
e0509b4256
VNC: Minor naming changes to avoid collisions
2016-04-19 13:48:17 -06:00
Gregory Nutt
26266ed935
VNC: Fix a structure size macro in the RFB definitions
2016-04-19 10:18:56 -06:00
Gregory Nutt
170f906a8b
VNC: Add support for RGB8 conversions. These are what are used by RealVNC.
2016-04-19 10:10:59 -06:00
Gregory Nutt
fc809d5df0
VNC: Fix some big-endian access macros
2016-04-19 09:11:14 -06:00
Gregory Nutt
f35de73e69
RFB: Various fixes to header file
2016-04-17 16:49:47 -06:00
Gregory Nutt
e8f0965d35
Mostly cosmetic changes from review of last PR
2016-04-17 14:13:44 -06:00
Gregory Nutt
329acb075f
Merged in ziggurat29/nuttx/stm32l4_qspi_001 (pull request #1 )
...
add MTD support for Micron N25Qxxx family of QSPI flash
2016-04-17 14:00:19 -06:00
Gregory Nutt
6ce656f9f5
RFB: Fix size of length field in the Client/ServerCutText message
2016-04-17 13:37:52 -06:00
Gregory Nutt
52b308cbe1
NX: Add configurable callout to external logic to handle display update events
2016-04-17 11:57:43 -06:00
ziggurat29
1b9d837df3
add MTD support for Micron N25Qxxx family of QSPI flash
2016-04-17 12:20:07 -05:00
Gregory Nutt
aa64214877
FB: Add a display number to the framebuffer planeinfo structure
2016-04-17 10:08:27 -06:00
Gregory Nutt
c84b9d1110
RFB: Fix some errors in header file
2016-04-16 15:59:59 -06:00
Gregory Nutt
bba3b13470
RFB: Add macros to access big-endian values
2016-04-16 13:18:04 -06:00
Gregory Nutt
20e31640aa
Finishes remote frame buffer header file
2016-04-16 12:33:08 -06:00
Gregory Nutt
276388a65d
RFB: Initial, incomplete of VNC remote framebuffer definitions
2016-04-16 09:03:01 -06:00
Alan Carvalho de Assis
7f5339ee5a
drivers/sensors/h1750fvi.c: Add a character driver for Rohm Ambient Light Sensor BH1750FVI.
2016-04-15 08:16:16 -06:00
Gregory Nutt
aa34429222
ASCII: Improve some naming
2016-04-14 16:20:36 -06:00
Gregory Nutt
46846c0c24
Framebuffer driver: Add a display number to each interface in order to support multiple displays
2016-04-14 12:23:15 -06:00
Gregory Nutt
39a37d6aa8
Separate out psock_listen() and psock_accept() for internal use by the OS
2016-04-14 08:39:48 -06:00
Gregory Nutt
81fe96e69a
Fix trivial spacing problem in X11 keycode header file
2016-04-12 16:16:44 -06:00
Gregory Nutt
48b00cd873
Add X11 keypad encodings. These are used by other things other than X11.. like VNC.
2016-04-12 15:48:49 -06:00
Gregory Nutt
3fba968bb0
Fix an error when a task with open message queue descriptors is killed via task_delete(). Noted by Anton Gropyanov.
2016-04-11 11:14:18 -06:00
Gregory Nutt
6653c5cbf3
Signals: Correct implementation of sigset(). It is not just signal() with a different name; it has some additional signal mask handling functionality
2016-04-11 09:04:54 -06:00
Gregory Nutt
947aa792db
Signals: Fix the macro that maps segset() to signal(). Parameters were not correct.
2016-04-10 16:41:50 -06:00
Gregory Nutt
28a4ca6713
libc/signal and include/signal.h: Rename sigset() to signal(). sigset() is the System V function; signal() is the obsoleted POSIX name. These seem to be equivalent. Neither are relevant in modern POSIX programming but the name signal() probably has better credentials. sigset() is now relegated to a #define in signal.h that makes it equivalent to signal().
2016-04-10 14:35:45 -06:00
Gregory Nutt
8eb7898a91
RTC driver: A PID of zero should mean to notify the calling task
2016-04-10 09:12:50 -06:00
Kha Vo
20acc13393
Networking: IAR compiler does not tolerate empty unions
2016-04-10 09:11:50 -06:00
Gregory Nutt
4fbd79d1a8
rtc.h: Needs to include signal.h and time.h to avoid compile errors in certain contexts
2016-04-03 13:35:01 -06:00
Gregory Nutt
1135ce804d
RTC: Extend interface by adding a method to set the alarm relative to the current time
2016-04-02 18:18:48 -06:00
Gregory Nutt
1767b21d3c
Update submodules
2016-04-02 17:42:00 -06:00
Gregory Nutt
0723226bda
RTC: Further simplications of the RTC driver interface; Add sample implem.
2016-04-02 13:55:58 -06:00
Gregory Nutt
58d6624f29
RTC: Simplify the RTC driver interface. Way too much stuff in that interface and it is not fully implemented anywhere.
2016-04-02 13:01:02 -06:00
Aleksandr Vyhovanec
3770b69572
Update compiler.h to support IAR compiler
2016-04-02 06:24:36 -06:00
Gregory Nutt
54dbec248e
PM: Add domain to all PM interfaces. Internal PM data structures now handle multiple PM domains.
2016-03-27 13:03:47 -06:00
Gregory Nutt
dea4fe5d90
PM: Add activity domain to all PM callbacks
2016-03-27 11:19:39 -06:00
Gregory Nutt
8b21db7fc7
Backout some experimental stuff that was including in the lst commit
2016-03-27 10:20:02 -06:00
Gregory Nutt
970822b351
Add missing PM configuratin options to Kconfig file
2016-03-27 10:18:20 -06:00
Gregory Nutt
cc5a678a9e
Extend boardctl() USB device control to include PL2303 serial
2016-03-25 16:01:59 -06:00
Gregory Nutt
3e4ae24387
Fix a few issues related to new USB device boardctl() commands
2016-03-25 14:23:27 -06:00
Gregory Nutt
9b9c374a83
Add basic definitions for control of USB devices via boardctl()
2016-03-25 10:52:39 -06:00
Gregory Nutt
4a962a36dd
Add library functions to concatenate and move lists. Add scheduler function to merge prioritized function to merge prioritized lists (not yet used).
2016-03-23 08:00:58 -06:00
Gregory Nutt
d20db82fcb
Scheduler instrumentation: Fix some associated with monitoring critical sections
2016-03-21 17:08:07 -06:00
Gregory Nutt
ccbf514233
Add task state to information recorded when a task is suspended
2016-03-21 15:24:15 -06:00
Gregory Nutt
f7b58e9dfd
sched/: Move location (and form) of context switch instrumentation.
2016-03-21 14:08:31 -06:00
Gregory Nutt
242f8ff25f
drivers/syslog/note_driver.c: Add a driver that will allow an application to read buffered scheduler instrumentation data
2016-03-17 14:46:00 -06:00
Gregory Nutt
7f19631338
sched/: Add option to buffer scheduler instrumentation data in memory.
2016-03-17 09:49:43 -06:00
Max Neklyudov
1951b9df57
Improve m25px driver
2016-03-17 07:37:45 -06:00
Gregory Nutt
0369facbd5
Fix some spacing
2016-03-16 11:01:19 -06:00
Gregory Nutt
e879d0f423
Move scheduler instrumentation hooks out of sched.h (where they seem like application interfaces) and into nuttx/sched.h where it is clare that these are OS internal interfaces.
2016-03-16 11:00:31 -06:00
Gregory Nutt
5675600946
Correct some comments
2016-03-13 12:08:09 -06:00
Gregory Nutt
2225940155
SMP: Add per-CPU initialization logic
2016-03-13 07:16:56 -06:00
Gregory Nutt
79c1fa5bd7
SMP: Simplified SMP interfaces
2016-03-12 15:29:33 -06:00
Gregory Nutt
24468128de
TLS: Simplify
2016-03-11 07:17:32 -06:00
Gregory Nutt
934069e422
TLS: Add logic to get/set arbitrary TLS values
2016-03-10 19:31:22 -06:00
Gregory Nutt
d69dc04d96
TLS: Fix an error in a macro
2016-03-10 18:10:44 -06:00
Gregory Nutt
30b6ee96c9
Add basic definitions for TLS support
2016-03-10 11:56:33 -06:00
Gregory Nutt
6a056479d2
Add a some missing FAR in shared header files
2016-03-09 18:12:41 -06:00
Gregory Nutt
c7e7bda830
MTD struct mtd_geometry_s: Increase the size of blocksize again. Yes, there are devices with block size greater than 64KB.
2016-03-09 07:42:34 -06:00
Stefan Kolb
fde277a388
Missing parentheses in MSEC2TICK macro can lead to incorrect conversions
2016-03-09 07:24:16 -06:00
Gregory Nutt
9b5e88af71
Update some comments
2016-03-06 13:50:26 -06:00
Gregory Nutt
5d63cd85c7
sched/semaphore: Add an internal interface to reset a semaphore count.
2016-03-05 07:33:24 -06:00
Gregory Nutt
300edb9b0f
Update ChangeLog
2016-02-27 10:37:42 -06:00
Gregory Nutt
3c5cd96646
Remove definitions for unsupported protocol families and address families
2016-02-27 07:59:26 -06:00
Gregory Nutt
fdddebbffd
net/: Finish IEEE802154->6LOWPAN renaming; remove PF_IEEE804154; Move 6LoWPAN menu to inside Internet Protocol Menu
2016-02-27 07:26:20 -06:00
Sebastien Lorquet
dc7adfa817
drivers/wireless/ieee802154/Kconfig
...
drivers/wireless/ieee802154/Make.defs
Changes to the build infrastructure to include the mrf24j40 driver
include/nuttx/spi/spi.h
Define a IEEE SPI device
include/nuttx/wireless/ieee802154/ieee802154_radio.h
This file defines the API of a IEEE 802.15.4 radio device, to be used by the future common MAC 802.15.4 layer
drivers/wireless/ieee802154/mrf24j40.c
drivers/wireless/ieee802154/mrf24j40.h
The main MRF24J40 IEEE 802.15.4 radio driver
include/nuttx/wireless/ieee802154/mrf24j40.h
This file allows instanciation of the MRF24j40 driver from board configurations
2016-02-26 18:39:27 -06:00
Gregory Nutt
d84fa1689a
Add include/nuttx/wireless/ieee802154 directory (with dummy header file)
2016-02-26 17:32:37 -06:00
Gregory Nutt
cfe018e991
Rename CONFIG_WIRELESS to CONFIG_DRIVERS_WIRELESS
2016-02-26 16:50:26 -06:00
Gregory Nutt
309beae2cd
Move drivers/ieee802154 to drivers/wireless/ieee802154; rename include/nuttx/net ieee802154 to 6lowpan.h
2016-02-26 15:03:16 -06:00
Gregory Nutt
2f28ca86c2
Clean up some naming; rename net/ieee802154 to net/6lowpan
2016-02-26 10:08:36 -06:00
Gregory Nutt
9ff645a298
drivers/ieee802154: Add a skeleton IEEE802154 driver
2016-02-25 15:11:30 -06:00
Gregory Nutt
e4e6181098
net/: IEEE 802.15-4 basic build build structure.
2016-02-25 10:43:51 -06:00
Gregory Nutt
1ed1765e1a
sys/socket.h: Add IEEE802.15-4 protocol family
2016-02-25 08:19:10 -06:00
Alan Carvalho de Assis
ea15ead6cc
RGB LED driver
2016-02-22 08:43:32 -06:00
Gregory Nutt
143d287f11
Fix some missing header file inclusions and a misplaced semi-colon from recent commits
2016-02-21 11:27:55 -06:00
Gregory Nutt
f3356fee5b
SMP: Add macros to CPU set manipulation to sched.h
2016-02-20 18:45:07 -06:00
Gregory Nutt
0eadf1dcad
Costmetic change + update submodules
2016-02-20 14:57:05 -06:00
Gregory Nutt
5a590e99b9
Add SYSCALLS for pthread_setaffinity() and pthread_getaffinity()
2016-02-19 18:13:06 -06:00
Gregory Nutt
a633353ec3
Add a CPU affinity set to the TCB if SMP is enable and use this CPU set as a mask for determining which CPUs the thread may run on. Add an affinity field to the attrributes to permit controlling which CPUs a pthread may run on. Implements pthread_att_setaffinity_np() and pthread_attr_getaffinity_np().
2016-02-19 17:33:35 -06:00
Gregory Nutt
2075eb7932
Fix a typo introduced in the last commit and a file that was missed in the last commit
2016-02-19 16:03:01 -06:00
Gregory Nutt
72d3920295
Rename cpuset_t to cpu_set_t which is the type used in some non-standard Linux/GNU interfaces. Move definitions of cpu_set_t to include/sys/types.h. Add prototypes for sched_setaffinity(), sched_getaffinity(), pthread_attr_setaffinity_np(), pthread_attr_getaffinity_np(), pthread_setaffinity_np(), and pthread_getaffinity_np(). No implementation is yet in place.
2016-02-19 15:57:07 -06:00
Gregory Nutt
050b3ee06a
profcs task status will now show CPU is SMP is enabled
2016-02-19 15:34:36 -06:00
Gregory Nutt
1780000777
SMP: Setting bit for wrong CPU. Assertion has cause false alarm crashes..
2016-02-18 12:31:21 -06:00
Gregory Nutt
52fbbaf778
1. SMP: Fix an assertion. SMP-specific change accidentally made in non-SMP code
...
2. Move list of signal actions from the task TCB to the task group. Signal handlers are a property of the entire task group and not of individual threads in the group. I know, I preferred it the other way too but this is more compliant with POSIX.
2016-02-18 08:34:54 -06:00
Gregory Nutt
95735519dd
SMP: Cosmetic renaming to clarify functionality of SMP interfaces. Update comments.
2016-02-17 13:36:25 -06:00
Gregory Nutt
b50325bb38
SMP: Add funtions to perform atomic bit set/clear operations; fix two errors in SMP macros
2016-02-17 13:20:01 -06:00
Gregory Nutt
6aeb4a52e8
Performance improvement: Idle loop should not take MM semaphore if there is not garbage to be collected. This can cause loss of performance and thrashing in tasking
2016-02-16 19:33:22 -06:00
Gregory Nutt
384e51cb05
Add some additional schedule instrumentation
2016-02-16 15:21:45 -06:00
Gregory Nutt
55d33fd912
Update some comments
2016-02-16 07:50:18 -06:00
Gregory Nutt
8ea1bc3188
SMP: Fix backward spinlock test
2016-02-15 11:06:54 -06:00
Gregory Nutt
9cb2a6b1f9
Rename irqsave() and irqrestore() to up_irq_save() and up_irq_restore()
2016-02-14 16:19:15 -06:00
Gregory Nutt
88c17bb4f2
nuttx/graphics and include: Replace irqsave() with enter_critical_section(); replace irqrestore() with leave_critical_section()
2016-02-14 15:09:28 -06:00
Gregory Nutt
97cbd7112f
SMP: Implement enter/leave_critical_section
2016-02-13 10:23:16 -06:00
Gregory Nutt
8ac699b63d
SMP: Need to perform all IDLE task memory allocations on initializatin thread prior to starting the other CPUs
2016-02-13 09:04:54 -06:00
Gregory Nutt
64b3ce8775
SMP: Add up_cpustart and up_cpurestart protoypes; fix some problems in sched_addreadytorun; first cut at SMP version of up_mergepending.
2016-02-12 16:13:14 -06:00
Gregory Nutt
85f663a8ee
SMP: Add non-reentrant spinlocks, fix pre-emption controls with SMP, and most of the basic scheduler support for SMP (still missing a few things)
2016-02-12 14:55:31 -06:00
Gregory Nutt
c315479a04
SMP: Move IDLE thread init logic from sim to OS; need to assign unique IDs to each IDLE task
2016-02-11 14:11:26 -06:00
Gregory Nutt
49227fa554
Scheduler: Replace the boolean 'prioritized' with a uint8_t bit set so that additional attributes of a list can be specified without adding more boolean values.
2016-02-11 08:06:33 -06:00
Gregory Nutt
baac92cda2
Correct some columnar alignment
2016-02-10 16:55:37 -06:00
Gregory Nutt
292d2fe648
Correct naming of a TCB flag; update some comments
2016-02-10 16:53:34 -06:00
Gregory Nutt
96223cedf1
SMP: A little more
2016-02-10 15:43:05 -06:00
Gregory Nutt
8a1789ba11
Update ChangeLog
2016-02-10 14:58:55 -06:00
Gregory Nutt
3147dfc7d5
SMP: Add some tentative initialization logic
2016-02-10 13:49:27 -06:00
Gregory Nutt
47a5663f8c
SMP: A few preliminary data structure definitions
2016-02-10 11:45:26 -06:00
Gregory Nutt
f5a3b1e89d
Add EXPERIMENTAL configuration option to investigate some SMP issues
2016-02-10 10:27:48 -06:00
Gregory Nutt
2c0ad2564f
Add CONFIG_SPINLOCK. Also need spinunlock() and spinlock_initialize()
2016-02-09 15:31:14 -06:00
Gregory Nutt
b022f1e9d8
Add basic support for spinlocks (not currently used by anything)
2016-02-09 13:48:59 -06:00
Gregory Nutt
0af9a197ac
ARP: Add IOCTL commands to manage the ARP table
2016-02-08 11:17:22 -06:00
Gregory Nutt
12f95c6f6b
Add procfs/kmm to show the state of the kernel heap
2016-02-06 11:35:30 -06:00
Gregory Nutt
50cf53914c
Update submodule; Improve some comments
2016-02-05 10:23:39 -06:00
Gregory Nutt
0984104a9a
init.h: Trivial clean-up
2016-02-05 09:25:12 -06:00
Gregory Nutt
2dc258986d
Add a state variable that provides the current level of OS initialization. This is needed by some logic that may attempt to run early in the start-up sequence, but cannot run if a sufficient level of initializaitn has not not yet occurred
2016-02-05 08:34:03 -06:00
Gregory Nutt
dea24c503a
Networking: Remove the HSEC argument from devif_timer.
2016-02-03 12:12:41 -06:00
Gregory Nutt
8fa9b99e7c
I2C driver should support the RESET method as well
2016-02-03 07:32:25 -06:00
Gregory Nutt
03d868be3c
I2C: Fix a naming error
2016-02-02 14:23:33 -06:00
Gregory Nutt
9ce58ad5b7
I2C: up_i2creset should not be a global function; Now it is an I2C interface method
2016-02-02 11:21:48 -06:00
Gregory Nutt
4a34a199dd
I2C: Add an I2C character driver
2016-02-02 08:30:54 -06:00
Gregory Nutt
4304405bba
I2C Slave: I don't think that the setfrequency method makes sense in a slave interface.
2016-02-02 06:07:51 -06:00
Gregory Nutt
456b5f06dc
Clean up some comments
2016-02-01 19:52:16 -06:00
Gregory Nutt
69ce24c70c
I2C: Remove the setfrequency method from the interface
2016-02-01 16:31:13 -06:00
Gregory Nutt
6ad641888b
Add I2C frequency to the i2c_msg_s structure
2016-02-01 14:17:20 -06:00
Gregory Nutt
f9053182d3
I2C: Remove setaddress method
2016-02-01 12:14:31 -06:00
Gregory Nutt
ecdc428086
Remove the read and write methods from the I2C interface
2016-02-01 09:22:22 -06:00
Gregory Nutt
8c9bddf998
I2C: Eliminate the I2C_WRITE and I2C_READ macros
2016-02-01 08:57:22 -06:00
Gregory Nutt
10000841a8
The I2C_TRANSFER method is no longer optional
2016-01-31 14:16:05 -06:00
Gregory Nutt
9370b94241
compiler.h: Missing IOBJ/IPTR definitions for the ZDS-II toolchain
2016-01-31 12:44:44 -06:00
Gregory Nutt
af335827d0
Update ChangeLog
2016-01-30 11:27:49 -06:00
Gregory Nutt
cccfb11e38
Forgot to add a file in the last commit
2016-01-30 08:49:20 -06:00
Gregory Nutt
3a781a2d3f
Remove I2C slave methods from I2C master interface; rename i2c_dev_s to i2c_master_s.
2016-01-30 08:36:47 -06:00
Gregory Nutt
ceb415204e
Move include/nuttx/i2c.h to include/nuttx/i2c/i2c_master.h
2016-01-30 08:00:16 -06:00
Vladimir Komendantskiy
19feab1bd6
drivers/modem/u-blox.c and include/nuttx/drivers/u-blox.h: Add an upper half driver for the U-Blox Modem. From Vladimir Komendantskiy
2016-01-30 07:37:43 -06:00
Entinger Alexander
dc8c14aa53
Driver for the 24-Bit Differential Input ADC ADS1242 that communicates via SPI with a MCU. Reading the ADC conversion result as well as configuring the ADC, setting the input channel, etc. is implemented via ioctl calls. However, it does not yet implement the standard ADC interface.
2016-01-29 07:41:23 -06:00
Gregory Nutt
fd896330d8
Remove the final vestiges of up_spiinitialize()
2016-01-27 09:27:56 -06:00
Gregory Nutt
11dab241de
SPI slave: Prototype for MCU-specific slave initialization function removed from spi_slave.h
2016-01-26 13:04:12 -06:00
Gregory Nutt
b6b3c2be3e
Add I2C_TRANSFER based wrappers for I2C_TRANSFER as well
2016-01-26 10:57:51 -06:00
Gregory Nutt
d4a53ee131
I2C: Eliminate the I2C_WRITEREAD method
2016-01-26 10:26:16 -06:00
Gregory Nutt
67f38169b2
drivers/i2c: Move wrapper that implements I2C_WRITEREAD using I2C_transfer from pc9555.c to a new, comon i2c directory
2016-01-26 09:58:18 -06:00
Gregory Nutt
eac271413f
Add more 32-bit math operations; Update ChangeLog
2016-01-25 11:19:25 -06:00
Gregory Nutt
047ed9e543
Add some utilities to support 64-bit math operations on platforms that do not support long long types. Not yet used anywhere
2016-01-25 09:56:00 -06:00
Gregory Nutt
564a1ce606
Cosmetic clean-up of comments
2016-01-24 08:21:55 -06:00
Gregory Nutt
a4a496ad6f
spi.h needs to include errno.h now
2016-01-23 19:13:31 -06:00
Gregory Nutt
7edf921c5e
Remove CONFIG_SPI_OWNBUS: Now it is not just a good idea, it is the law
2016-01-23 18:54:36 -06:00
Gregory Nutt
accd99db25
Add an optional hwfeatures method to the SPI interface
2016-01-23 15:12:45 -06:00
Gregory Nutt
84d4cb007b
clock_systimer: 64-bit timer accesses are not atomic. Noted by Freddie Chopin.
2016-01-22 12:24:36 -06:00
Gregory Nutt
2dcebe1e3d
Purely cosmetic changes from review of last commit
2016-01-22 07:11:29 -06:00
Stefan Kolb
2b05f3e830
I/O Expander: Fix some bad macros, make naming consisted
2016-01-22 07:08:59 -06:00
Gregory Nutt
032ad1b70b
Remove clock_systimer32 and clock_systimer64. There is now only clock_systimer
2016-01-21 16:49:24 -06:00
Gregory Nutt
7db9a952bc
Fix an error in conditional compilation introduced in the last set of changes
2016-01-21 13:42:34 -06:00
Gregory Nutt
f348e68069
Update to use 64-bit timer when available
2016-01-21 11:54:26 -06:00
Gregory Nutt
3a59eb4340
Fix romdisk_register prototype. Most ROMFS images actually lie in RAM. If moved to FLASH with const storage class, then changes are required to avoid warnings
2016-01-20 13:04:07 -06:00
Gregory Nutt
f849116a0b
Add implementatino of Tiny Encryption Algorithm
2016-01-19 16:37:45 -06:00