Gregory Nutt
4f1d891067
arch/: Within the OS, nxisg_usleep() should be used instead of usleep(). usleep() is a cancellation point and sets the errno value. Neither of which should be done inside the OS.
2019-11-29 17:54:43 -06:00
Augusto Fraga Giachero
a6b31e3f03
arch/arm/src/lpc17xx_40xx/lpc17_40_ethernet.c: Use usleep() instead of up_delay() for large wait times.
2019-10-04 13:01:47 -06:00
Juha Niskanen
e8b5dd4528
Fix use of undefined pp-token #errror, other typos.
2019-09-19 18:19:18 -06:00
Augusto Fraga Giachero
08b596d26d
rch/arm/src/lpc17xx_40xx/lpc17_40_i2c.c: Respect the I2C_M_NOSTART flag. Sending a restart condition when not requested will break other drivers that depend on this behavior.
2019-09-17 16:14:58 -06:00
Juha Niskanen
ebc6f51641
Fix some typos
2019-09-17 10:46:23 -06:00
Nathan Hartman
366053e464
Fix typos, 1 in a #define, others in comments. This changes one definition: _MQ_TIMEDRECIEVE is changed to _MQ_TIMEDRECEIVE. It appears this symbol is not used anywhere.
2019-09-11 08:56:56 -06:00
Augusto Fraga Giachero
68bbc8438c
drivers/timers/pwm.c: Move the pwm/pwm.c driver to timers/pwm.c, The drivers/pwm contained only one .c file (pwm.c), so to avoid the proliferation of sub-directories inside drivers/ is better to move the pwm.c driver to drivers/timers. The pwm.h header was moved to include/nuttx/timers to keep consistency, so all files referencing it need to be updated.
2019-09-02 07:57:10 -06:00
Pavel Pisa
50a333f55c
arch/arm/src/lpc17xx_40xx/Make.defs: Cortex-M system reset is applicable to LPC17_40 too.
2019-08-14 11:03:52 -06:00
Pavel Pisa
913de5e216
arch/arm/src/lpc17xx_40xx/lpc17_40_can.c: f BOARD_CCLKSEL_DIVIDER is not equal to 1 on LPC178x or LPC40xx then base clock rate is calculated incorrectly because CCLK frequency does not correspond to PLL0 clock which is used for PCLK. This is partially workaround solution. It would be probably better to define BOARD_PCLK_FREQUENCY even for LPC176x targets and use that to replace divisor by base_clock in up_dev_s.
2019-08-13 16:16:49 -06:00
Augusto Fraga Giachero
a1f1adb878
arch/arm/src/lpc17xx_40xx/lpc17_40_ethernet.c: Fix the initialization for DP83848x PHYs. The DP83848x requires the RMII mode to be manually enabled through the MII_DP83848C_RBR register. Before querying the speed and mode it should wait for the link to be established.
2019-08-07 09:22:50 -06:00
Augusto Fraga Giachero
41d3ef5f1b
arch/arm/src/lpc17xx_40xx/lpc17_40_ethernet.c: Follow the procedure listed in the LPC176x/5x User Manual when reading from and writing to the PHY's registers (section 10.11.14). I couldn't see any behavioral change after this commit, but nonetheless is a good practice to follow the manufacturer's recommended procedure.
2019-08-07 09:01:10 -06:00
Augusto Fraga Giachero
17518b4a7d
arch/arm/src/lpc17xx_40xx/Kconfig: Add missing LPC17_40_PHY_CEMENT_DISABLE config to the lpc17xx Kconfig file. For some reason this config wasn't referenced anywhere else except in arch/arm/src/lpc17xx_40xx/lpc17_40_ethernet.c.
2019-08-07 08:59:38 -06:00
David S. Alessio
ced0dc1e16
arch/arm/src/armv7-m: Add ARMv7-M setjmp/longjump functions.
2019-08-06 15:59:19 -06:00
Nathan Hartman
68d43d3679
Fix typos.
2019-08-04 14:50:28 -06:00
Gregory Nutt
97265f3ca3
arch/arm/src/lpc17xx_40xx/lpc17_40_adc.c: Fix very minor coding standard problem in last PR.
2019-07-29 12:05:47 -06:00
jjlange
bc38e98862
Merged in jjlange/nuttx (pull request #957 )
...
Only use PCLKSEL0 for ADC on LPC176x family.
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-29 18:03:27 +00:00
Augusto Fraga Giachero
e0bd90d8a3
arch/arm/src/lpc17xx_40xx/lpc17_40_ethernet.c: Set speed back to 10Mbps if 10Mmbps link negotiated.
2019-07-27 12:16:13 -06:00
Augusto Fraga Giachero
f0b74380a5
arch/arm/src/lpc17xx_40xx/lpc17_40_i2c.c: Calculate the appropriate timeout for I2C transfers. Depending on the bus frequency and transfer size, I2C transactions can take quite a bit, so a fixed timeout is not a good solution. Calculating the timeout at run time poses some overhead but still better than aborting long transactions.
2019-07-25 13:07:28 -06:00
Augusto Fraga Giachero
38b9862902
arch/arm/src/lpc17xx_40xx/lpc17_40_i2c.c: Abort I2C transfers if a timeout has occurred. If a timeout has occurred in the middle of a I2C transfer, the next I2C interrupt should abort any transfers and send a stop condition to the corresponding I2C bus. Failed to do so will result in memory corruption / undefined behavior as priv->msgs points to a region of memory it doesn't owns anymore after lpc17_40_i2c_start returns.
2019-07-25 08:33:31 -06:00
Gregory Nutt
23df4a25d2
configs/lpc4088-quickstart: Remove crap configurations that do not build.
2019-07-11 12:33:32 -06:00
Gregory Nutt
021a32b97d
Fix some issues revealed by name changin of commit e5dfd805e6
.
2019-07-11 11:19:03 -06:00
jjlange
e5dfd805e6
Merged in jjlange/nuttx/lpc40xx (pull request #946 )
...
Add support for LPC40xx family chips
* Corrected a few peripheral definitions and pin functions for the LPC17xx family.
Added configuration options, chip definitions, and additional pin functions for the LPC40xx family.
Added board configurations for Embedded Artists LPC4088 Quickstart board and LPC4088 Developer's kit. These configurations are still something of a work in progress. In particular, the LCD functionality is untested.
* First pass rename in *.c and *.h files.
* Renamed LPC17XX to LPC17XX_40XX in config files
* Rplaced LPC17xx with LPC17xx/LPC40xx in .c files
* Replaced LPC17xx with LPC17xx/LPC40xx in .h files
* Updated some documentation
* Working on moving directories
* moved arch/arm/src/lpc17xx and arch/arm/include/lpc17xx to lpc17xx_40xx
* Renamed LPC17_* constants / configuration options to LPC17_40_*
* Updated chip family name defines
* Renamed some chip-specific files
* Updated references to renamed files
* Updated references to lpc17_ to lpc17_40_
* Renamed source files from lpc17_* to lpc17_40_*
* Clean up white space
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-11 16:50:00 +00:00