Commit Graph

28926 Commits

Author SHA1 Message Date
Gregory Nutt
7706810fc0 XMC4xxx: A few more SCU register definitions. 2017-03-18 14:08:35 -06:00
Gregory Nutt
cfa75de85a XMC4xxx: A few more SCU register definitions. 2017-03-18 13:09:07 -06:00
Heesub Shin
82b187a819 Merged in heesub/nuttx/fix-progmem (pull request #280)
mtd/progmem: fix incorrect target address calculation

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-03-18 17:55:21 +00:00
Mateusz Szafoni
5907ec8cf9 Merged in raiden00/nuttx (pull request #279)
STM32F33: Move DMA logic to a separate files + add ADC support

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-03-18 17:54:19 +00:00
Gregory Nutt
9769c67d4d XMC4xxx: Add pin multiplexing header file. 2017-03-18 11:25:14 -06:00
Heesub Shin
a10735b50d mtd/progmem: fix incorrect target address calculation
progmem_read/write() is incorrectly calculating the target address,
expecting the offset argument is given in a block number. This is
completely wrong and as a result invalid flash region is accessed.
Byte-oriented read/write interfaces of mtd device accept the
target address in a byte offset, not a block number.

Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
2017-03-19 01:11:37 +09:00
raiden00pl
8491cd65bc configs/nucleo_f334r8: add ADC example 2017-03-18 16:39:40 +01:00
raiden00pl
fd42900dcc STM32F33: Add ADC support 2017-03-18 16:34:24 +01:00
raiden00pl
49e4e62aab STM32F33: Move DMA logic to a separate files 2017-03-18 16:31:06 +01:00
Gregory Nutt
b582d0b5df Merge branch 'xmc4' 2017-03-18 06:48:59 -06:00
Gregory Nutt
3f0c4871c8 Merge remote-tracking branch 'origin/master' into xmc4 2017-03-18 06:48:37 -06:00
Gregory Nutt
175f8960cf Cosmetic changes from review of last PR 2017-03-18 06:47:34 -06:00
David Cabecinhas
148e74fd10 Merged in dcabecinhas/nuttx/fix_intstack_allocation (pull request #270)
ARM: Fix off-by-one interrupt stack allocation (revert missed change in up_initialize.c)

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-03-18 12:25:18 +00:00
Brian Webb
074c530be1 Merged in webbbn/nuttx/xbox_one_controller (pull request #278)
USB Host driver for the XBox One game controller

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-03-18 04:01:37 +00:00
Brian Webb
0a95536b85 Adds driver support for the XBox One controller. Currently only the latest version (XBox One X) controller works. The older XBox One controllers do not enumerate correctly. 2017-03-17 20:48:21 -07:00
Jussi Kivilinna
acec5e3199 vsnprintf(): If size is zero, then vsnprintf() should return the size of the required buffer without writing anything. This is same fix that was done for snprintf in 2014 by commit 59846a8fe9. 2017-03-17 17:34:56 -06:00
Jussi Kivilinna
ac0d957f26 libc: printf: fix precision for string formatting. Fixes use of format precision to truncate input string. 2017-03-17 17:32:44 -06:00
Gregory Nutt
c6d5d3bded XMC4xxx: All register definition files need to include memorymap.h 2017-03-17 16:44:26 -06:00
Gregory Nutt
7bde01df98 XMC4C: Clean up some naming, fix some comments, add empty PINMUX header file. 2017-03-17 16:40:29 -06:00
Gregory Nutt
5ae9564b7d XMC4xxx: GPIO write should use OMR, not OUTPUT register. 2017-03-17 16:26:11 -06:00
Gregory Nutt
8bfb735351 XMC4xxx: Finishes implementation of GPIO support. 2017-03-17 13:02:07 -06:00
Gregory Nutt
41758d8e4c XMC4xxx: minor update to GPIO definitions. 2017-03-17 11:22:42 -06:00
Gregory Nutt
d2d54b4ae7 XMC4xxx: Add framework and definitions for GPIO support 2017-03-17 11:18:24 -06:00
Gregory Nutt
042b33414a XMC4xxx: Missing OMR field in PORT register definition header file. 2017-03-17 08:28:40 -06:00
Pascal Speck
8f91c73304 - fixed wrong assert on udp dgram send 2017-03-17 15:13:03 +01:00
Gregory Nutt
f672478e7e XMC4xxx: Completes the PORT register definition header file. 2017-03-17 08:12:21 -06:00
David Sidrane
0501ee4dac Merged in david_s5/nuttx/upstream_prio_inversion_restore_fix (pull request #274)
sem_holder: Fixes improper restoration of base_priority

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-03-17 12:46:26 +00:00
Aleksandr Vyhovanec
0ac4e2e7a4 Merged nuttx/nuttx into master 2017-03-17 11:47:31 +03:00
David Sidrane
7601a27cee sem_holder:The logic for the list version is unchanged 2017-03-16 14:16:18 -10:00
Gregory Nutt
6b167122c0 XMC4xxx: Move clock utility functions from xmc4_clocconfig.c to new xmc4_clockutils.c 2017-03-16 14:26:22 -06:00
Gregory Nutt
e30e47683b XMC4xxx: Add partial PORTS header file. 2017-03-16 13:24:32 -06:00
Gregory Nutt
e67baffc15 XMC4xxx: Add partial USIC header file. 2017-03-16 13:04:01 -06:00
Alan Carvalho de Assis
c3ccfab720 Fix mksyscall host binary name 2017-03-16 11:40:03 -06:00
Gregory Nutt
5693f26a5e XMC4xx: Fix several early compilation problems. 2017-03-16 11:30:02 -06:00
Gregory Nutt
fe610e7a1d XMC4500 Relax: Add basic board support infrastructure of Infineon XMC4500 Relax Lite v1 2017-03-16 10:52:01 -06:00
no1wudi
494ea5f5ec Merged in no1wudi/nuttx (pull request #276)
fixed descritpions of NUC100/120

Approved-by: Gregory Nutt
2017-03-16 15:55:24 +00:00
Gregory Nutt
66d001d0e1 XMC4xxx: Initial clock configuration logic. 2017-03-16 09:48:57 -06:00
no1wudi
812578c066 Merge branch 'master' of https://bitbucket.org/nuttx/nuttx 2017-03-16 23:07:38 +08:00
no1wudi
c613a360a3 Merge branch 'master' of https://bitbucket.org/no1wudi/nuttx 2017-03-16 23:06:54 +08:00
no1wudi
1280c91564 fixed descritpions of NUC100/120 2017-03-16 23:04:52 +08:00
Gregory Nutt
b03d46d36d Fix merge conflict 2017-03-16 07:06:35 -06:00
David Cabecinhas
f0c1c83389 Merged in dcabecinhas/nuttx/remove_redundant_coloring (pull request #275)
Remove redundant interrupt stack coloring and OABI code

Approved-by: Gregory Nutt
2017-03-16 12:52:40 +00:00
David Cabecinhas
4b65817e99 ARM: Set EABI stack alignment for all ARM architectures (remove OABI code) 2017-03-16 19:58:50 +08:00
David Cabecinhas
08e92abb0b ARM: Remove redundant interrupt stack coloring 2017-03-16 19:13:39 +08:00
David Sidrane
3cc2a4f7c9 sem_holder: Fixes improper restoration of base_priority
in the case of CONFIG_SEM_PREALLOCHOLDERS=0

   The call to sem_restorebaseprio_task context switches in the
   sem_foreachholder(sem, sem_restoreholderprioB, stcb); call
   prior to releasing the holder. So the running task is left
   as a holder as is the started task. Leaving both slots filled
   Thus failing to perforem the boost/or restoration on the
   correct tcb.

   This PR fixes this by releasing the running task slot prior
   to reprioritization that can lead to the context switch.
   To faclitate this, the interface to sem_restorebaseprio
   needed to take the tcb from the holder prior to the
   holder being freed. In the failure case where sched_verifytcb
   fails it added the overhead of looking up the holder.

   There is also the adfitinal thunking on the foreach to
   get from holer to holder->tcb.

   An alternate approach could be to leve the interface the same
   and allocate a holder on the stack of sem_restoreholderprioB
   copy the sem's holder to it, free it as is done in this pr
   and and then pass that address sem_restoreholderprio as the
   holder. It could then get the holder's tcb but we would
   keep the same sem_findholder in sched_verifytcb.
2017-03-15 17:12:45 -10:00
Anthony Merlino
c1dfbe5dcf Merged in merlin17/nuttx/ieee802154 (pull request #273)
fs/ioctl.h: Changes _MAC854 to _MAC802154 and creates _RADIO802154

Approved-by: Gregory Nutt
2017-03-16 00:53:13 +00:00
Gregory Nutt
059e398185 XMC4xxx: A few more SCU register bit definitions. 2017-03-15 18:50:48 -06:00
Gregory Nutt
938f7341f2 Merge remote-tracking branch 'origin/master' into ieee802154 2017-03-15 16:58:42 -06:00
Gregory Nutt
f9c22461c4 include/nuttx/fs/ioctl.h: Fix IOCTL numbering 2017-03-15 16:38:09 -06:00
Anthony Merlino
a492a05e34 fs/ioctl.h: Changes _MAC854 to _MAC802154 and creates _RADIO802154 2017-03-15 18:14:56 -04:00