Anthony Merlino
eab1b11d7d
Merged in antmerlino/nuttx/ina3221-addr-macro (pull request #894 )
...
ina3221: Adds INA3221_I2C_ADDRx macro helpers.
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-13 01:25:59 +00:00
Gregory Nutt
611eb12074
configs/makerlisp: Add Smart Flash Programmer project. Updae a README.
2019-06-12 07:38:54 -06:00
Alin Jerpelea
da4e3271f8
Merged in alinjerpelea/nuttx (pull request #892 )
...
Spresense board updates
* configs: spresense: Code style fix
There is no functional change
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* configs: spresense: initialize CPU
we are using the framework to initialize the CPU
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* configs: spresense: enable power manager
Enable PowerManager on spresense board
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* configs: spresense: initialize the UART interfaces
initialize the UART interfaces
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* configs: spresense: enable clock management
enable clock management using the cxd56 framework
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* configs: spresense: enable spresense timer
Use timerisr on the spresense board
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* configs: spresense: enable USBDEV
Enable USBDEV on Spresense board
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* configs: spresense: enable SD Card Support
Enable SD Card support on spresense board
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* configs: spresense: enable Mass Storage
Enable Mass Storage on Spresense board
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-12 13:23:39 +00:00
raiden00pl
aaa173dd37
Merged in raiden00/nuttx_pe (pull request #891 )
...
stm32/stm32_pwm.c, stm32h7/stm32_pwm.c: fix pulsecount for the number of counts greater than 128
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-12 13:22:21 +00:00
Alin Jerpelea
32f89d63f7
Merged in alinjerpelea/nuttx (pull request #890 )
...
Add syscontrol for cxd56xx
* arch: arm: cxd56xx: add sysctl
Add the syscontrol implementation for cxd56xx.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: timer updates
Add the function to change the clock speed.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: cxd56_uart updates
Add pinctrl and clock ctrl functionality.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: add conditional for SDHCI
The cxd56_sdhci should be built only if CONFIG_CXD56_SDIO is selected
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-11 11:19:31 +00:00
Masayuki Ishikawa
6d4c99f2aa
Merged in masayuki2009/nuttx.nuttx/fix_macaddr_for_rndis (pull request #889 )
...
configs: Fix mac address settings for rndis
Recently CONFIG_NETINIT_MACADDR_2 and CONFIG_NETINIT_MACADDR_1
were newly introduced instead of CONFIG_NETINIT_MACADDR.
This PR conforms to this change.
Signed-off-by: Masayuki Ishikawa <masayuki.ishikawa@gmail.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-11 11:18:18 +00:00
Alin Jerpelea
6498ec8d02
Merged in alinjerpelea/nuttx (pull request #888 )
...
arch: arm: cxd56xx: add Power Management support
* arch: arm: cxd56xx: add Power Management support
Add power management on the cxd56xx
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: add Far API
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-10 23:35:15 +00:00
Gregory Nutt
0ec3d0a035
Update README files.
2019-06-10 11:36:07 -06:00
Gregory Nutt
417e681cbb
libs/libc/time/lib_gmtimer.c: Spurious reorganization of a loop to work around and ZDD-II internal compiler error. Might be a little bigger now, but is also probably a more structured use of C.
2019-06-10 09:50:33 -06:00
Alin Jerpelea
750e45ad6e
Merged in alinjerpelea/nuttx/code_style (pull request #887 )
...
Code style fixes
* arch: arm: cxd56xx: cxd56_cpufifo fix codestyle
Only codestyle fix
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: cxd56_clock fix codestyle
Only codestyle fix
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: cxd56_gpio fix codestyle
Only codestyle fix
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: cxd56_gpioint fix codestyle
Only codestyle fix
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: cxd56_irq fix codestyle
Only codestyle fix
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: cxd56_pinconfig fix codestyle
Only codestyle fix
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: cxd56_pmic fix codestyle
Only codestyle fix
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: cxd56_sdhci fix codestyle
Only codestyle fix
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: cxd56_start fix codestyle
Only codestyle fix
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: cxd56_usbdev fix codestyle
Only codestyle fix
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-10 13:00:57 +00:00
raiden00pl
e923c7683b
Merged in raiden00/nuttx_pe (pull request #886 )
...
Fixes for STM32F1 PWM
arch/arm/src/stm32/hardware/stm32f1xxx_pinmap.h: fix names for complementary PWM outputs
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-10 09:25:54 +00:00
Gregory Nutt
495a648573
arch/z80/src: Rename up_doirq.c and up_internal.h to z80_doirq.c and z80_internal.h for better consistency with the naming conventions
2019-06-09 19:08:42 -06:00
Gregory Nutt
0148124e33
Squashed commit of the following:
...
nuttx/arch/z80/src: To properly follow the coding standard, the z80 architecture common should up_mmuinit should be called z80_mmu_initialize.
nuttx/arch/z80/src: To properly follow the coding standard, the z80 architecture common should up_loweserialinit should be called z80_lowserial_initialize.
configs/z80sim/src/z80_serial.c: Remove unused function up_earlyserialinit()
nuttx/arch/z80/src: To properly follow the coding standard, the z80 architecture common should up_serialinit should be called z80_serial_initialize.
nuttx/arch/z80/src: To properly follow the coding standard, the z80 architecture common should up_doirq should be called z80_doirq.
arch/z80/src/common: up_addregion() must be prototyped in nuttx/mm/mm.h, not up_internal.h
2019-06-08 22:01:53 -06:00
Gregory Nutt
d39ac6c3a1
arch/z80/src/common: Fix some name of internal z80-family common functions. ez80_* is wrong. up_ is misleading.
2019-06-08 11:36:55 -06:00
Gregory Nutt
f5b890d098
Squashed commit of the following:
...
arch/z80/src/ez80: Clean-up RTC driver; get a clean compilation. Still untested.
arch/z80/src/ez80: This brings the RTC to code complete, but does not yet compile.
arch/z80/src/ez80/ez80_rtc.c: Bring in badly ported RTC driver from STM32F4. Little more than naming changing at this point not even ready to attempt comilation
arch/z80/src/ez80: Add RTC driver. Initial commit is just the STMF4 RTC driver with name changes.
2019-06-08 09:58:24 -06:00
Gregory Nutt
1f3958116a
arch/z80/src/ez80/Make.defs: Fix some backward conditional loic
2019-06-07 13:23:54 -06:00
Gregory Nutt
c5bfb13e50
Update README
2019-06-07 07:06:05 -06:00
Fabian Justi
beaa54cc4c
Merged in Justifa/nuttx (pull request #885 )
...
drivers/sensors/as726x.c Fix little change from tools/indent.sh
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-06 13:36:58 +00:00
Gregory Nutt
51d6ad2ffe
Documentation/NuttXCCodingStandard.html: Yet another small addition to the C++ coding standard overview.
2019-06-05 16:22:09 -06:00
Gregory Nutt
ac8a3c40a8
Documentation/NuttXCCodingStandard.html: A few more additions to the previous commit.
2019-06-05 16:18:45 -06:00
Gregory Nutt
7eab088dd4
Documentation/NuttXCCodingStandard.html: Add a brief section summarizing the major differences between the NuttX C and C++ coding standards. This is a stop-gap measure in lieu of having a real C++ coding standard.
2019-06-05 15:38:35 -06:00
Gregory Nutt
fbb6f6cde0
configs/: Rename ZDS-II start files from xxx_lowinit.c to xxx_boot.c; rename board initialization logic from xxx_lowinit() to xxx_board_initialize(). These changes make the ZDS-II configurations more similar to board initialization conventions to used for other architectures.
2019-06-05 10:14:58 -06:00
Gregory Nutt
2c1e905aa6
Merge branch 'master' of bitbucket.org:nuttx/nuttx
2019-06-05 09:39:05 -06:00
Gregory Nutt
cf8268f7d8
configs/makerlisp/src/ez80_lowinit.c: Remove redundant SPI GPIO setup. This is already done in the SPI driver.
...
configs/makerlisp/src/ez80_spi.c: Add hooks needed by SPI driver. Move SPI MMC/SD chip selected configuration from ez80_lowinit.c to here as it done in other NuttX architectures. This enables support for multiple devices on the SPI bus.
2019-06-05 08:20:00 -06:00
Alin Jerpelea
215a146f2e
Merged in alinjerpelea/nuttx (pull request #884 )
...
arch: arm: cxd56xx: add support for USB and SDIO
* arch: arm: cxd56xx: add support for USB connectivity
Add basic support for USB connectivity
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: add SDHCI support
We add SDHCI driver for the cxd56xx
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-05 14:05:56 +00:00
Gregory Nutt
900c32c021
Substantial changes to last PR which was not close to the coding standard. Files ran through tools/indent.sh.
2019-06-05 07:21:55 -06:00
Fabian Justi
ff5f1945ec
Merged in Justifa/nuttx (pull request #883 )
...
Add support for AS726X spectral sensor
* configs/nucleo-l476rg/src/stm32_appinit.c Add I2C tool to board init
* configs/nucleo-l476rg/src/stm32_bmp180.c Fix comment
* configs/stm32f103-minimum/src/stm32_veml6070.c Fix name in error message
* drivers/sensor, include/nuttx/sensors and configs/nucleo-l476rg: Add support for AS726X spectral sensor
Implement driver for AS726X spectral
read as726x V,B,G,Y,O,R channel
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-05 12:50:03 +00:00
Alin Jerpelea
95c168ccc9
Merged in alinjerpelea/nuttx (pull request #882 )
...
arch: arm: cxd56xx: add Package Configuration
The CXD56xx can come in FCBGA 185 pin or WLCSP 100 pin package.
For each package we have to pick the right pin setup.
The default configuration is set to FCBGA 185 pin package
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-05 11:58:00 +00:00
Alin Jerpelea
eeedce32c4
Merged in alinjerpelea/nuttx (pull request #881 )
...
updates for arch: arm: cxd56xx:
* arch: arm: cxd56xx: add pinconfig
Add the HW pin configuration for cxd56xx
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: add GPIO support
Add GPIO support for cxd56xx
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: add support for GPIO interrupts
add support for GPIO interrupts
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: add clock support
Add clock support for cxd56xx
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: add PMIC support
Add support for PMIC (Power management integrated circuit)
for cxd56xx chip
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: add FIFO CPU schedulier
add a simple FIFO schedulier that minimizes overhead
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* arch: arm: cxd56xx: add ICC support
add Inter Core Communication for cxd56xx
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-05 11:29:51 +00:00
Gregory Nutt
fe0ab650bb
configs/makerlisp: Add VGA initialization logic.
2019-06-04 16:35:56 -06:00
Gregory Nutt
7d99b79c8f
Update a README.
2019-06-04 14:02:59 -06:00
Gregory Nutt
4e98980045
Add initial support for the MakerLisp eZ80 board. Ref: https://makerlisp.com/
...
Squashed commit of the following:
configs/makerlisp: Update comments about use of serial console.
configs/makerlisp: Add LED support, remove vestiges of button support (the board has no user buttons). Add support for SPI-based MMC/SD card slot.
arch/z80/src/ez80: Fix some link problems.
libs/libc/syslog/lib_syslog.c: The ZDS-II toolchain does not declare va_coy in stdarg.h. I think that the use of va_copy in vsyslog() is no necessary.
configs/makerlisp: Initial configuration directories cloned from ez80f910200zco with little more than naming changes.
2019-06-04 11:12:17 -06:00
Gregory Nutt
4a7f0166cf
arch/z80/src/ez80/ez80_i2c.c: Cosmetic changes from code review. Also makes I2C and SPI configurable options.
2019-06-04 06:49:45 -06:00
Gregory Nutt
6fbfd00396
arch/z80/src/ez80/ez80_spi.c: Cosmetic changes from code review.
2019-06-03 23:59:53 -06:00
Gregory Nutt
59f3180179
Re-verify ez80 build. Fixes to other ZiLOG architectures broke ez80 again.
2019-06-03 19:04:24 -06:00
Gregory Nutt
622c272ea3
Clean up some variouis compiler problems using SDCC to compiler Z180.
2019-06-03 18:16:23 -06:00
Gregory Nutt
7ab149d8e9
Various fixes to get a clean compile with the SDCC compiler. Compile is 'almost' clean.
2019-06-03 16:53:11 -06:00
Gregory Nutt
fd4436f559
arch/z80/src/Makefile.zdsiil: Minor cleanup
2019-06-03 15:35:36 -06:00
Gregory Nutt
f6b42f87c9
More miscelleanous ZNeo build fixes
2019-06-03 14:45:00 -06:00
Gregory Nutt
a9fd817eeb
More ZNeo compile fixes: include/stdio.h: Another place where misuse of FAR makes a difference. include/nuttx/sched.h: Be consistent in use of WDOG_ID type. ZDS-II doesn't like auto-conversions of struct wdog_s * to WDOG_I (which is type struct wdog_s *).
2019-06-03 13:28:39 -06:00
Gregory Nutt
96da37dc48
include/nuttx/wqueue.h: Allow definitions even if work queues are not enabled. This solves build failures when work queues are not enabled.
2019-06-03 13:13:17 -06:00
Gregory Nutt
84a57f8fa0
Fix several ZNeo compile issues. There are more. Pthreads: Fix a could of places where FAR was added when it is not appropriate. This matters to ZNeo which depends on definitions of NEAR and FAR points.
2019-06-03 13:06:58 -06:00
Gregory Nutt
25f42dd076
libs/libc/time/: Costmetic changes to make gmtime() and gmtimer() follow the coding standard more closely.
2019-06-03 11:18:17 -06:00
Gregory Nutt
2185456690
configs/: Update configurations for changes to apps/netutils/netinit configureation. MAC address configuration was represented by type long long. That is a problem for architectures that do not support typle long long. Replaces by two long configuration items.
2019-06-03 10:05:46 -06:00
Gregory Nutt
ee9e8c6bc2
udp\udp_callback.c: Fix another C89 compatibility problem. Empty initializers are not permitted. Caused ez80 build failure.
2019-06-03 09:23:19 -06:00
Gregory Nutt
2dae0ef0db
mm/mm_heap/mm_sem.c: Fix error that occurs when CONFIG_CPP_HAVE_VARARGS is not defined. In that case, the arguments to the debug macro will all be evaluated even though they are not used any variables that are references must at least be defined.
2019-06-03 09:02:55 -06:00
Gregory Nutt
d375a26a6c
libs/libc/stdio: Fix long long usage in all of the newer printf-related logic: The selection CONFIG_LIBC_LONG_LONG must be ignored if the architecture does not support long long types.
2019-06-03 08:45:57 -06:00
Gregory Nutt
7a0481d2a9
drivers/net/telnet.c: Fix a C89 non-compliance that was breaking the ez80 build.
2019-06-03 08:20:21 -06:00
Gregory Nutt
e4069ebe5e
include/nuttx/signal.h: Fix a C89 compliance problem that cause the ez80 build to fail. Empty structure and unions are not accepted by the compiler.
2019-06-03 08:12:20 -06:00
Dave Marples
a2def2a4d1
arch/arm/src/common/up_lwl_console.c: Add support for a 'Lightweight Link' protocol between a target and debugger for use when you need a console but the target doesn't have a spare serial port or other available resource.
2019-06-03 07:31:17 -06:00