Commit Graph

303 Commits (b69dc2bdae61bb0401ea98d7d565640c7ca33be0)

Author SHA1 Message Date
Mel W fae81b698b
One more missing period. 2018-10-26 10:45:38 +03:00
Mel W 782251a089
Adding periods 2018-10-26 10:45:05 +03:00
Cruz Monrreal II ec9404a32e Merge branch 'fix_doxygen_MBedCRC' of ssh://github.com/maciejbocianski/mbed-os into rollup 2018-10-25 21:49:45 -05:00
Christopher Haster fa09fff283 Fix interleaved ifdefs with DEVICE_SPI_ASYNCH + DOXYGEN_ONLY 2018-10-25 11:33:17 -05:00
Paul Szczepanek 889a98e4f5
Update SPI.h 2018-10-25 11:34:30 +01:00
Martin Kojtal e9f98906d7 crc: fix crc mode coding style 2018-10-25 09:58:17 +01:00
paul-szczepanek-arm efdcdd5450 active voice 2018-10-24 09:56:53 +01:00
paul-szczepanek-arm d4b6fdc1ec SPI capitalisation 2018-10-24 09:26:10 +01:00
paul-szczepanek-arm 68628c1178 fix syntax err from misplaced ifdef 2018-10-24 08:49:07 +01:00
Maciej Bocianski 394df128fb MbedCRC doxygen fix 2018-10-24 09:33:37 +02:00
Cruz Monrreal II 0e2983e539 Merge branch 'doc-fix-i2c_slave' of ssh://github.com/paul-szczepanek-arm/mbed-os into rollup 2018-10-23 22:38:33 -05:00
Cruz Monrreal II 2274fc8bc1 Merge branch 'doc-fix-spi_slave' of ssh://github.com/paul-szczepanek-arm/mbed-os into rollup 2018-10-23 22:38:32 -05:00
paul-szczepanek-arm 263f067da4 imperative 2018-10-23 17:32:03 +01:00
paul-szczepanek-arm 482f2b6d07 spi doxygen fixes 2018-10-23 17:26:38 +01:00
Amanda Butler 7637c61d9d
Edit SPISlave.h
Make minor edits to existing text.
2018-10-23 09:20:22 -05:00
Amanda Butler 7fa3a44cc3
Copy edit I2CSlave.h
Make minor copy edits.
2018-10-23 09:13:52 -05:00
paul-szczepanek-arm f9ae6a37b1 hide protected 2018-10-23 14:49:37 +01:00
paul-szczepanek-arm 68929ce94b doxygen cleanup 2018-10-23 14:47:25 +01:00
paul-szczepanek-arm 52a0b649bc fix documentation and example 2018-10-23 12:03:59 +01:00
Thomas Kemmer fdc675441a Clean up UARTSerial.cpp includes. 2018-10-21 15:35:40 +02:00
Cruz Monrreal II 660bc2d446 Merge branch 'doc_fix_pwm' of ssh://github.com/TacoGrandeTX/mbed-os into rollup 2018-10-18 20:01:39 -05:00
Cruz Monrreal II 9cd5cbdb15 Merge branch 'writeathon' of ssh://github.com/yennster/mbed-os into rollup 2018-10-18 20:01:37 -05:00
Cruz Monrreal 6ce8f2fce8
Merge pull request #8421 from TacoGrandeTX/doc_fix_portout
PortOut.h: Documentation improvements only
2018-10-18 12:28:18 -05:00
Cruz Monrreal e698f0b29f
Merge pull request #8076 from kjbracey-arm/error_stderr
Error output improvements
2018-10-18 08:39:17 -05:00
Cruz Monrreal 4600c85611
Merge pull request #8442 from evva-sfw/bug/missing-define
Add missing define in drivers/SerialWireOutput.h
2018-10-17 09:33:18 -05:00
Kevin Bracey c989845d5a mbed_error_vfprintf -> mbed_error_vprintf
Name vfprintf doesn't make sense - if we have mbed_error_printf, this is
vprintf.
2018-10-17 12:55:20 +03:00
Kevin Bracey 1094c08129 Add support for UARTSerial::write from critical section 2018-10-17 12:55:20 +03:00
Cruz Monrreal 996a31f9d8
Merge pull request #8419 from TacoGrandeTX/doc_fix_portin
PortIn.h: Documentation improvements only
2018-10-16 16:18:50 -05:00
welaZat 88f30ccbbb Added missing define in drivers/SerialWireOutput.h 2018-10-16 14:11:15 +02:00
Jenny Plunkett 383798b525 Revert "Remove note about Stream/Serial deprecation"
This reverts commit 5ee5b071ab.
2018-10-15 14:42:45 -05:00
Cruz Monrreal ec03df4823
Merge pull request #7980 from kjbracey-arm/thread_deprecations
Clean up rtos::Thread deprecation warnings
2018-10-15 10:09:55 -05:00
Cruz Monrreal e0e915f5db
Merge pull request #8423 from cmonr/rollup2
Rollup PR: Additional doc PRs + lingering need:CI PRs
2018-10-15 10:04:04 -05:00
Cruz Monrreal II 46e4cb2b9d Merge branch 'doxy-rm-protected' of ssh://github.com/ARMmbed/mbed-os into ARMmbed-doxy-rm-protected 2018-10-12 21:46:57 -05:00
RFulchiero 7ea75edc7c PortOut.h: Documentation improvements only
* Improve function and parameter descriptions
2018-10-12 17:11:06 -05:00
RFulchiero bdcf24b82f PortIn.h: Documentation improvements only
* Improve function and parameter descriptions
* Improve clarity of the example
2018-10-12 16:14:32 -05:00
kegilbert e51169e3c8 Remove protected members from doxy in Analog/Digital classes
- Add example snippets to Analog/Digital read/write overrides
2018-10-12 15:08:51 -05:00
Amanda Butler 19472ff154
Copy edit I2C.h
Edit existing text.
2018-10-12 14:56:01 -05:00
Naveen Kaje 19c91081c6 I2C.h: Update documentation, example and formatting
Change the example to a more elaborate implementation.
Fix formatting and update documentation.
2018-10-12 13:50:53 -05:00
Jenny Plunkett b31bc766e6
Add note about default baud rate is 9600 2018-10-12 13:40:23 -05:00
Jenny Plunkett 5ee5b071ab Remove note about Stream/Serial deprecation 2018-10-12 13:22:49 -05:00
Jenny Plunkett 9a7f359ab5 Add (Not Connected) 2018-10-12 13:22:14 -05:00
RFulchiero a6a2852f13 Documentation improvements only
- Prevent protected attributes from appearing on docs site.
- Standardize units of time (microsecond, millisecond).
- Improve example description.
2018-10-12 13:21:18 -05:00
Jenny Plunkett 20f913a06e Remove Serial protected member functions and attributes 2018-10-12 13:20:02 -05:00
Jenny Plunkett 84dad6ce53 Remove RawSerial protected member functions 2018-10-12 13:18:11 -05:00
Naveen Kaje acabbebdb4 I2C.h: Remove protected attributes from appearing on docs site 2018-10-12 12:08:09 -05:00
Cruz Monrreal II 9489972a3e Merge branch 'timer_doc_update' of ssh://github.com/naveenkaje/mbed-os into naveenkaje-timer_doc_update 2018-10-12 12:07:25 -05:00
Cruz Monrreal II bfc3c95905 Merge branch 'ticker_doc' of ssh://github.com/aashishc1988/mbed-os into aashishc1988-ticker_doc 2018-10-12 12:07:19 -05:00
Cruz Monrreal II 8ebfafe60d Merge branch 'interruptin_doc_update' of ssh://github.com/naveenkaje/mbed-os into naveenkaje-interruptin_doc_update 2018-10-12 12:07:17 -05:00
Cruz Monrreal II b7e022d659 Merge branch 'kegilbert-patch-1' of ssh://github.com/ARMmbed/mbed-os into ARMmbed-kegilbert-patch-1 2018-10-12 12:07:14 -05:00
Cruz Monrreal II b480a892b0 Merge branch 'doc_updates' of ssh://github.com/deepikabhavnani/mbed-os into deepikabhavnani-doc_updates 2018-10-12 12:07:12 -05:00
Amanda Butler 985cd70243
Edit InterruptIn.h
Make minor grammar edits.
2018-10-12 11:19:34 -05:00
Amanda Butler be4985e87e
Edit Ticker.h
Make minor copy edits to existing text.
2018-10-12 11:16:32 -05:00
Amanda Butler 648eb39f74
Copy edit Timer.h
Copy edit existing text for minor grammar issues.
2018-10-12 11:01:11 -05:00
Aashish chaddha a9ce00bb4d fixed a mistake where I was adding "can not supprted" error at wrong place 2018-10-12 10:16:32 -05:00
Naveen Kaje 615ae0b2ec Timer.h: Update comments 2018-10-12 10:09:36 -05:00
Aashish chaddha f0a4451054 fix critical bug where I was hiding a lot more class members than i should. Add "CAN_NOT_SUPPORTED" guard to header instead of example 2018-10-12 10:01:38 -05:00
Naveen Kaje feb3833e4b Timer.h: Remove protected attributes from rendering on docs site 2018-10-12 09:51:53 -05:00
Kevin Bracey 1ef213ec89 Clean up Thread deprecation warnings
Static Thread methods and signal methods have been deprecated. Remove
all references in the main code, and most of the tests. Some tests of
the deprecated APIs themselves remain.
2018-10-12 14:57:13 +03:00
Aashish chaddha a92066858b improve ticker doc 2018-10-11 17:05:35 -05:00
Naveen Kaje 3ab4f76d4c InterruptIn.h: Update comments 2018-10-11 16:40:18 -05:00
Naveen Kaje 0235838be8 InterruptIn: Remove protected attributes from rendering on docs site 2018-10-11 16:18:09 -05:00
Kevin Gilbert a28d1c0cfc
Fix minor typo 2018-10-11 15:17:27 -05:00
deepikabhavnani 7b7576feb2 Correct the param descritions of QSPI 2018-10-11 14:41:18 -05:00
Aashish chaddha 21136cafcc improve can documentation 2018-10-11 12:39:46 -05:00
deepikabhavnani 1918904e91 QSPI: Remove protected member functions from rendering on docs site, but keep them in the code. 2018-10-11 10:12:39 -05:00
Cruz Monrreal fd4f47d18f
Merge pull request #8109 from deepikabhavnani/i2c_recovery
Add reset recovery for I2C bus
2018-10-08 10:27:04 -05:00
Martin Kojtal ea2dec01be
Merge pull request #8090 from deepikabhavnani/spi_4969
Cleanup SPI constructor and destructor
2018-10-05 11:17:56 +02:00
Martin Kojtal 9b0e5346cc
Merge pull request #7975 from tkem/fix/timer-read-range
Use high resolution time for Timer::read().
2018-10-01 11:46:18 +02:00
Martin Kojtal 3d94fb889b
Merge pull request #7903 from tkem/fix/cleanup-include-paths
Clean up include paths.
2018-09-19 12:16:09 +02:00
deepikabhavnani 0ef5d92d92 Addressed review comments 2018-09-14 10:26:03 -05:00
deepikabhavnani 0a9ff20658 Cleanup SPI constructor and add destructor
_acquire() is not required in constructor, since we are not performing
any operation on SPI bus yet. Just initialize the pins/hw

Destructor is required to clear _owner else SPI format/frequency will not be
set if object is recreated. We do not free SPI bus, but init again in hardware
may or may not change frequency/format.

```
{
    SPI spi1(...);
    spi1.transfer(...);
}
{
    SPI spi1(...);
    spi1.transfer(...);
}
```
2018-09-12 17:22:30 -05:00
Deepika ccb08a3fa1 Added reset recovery for I2C
Hardware Reset API should do the recovery of I2C bus,
but in absence of reset pin connected to slave device we need
software recovery of I2C bus.
2018-09-12 16:36:12 -05:00
Martin Kojtal acb59c4538
Merge pull request #7991 from maciejbocianski/qspi_driver_docs_fix
fix example code in QSPI.h
2018-09-07 10:47:42 +02:00
Cruz Monrreal 2ec889f580
Merge pull request #8015 from maciejbocianski/qspi_driver_fixes
QSPI driver: API parameters fix
2018-09-06 17:07:34 -05:00
Maciej Bocianski 99be98c8d0 QSPI driver: API parameters fix 2018-09-06 09:00:09 +02:00
Maciej Bocianski ff9ef2bbb9 fix example code in QSPI.h 2018-09-05 15:43:29 +02:00
Thomas Kemmer 9c4ec9cfae Use high resolution time for Timer::read(). 2018-09-03 20:54:27 +02:00
Christopher Haster 43651dfcdf
CRC: Removed assertion on NULL buffer
When length is zero, the buffer is not accessed. The CRC functions are used
inside several other layers where a 0-length buffer may have meanings in
different contexts and being able to pass 0-length NULL buffers to CRC as a
noop simplifies the code.
2018-09-03 09:20:47 -05:00
Deepika 4d7fdfc2a9 Use MbedCRC for LittleFS (0xEDB88320)
CRC used in LittleFS is Reversed ANSI, hence new polynomial added.
Reversed polynomials perform shift in reverse direction of standard
polynomial, and we do not have option to notify reverse shift to hardware.
Hence this option is available in software only.
2018-09-02 15:25:40 -05:00
Cruz Monrreal 1e3e69463f
Merge pull request #7781 from deepikabhavnani/crc_safety
Add thread safety to CRC class
2018-08-29 15:42:23 -05:00
Cruz Monrreal 3f5cd54948
Merge pull request #7891 from tkem/fix/remove-unnnecessary-includes
Remove unused cmsis includes.
2018-08-28 09:09:15 -05:00
Thomas Kemmer a16c374725 Clean up include paths. 2018-08-27 20:47:19 +02:00
Cruz Monrreal e2409bfdfe
Merge pull request #7848 from aashishc1988/CanMessengerBug
Message ID in CAN constructor needs to be unsigned
2018-08-27 10:29:15 -05:00
Thomas Kemmer 59ce33f7e8 Remove unused cmsis includes. 2018-08-25 23:57:16 +02:00
Maciej Bocianski 883ea2f1d1 astyle fixes on QSPI API/driver/tests 2018-08-22 15:02:15 +02:00
Maciej Bocianski ad49388888 QSPI driver: fixes after PR 7783 review
- make QSPI::lock and QSPI::unlock protected
- fix QSPI::_initialize return value
- add assert on QSPI::_initialize failure
- minor comments fixes
2018-08-22 15:02:14 +02:00
adustm 0714ac350f Revert "Dummy cycles count is not an init parameter, but a command parameter."
This reverts commit f1ad089660.
2018-08-22 15:00:21 +02:00
adustm 2b234c2902 Move _mode from QSPI::configure_format to QSPI::QSPI
QSPI::configure_format shall not call initialize function.
This way, QSPI::configure_format can be called any time,
only to change the format of commands.
It must contain only parameters for the commands, not for the Init function
2018-08-22 15:00:20 +02:00
adustm 8d2f426d97 Dummy cycles count is not an init parameter, but a command parameter.
It can change depending on the chosen command, not only at start.
This way we avoid to launch init function and break the internal status variables.
2018-08-22 15:00:19 +02:00
Martin Kojtal d54bac2207 QSPI: add address to command transfer 2018-08-22 15:00:18 +02:00
Martin Kojtal 41453169a0 QSPI: fix memset header file missing 2018-08-22 15:00:17 +02:00
Martin Kojtal 784c473f63 QSPI HAL: add disabled flag to format phase
If phase is being skipped, set disabled to true, otherwise false.
2018-08-22 15:00:08 +02:00
Martin Kojtal b71f2a15ea QSPI: fix alt size NONE instead 0 2018-08-22 15:00:07 +02:00
Martin Kojtal 910f1a8884 QSPI: fix driver style issues 2018-08-22 15:00:07 +02:00
Martin Kojtal 3db3364821 QSPI: fix arguments for write/read when alt is defined
Should be: instr, alt, address or inst, addr or just addr
2018-08-22 15:00:06 +02:00
Martin Kojtal 1557ce37f1 QSPI: remove spaces on empty lines 2018-08-22 15:00:05 +02:00
Martin Kojtal 0612ab2292 QSPI: remove initialize method
Not used anymore, not defined. ctor default initializes the object
2018-08-22 15:00:05 +02:00
Martin Kojtal 6274cd4597 QSPI: fix address size for build qspi command
if address is skipped, used size NONE
2018-08-22 15:00:04 +02:00
Senthil Ramakrishnan 894f8bdf9f Review fixes 2018-08-22 15:00:04 +02:00
Senthil Ramakrishnan 273cf05d92 Minor optimizations and code style fixes 2018-08-22 15:00:04 +02:00