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
Senthil Ramakrishnan
04ec07c017
Fix bracket placements
2018-08-22 15:00:03 +02:00
Senthil Ramakrishnan
d9036865d8
Remove explicit initialize API and coding style fixes
2018-08-22 15:00:02 +02:00
Senthil Ramakrishnan
0f7cc36f69
Changing config and return definitions to adhere to HAL defs
2018-08-22 15:00:02 +02:00
Senthil Ramakrishnan
9deecacc9b
Fix code style issues
2018-08-22 15:00:01 +02:00
Senthil Ramakrishnan
16d121c5d2
Review fixes and doxygen changes
2018-08-22 15:00:00 +02:00
Senthil Ramakrishnan
219d0c6e70
QSPI driver implementation
2018-08-22 15:00:00 +02:00
deepikabhavnani
986411ccb0
Add thread safety to CRC class
...
Thread safety is added to serialize the hardware CRC and will not
impact the software CRC.
2018-08-21 15:26:05 -05:00
Aashish chaddha
c07e29bd2a
The messageID for CAN constructor needs to be unsigned to avoid unnecessary implicit casting
2018-08-21 12:32:22 -05:00
deepikabhavnani
7885edb671
Template specialization didnt work after addition of default constructor
...
Template specialization didn't work after addition of default constructor
for unsupported polynomials. Since the argument type and count are same,
compiler always selects the default constructor.
2018-08-14 15:47:44 -05:00
Nir Sonnenschein
ec4c33ca80
Merge pull request #7735 from deepikabhavnani/crc_lfs
...
Optimized CRC implementation - (32-bit ANSI polynomial)
2018-08-14 19:45:03 +03:00
deepikabhavnani
f593555cbb
Guard hardware related implementation into DEVICE_CRC
2018-08-09 17:28:19 -05:00
deepikabhavnani
531a83ebd2
Add optimized implementation of 32-bit ANSI CRC
2018-08-09 17:27:07 -05:00
David Saada
535b196ab2
FlashIAP: Add a ROM end macro
2018-08-06 15:54:10 +03:00
Kevin Bracey
0f98338153
Improve efficiency and formatting of ITM output
...
SerialWireOutput was outputting 1 character per 32-bit write to the
ITM stimulus port. This is inefficient, and causes processing problems
with some viewers due to them receiving 3 NUL bytes between each
desired character.
Rework to allow us to be more efficient, and eliminate those NUL bytes:
* Retain existing mbed_itm_send() and clarify it's a single 32-bit write.
* Add new mbed_itm_send_block() that is appropriate for sending
character data, and modify SerialWireOutput to use it.
* Move "wait for FIFO ready" check to before the write, rather than
after.
One minor correction - FIFOREADY is a single bit of the register read.
Don't interpret reserved bits.
2018-07-04 10:16:28 +03:00
Martin Kojtal
700e6df834
drivers: astyle update
2018-06-29 10:36:36 +01:00
deepikabhavnani
e19f6ac4dd
Suppress warning for IAR compiler as well
2018-06-19 11:36:42 -05:00
ccli8
f51d036ecd
Fix mbed_crc_ctor is missing in some MbedCRC constructor
...
This error leaves MbedCRC/_mode uninitialized and may cause mbed-os-tests-mbed_drivers-crc/
Test SD CRC polynomials failed.
2018-06-01 09:49:33 +08:00
Bartek Szatkowski
6e9f04bf2f
Rename DEVICE_LOWPOWERTIMER to DEVICE_LPTICKER
...
That's to match DEVICE_USTICKER.
2018-05-25 12:20:09 -05:00
Steven Cartmell
d53ffb7022
HAL CRC: Fix inverted CRC mode selection
2018-05-24 17:51:49 +01:00
Steven Cartmell
8e14b5977b
HAL CRC: Add bit width parameter to crc_config_t
2018-05-24 17:51:49 +01:00
Steven Cartmell
e1ca2b32fc
Add CRC configuration options to HAL API
2018-05-24 17:51:49 +01:00
Steven Cartmell
5847f0c975
Fix CRC class coding conventions
2018-05-24 17:51:48 +01:00
Steven Cartmell
e0d98bfe2c
Adapt MbedCRC class to support Hardware CRC
...
- Move CRC polynomial enum into HAL layer, so it's accessible from platform
implementations
- Add enum to CRC class to indicate which mode the CRC class should use:
HARDWARE, TABLE, or BITWISE
- Add calls to HAL Hardware CRC API to each of the compute functions when the
class is in HARDWARE mode.
- Add missing constructor call to template constructor, and remove const from
delegating constructor.
2018-05-24 17:50:12 +01:00
Cruz Monrreal
a301db5d43
Merge pull request #6791 from kjbracey-arm/fcntl
...
Add POSIX fcntl flag support
2018-05-21 17:17:02 -05:00
David Saada
9cdecf4d5a
FlashIAP: Fix problem of programming source buffer not aligned to uint32_t
2018-05-10 12:00:29 +03:00
Kevin Bracey
59f49e2b96
Add `is_blocking()` method to FileHandle
...
There was no way to check current blocking state, so no way to modify
and restore status.
Also have default FileHandle::set_blocking() used by real files return a
correct error code when asked for non-blocking, and success when asked
for blocking.
These were minor omissions that are required to implement POSIX fcntl
properly.
fixup! Add `is_blocking()` method to FileHandle
2018-05-03 15:38:33 +03:00
Paul Thompson
d6c5f16fd3
Eliminate complier warning and remove superfluous call to empty()
...
Appears when complied with -O3 optimization level
Compile: UARTSerial.cpp
../drivers/UARTSerial.cpp: In member function 'void mbed::UARTSerial::tx_irq()':
../drivers/UARTSerial.cpp:314:31: warning: 'data' may be used uninitialized in this function [-Wmaybe-uninitialized]
SerialBase::_base_putc(data);
2018-04-16 07:23:47 -07:00
Martin Kojtal
501953b1a4
Merge pull request #6442 from deepikabhavnani/crc_test
...
Add test for MbedCRC.h
2018-04-06 10:46:52 +02:00
Martin Kojtal
3328ecd92a
Merge pull request #6531 from SenRamakri/sen_DeprecatedFixes
...
Fix doxygen comments to reflect the deprecated functions
2018-04-06 10:06:31 +02:00
Russ Butler
1b58e58e1a
Fix deep sleep locking for Timeout class
...
Detach in the Timeout::handler so deep sleep is properly unlocked.
2018-04-03 15:46:10 -05:00
Senthil Ramakrishnan
194b89cce6
Fix doxygen comments to reflect the deprecated functions
2018-04-03 14:10:39 -05:00
Deepika
331620e1d0
Default constructor for template class should be part of header file
2018-03-23 14:55:07 -05:00
Cruz Monrreal
801f27efcf
Merge pull request #6239 from bmcdonnell-ionx/interrupt-in-pin-mode
...
Interrupt in pin mode
2018-03-23 12:00:36 -05:00
George Beckstein
d3ab5c7e59
Added SerialWireOutput to mbed namespace
2018-03-22 12:35:54 -04:00
Brendan McDonnell
8d2214fa6e
linebreaks
2018-03-21 11:18:54 -04:00
Brendan McDonnell
895e19ae0f
Restore single-param InterruptIn ctor, to maintain binary compatibility (for Wi-Fi drivers).
...
Revert "simplify InterruptIn - default parameter instead of multiple constructors"; add comment.
This reverts commit d28dbf6702
.
2018-03-21 11:18:42 -04:00
Cruz Monrreal
9cac3b2f6b
Merge pull request #6149 from bmcdonnell-ionx/typos
...
Fix typos in the files
2018-03-15 10:53:03 -05:00
Cruz Monrreal
9ddb092d43
Merge pull request #6230 from bulislaw/system_reset
...
Add system_reset call
2018-03-01 10:31:07 -06:00
Brendan McDonnell
087b4281f6
linebreak
2018-03-01 11:13:22 -05:00
Brendan McDonnell
e4bf6c47ff
add doxygen param info
2018-03-01 11:13:19 -05:00
Brendan McDonnell
d28dbf6702
simplify InterruptIn - default parameter instead of multiple constructors
2018-02-28 14:42:43 -05:00
Brendan McDonnell
dfa6a7aa97
factor out common function
2018-02-28 14:02:05 -05:00
Brendan McDonnell
35308c1937
overload InterruptIn constructor to allow PinMode control
2018-02-28 14:00:50 -05:00
Cruz Monrreal
3d1174a215
Merge pull request #5911 from deepikabhavnani/common_crc
...
CRC class implementation
2018-02-28 11:53:54 -06:00
Bartek Szatkowski
4cb47df40a
Add system_reset() function to Mbed OS
2018-02-28 16:42:34 +00:00
deepikabhavnani
b60eb1d001
Updated table to be const and small fixes
2018-02-27 09:35:55 -06:00
Cruz Monrreal
3d37d819e9
Merge pull request #5046 from fkjagodzinski/timerevent_tests
...
TimerEvent tests
2018-02-26 15:02:52 -06:00
Filip Jagodzinski
7f73785b9a
Drivers: TimerEvent: Update API docs
2018-02-23 09:13:35 +01:00
David Saada
0aeeece97d
FlashIAP driver modifications:
...
- Support programming across sectors.
- Support program size not aligned to page size.
- Fix validations on sector erase.
2018-02-22 22:48:29 +02:00