Commit Graph

34432 Commits

Author SHA1 Message Date
Gregory Nutt
a40ef12895 graphics/: Fix an oversight in the implementation of per-window framebuffers. It is true that redraw callbacks can be supporessed for all cases ... EXCEPT ONE: When the window is resized to a larger size, then the newly exposed territory must be drawn for the first time. 2019-05-16 09:18:33 -06:00
Gregory Nutt
4676470dd7 arch/arm/src/stm32/chip/stm32_i2c.h: Fix typo in last PR noted by David Sidrane 2019-05-15 09:34:50 -06:00
raiden00pl
8ce1f1a67b Merged in raiden00/nuttx_lora/lora (pull request #869)
Port STM32F7 I2C to STM32F3 and STM32F0L0

arch/arm/src/stm32: port I2C IPv2 driver from F7 (only F3 chips)

arch/arm/src/stm32f0l0: port I2C IPv2 driver from F7

configs/b-l072z-lrwan1: nxlines_oled example (ssd1306)

configs/b-l072z-lrwan1: support for the I2C tool

configs/nucleo-f303ze: nxlines_oled example (ssd1306)

arch/arm/src/stm32h7/chip.h: cosmetics

arch/arm/src/stm32/chip/stm32_tim.h: cosmetics

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-05-15 08:20:28 +00:00
Gregory Nutt
6c79512b36 Update a README file. 2019-05-14 10:34:39 -06:00
Juha Niskanen
2f46f4f11f arch/arm/src/stm32l4: Port HSI48 and CRS from STM32F0L0 2019-05-14 06:35:34 -06:00
Juha Niskanen
8bf2e45b6c arch/arm/src/stm32l4/stm32l4_usbdev.c: add missing PWR USBV enable, correct two USB register bits 2019-05-14 06:32:07 -06:00
Gregory Nutt
8905bd6fa6 arch/arm/src/stm32f0l0: Eliminate some warnings found in build testing. 2019-05-13 12:29:26 -06:00
Gregory Nutt
6677471ee8 Update a README and a defconfig file 2019-05-13 09:50:07 -06:00
Gregory Nutt
f371679f58 libs/libnx/nxglib/nxglib_intersecting.c: Correct bogus logic in nxgl_interesting. Good to know I was stupid then to and that is it not just a recent thing. 2019-05-13 09:06:14 -06:00
Gregory Nutt
4f31eec94e libs/libnx/nxmu/: Add a few bad input parameter checks. configs/lpcxpresso-lpc54628/twm4nx/defconfig: Need to enable the NX library. 2019-05-12 14:42:27 -06:00
Gregory Nutt
611a87075c Coding standard fixes from review of last PR. 2019-05-11 13:46:38 -06:00
Leif Jakob
3b13bf58f8 Merged in leif_jakob/nuttx/nrf24l01-support-for-O_NONBLOCK-W_TX_PAYLOAD_NOACK (pull request #868)
nrf24l01: don't block in read if file descriptor is O_NONBLOCK

nrf24l01: support for "multicast" TX mode - no waiting for ACK (needs to be enabled with fcntl SETTXPAYLOADNOACK)

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-05-11 19:14:54 +00:00
Gregory Nutt
d57bc5b3a3 Update a README. 2019-05-10 15:29:45 -06:00
Gregory Nutt
3874f468de graphics/nxbe/nxbe_getrectangle.c: Fix an error in coordinate system usage. Expected rectangle in device coordinate frame, but was passing the rectangle in window-relative coordinate frame. 2019-05-10 09:18:17 -06:00
Gregory Nutt
392809fae5 libs/libnx/nxtk/nxtk_opentoolbar.c: Refuse to open a toolbar of height zero. 2019-05-10 08:30:09 -06:00
Gregory Nutt
05ce221523 graphics/: Add new NX interfaces to query if a window is hidden or not. 2019-05-09 08:27:12 -06:00
raiden00pl
ebad04c269 Merged in raiden00/nuttx_l0f0/stm32m0_adc (pull request #867)
Initial ADC support and some improvemnets for the STM32 M0

arch/arm/src/stm32f0l0/Kconfig: improvements

configs/b-l072z-lrwan1: add ADC example

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-05-09 13:02:53 +00:00
Gregory Nutt
a0061325ef Documentation/NuttX.html: Fix typos in a name. 2019-05-09 06:42:12 -06:00
Gregory Nutt
04a0a7c8bb Documentation/NXGraphicsSubsystem.html: Add documentatin for new nx[tk]_modal() and nx[tk]_setvisibility() interfaces. 2019-05-08 11:03:06 -06:00
Gregory Nutt
1cce434a6b configs/lpcxpresso-lpc54628: Update a README.txt. 2019-05-08 10:32:10 -06:00
Gregory Nutt
9b13eaf595 arm/src/lpc54xx/: Bring in the USB FS OHCI driver from LPC17. This is a quick'n'dirty port that I will finish sometime later (I hope). Currently, it is missing hardware clocking setup and is not even hooked into the build system yet. Needless to say it does not yet even compile. 2019-05-08 10:01:37 -06:00
Ivan Ucherdzhiev
82cb456e02 net/sixlowpan/sixlowpan_hc06.c: Correct an endian-ness problem in HC06 decompression. 2019-05-08 06:59:22 -06:00
Gregory Nutt
06ffd78ad4 Revert "include/nuttx/net/sixlowpan.h: Fix endian-ness problem in SIXLOWPAN_IS_IID_8BIT_COMPRESSABLE() macro definition. This macro checks whether we can compress the IID to 8 bits."
This reverts commit 0ac8b5b8f6.

After additional testing Ivan determined that this original change was incorrect.
2019-05-08 06:28:53 -06:00
Gregory Nutt
a312503ed2 libs/libnx/nxtk/nxtk_events: Fix an error in handling mouse events for framed windows. When drawing, NX may report mouse positions outside of the Window. The is only for NX windows, but the outside-the-side positions were being discarded by nxtk_events(). 2019-05-07 18:17:59 -06:00
Ivan Ucherdzhiev
0ac8b5b8f6 include/nuttx/net/sixlowpan.h: Fix endian-ness problem in SIXLOWPAN_IS_IID_8BIT_COMPRESSABLE() macro definition. This macro checks whether we can compress the IID to 8 bits. 2019-05-07 09:11:40 -06:00
Gregory Nutt
b05e940135 graphics/: Windows can now be created in the hidden state. This can be used to clean up initial window presentation which may involve several steps. This makes those steps all invisible until nx[tk]_setvisibility() is called to make the windows visible. 2019-05-07 08:49:16 -06:00
Gregory Nutt
8cc0d2fc15 graphics/nxbe/nxbe_setvisibility.c: Fix a missed redraw command in last NX visibility changes. 2019-05-06 12:04:48 -06:00
Gregory Nutt
49b2b74105 drivers/sensors/apds9960.c: Initial state of allocated structure was not being set. Noted by Leif Jacob. 2019-05-06 09:10:25 -06:00
Fabian Justi
40be068528 Merged in Justifa/nuttx (pull request #866)
add missing files of BMP180 example for nucleo-l476rg

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-05-06 12:48:55 +00:00
Mateusz Szafoni
21feca2a46 arch/arm/src/stm32h7/Kconfig: fix warnings;
arch/arm/src/stm32h7/stm32_tim.c: don't use hardcoded UIF interrupt
2019-05-06 06:45:16 -06:00
Jukka Laitinen
1c084cef78 configs/nucleo-h743zi/include/board.h: Add the input clock frequency definitions for all the drivers. Assumes internal clock source for all the timers. 2019-05-05 15:37:04 -06:00
Jukka Laitinen
246898fd1c arch/arm/src/stm32h7: Add missing parts for timer driver: Add the missing header files, add the driver Kconfig, and add it to make system. 2019-05-05 15:35:06 -06:00
Gregory Nutt
da314276a1 NX graphics: This commit adds support for hiding windows. This features is needed by Twm4Nx: When a window is iconfied, the icon should appear on the background and the window should disappear (i.e., be hidden). The windows needs to remain healthy and to be updated in all ways, but it cannot affect the display content.
Converserely, when the icon is clicked, the icon needs to be hidden on the backgound and the window needs to be restored in its current state (which may be different than the state of the window at the time it was iconified.

Squashed commit of the following:

    graphics/:  Add checks in all places that I can think to avoid doing something stupid with hidden windows

    Improve some naming

    Add a new file missing in last commit.

    graphics/:  Initial, incomplete support for hiding windows.
2019-05-05 15:21:52 -06:00
Jason Harris
a3312b74bb arch/arm/src/common/up_initialize.c: up_initialize.c needs to know about ramlog_consoleinit() 2019-05-04 18:28:43 -06:00
Gregory Nutt
32b99d810c configs/lpcxpresso-lpc54628: Add a Twm4Nx configuration. 2019-05-04 12:34:47 -06:00
Gregory Nutt
8130038fb0 configs/same70-xplained/twm4nx/defconfig: Switch to 8BPP. That is the negotiated size requested by the VNC client anyway. graphics/vnc/server/vnc_color.c: Fix an error in color conversion. 2019-05-03 17:08:05 -06:00
Tom Kopriva
cacf18fa7b Merged in CaptproTrom/nuttx/bugfix/battery-gauge-build (pull request #865)
fix build for battery guage

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-05-03 18:07:40 +00:00
Gregory Nutt
03f345b38c configs/same70-xplained/twm4nx/defconfig: Increase packet MTU to 1500. 2019-05-03 10:45:38 -06:00
Gregory Nutt
34e62de4dd Minor update to some comments. 2019-05-02 13:07:47 -06:00
Gregory Nutt
9f84aef8d3 Purely costmetic 2019-05-01 12:18:13 -06:00
Michał Łyszczek
6aac53c6a1 Documentation/NuttShell.html: Command date is misspelled as data in chapter 2.12 Show or set the date and time (date). 2019-05-01 06:52:54 -06:00
Gregory Nutt
cfc254a684 Merged imxrt1020 into master
* Mostly arch/arm/src/imxrt and include/imxrt:  This commit gets imx1020 family support started. It is pretty similar, but subtly different, to 1050/60 (less PLLs, less GPIO banks, differently numbered ports etc. etc.).  I think it's time to at least look at what needs to be done before we can get these into the mainline kernel even though they're not properly mature yet.  Core memory functions, PLLs, serial and networking are all working, but there's no stress-testing or similar been done...I'm not aware of anything broken, but there again I haven't looked too hard.

    I want to go through and start moving each of the imxrt family-specific files into its own subdirectory to tidy things up a bit, and remove the vast majority of ifdefs from the mainline code...but I think it's appropriate to separate the cleanup steps from the new-chip-suppport steps to keep things a bit more compartmentalized. Next week is a travel week so it's possible I'll get time on the cleanup side of the house.

    I can't be 100% certain I didn't inflict casualties on the imxrt1050/60 code in the process of doing this, but nsh for 1050 and netnsh and nsh for the 1060 both compile correctly, so if I did break anything it's going to be properly evil and difficult to find.

* 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.

* Directory re-arrangement and splitting of each imxrt family variant

* Prevent intermittent SDCard timeouts by increasing timer in line with spec.

* Support data dump on Hardfault

* Fix missing ccm definitions and wrong iomux offset

* Prevent hardfault when can't read from ENET PHY

* More consistent Ethernet pinmux

* Mostly arch/arm/src/imxrt and include/imxrt:  This commit gets imx1020 family support started. It is pretty similar, but subtly different, to 1050/60 (less PLLs, less GPIO banks, differently numbered ports etc. etc.).  I think it's time to at least look at what needs to be done before we can get these into the mainline kernel even though they're not properly mature yet.  Core memory functions, PLLs, serial and networking are all working, but there's no stress-testing or similar been done...I'm not aware of anything broken, but there again I haven't looked too hard.

    I want to go through and start moving each of the imxrt family-specific files into its own subdirectory to tidy things up a bit, and remove the vast majority of ifdefs from the mainline code...but I think it's appropriate to separate the cleanup steps from the new-chip-suppport steps to keep things a bit more compartmentalized. Next week is a travel week so it's possible I'll get time on the cleanup side of the house.

    I can't be 100% certain I didn't inflict casualties on the imxrt1050/60 code in the process of doing this, but nsh for 1050 and netnsh and nsh for the 1060 both compile correctly, so if I did break anything it's going to be properly evil and difficult to find.

* Directory re-arrangement and splitting of each imxrt family variant

* Prevent intermittent SDCard timeouts by increasing timer in line with spec.

* Support data dump on Hardfault

* Fix missing ccm definitions and wrong iomux offset

* Prevent hardfault when can't read from ENET PHY

* More consistent Ethernet pinmux

* Various small commits starting i2c debug
2019-04-30 22:12:32 +00:00
Gregory Nutt
3e848fb893 Merged imxrt1020 into master 2019-04-30 16:08:46 -06:00
Jukka Laitinen
7f74947c93 arch/arm/src/stm32h7/: Add timer devices driver for stm32h7. This is mostly a forklift from stm32f7 with some h7 specific modifications. 2019-04-30 08:59:42 -06:00
Jukka Laitinen
54856cfa5e arch/arm/src/stm32h7/: Add stm32h7 ethernet driver. This is the initial push for the ethernet driver. The driver has been tested to be working on a nucleo board. This is still WIP, it doesn't for example do MAC filtering on HW level, but just receives all ethernet packets. 2019-04-30 08:43:39 -06:00
Jukka Laitinen
c4b4291efd arch/arm/src/stm32h7/stm32_i2c.c: Fix I2C4 compilation for stm32h7. 2019-04-30 07:21:41 -06:00
Jukka Laitinen
98162e268f arch/arm/src/stm32h7/chip/stm32h7x3xx_pinmap.h: Add the GPIO_ETH_RMII_RXD1 pinmap definition for stm32h7. 2019-04-30 07:18:52 -06:00
Jukka Laitinen
1a66824a6b arch/arm/src/stm32h7/chip/stm32h7x3xx_memorymap.h: Add the stm32h7 SYSTEM_UID and DEBUGMCU_BASE register definitions. 2019-04-30 07:17:00 -06:00
Jukka Laitinen
d3ff5476e0 arch/arm/src/stm32h7/stm32h7x3xx_rcc.c: Set the stm32h7 default HSI predivider to 4. The I2C driver currently assumes HSI clock to be 16MHz. 2019-04-30 07:15:37 -06:00
Jukka Laitinen
7a1522294c arch/arm/src/stm32h7/chip/stm32h7x3xx_rcc.h: Fixes for stm32h7 rcc definitions: (1) Fix compilation for UART7, UART8 and I2C4, (2) Add backup domain control registers. 2019-04-30 07:13:54 -06:00