Vincent Coubard
3aa4bf4346
Platform: fix end of line whitespace
2017-11-14 10:06:38 +00:00
Bartosz Szatkowski
048a896741
Update definitions of CPSR modes
2017-11-10 09:53:41 +00:00
Bartek Szatkowski
855844f5a1
Update CThunk to support new CMSIS Cortex A ops
2017-11-10 09:53:41 +00:00
Martin Kojtal
589d76e59f
Merge pull request #5058 from 0x6d61726b/patch-2
...
CircularBuffer(): get available transactions
2017-11-09 16:54:59 +00:00
Martin Kojtal
fbd9e7eaf2
Merge pull request #5372 from SenRamakri/sen_PlatformDoxygenUpdates
...
Doxygen comments fixes
2017-11-09 16:38:45 +00:00
Jimmy Brisson
6912a9dc0d
Merge pull request #5393 from c1728p9/call_chain_deprecation
...
Deprecate CallChain and InterruptManager
2017-11-02 11:10:52 -05:00
Jimmy Brisson
551a2a3c66
Merge pull request #5373 from ARMmbed/g-fix-nodev-errno
...
fs: Correct errno when not finding a mounted filesystem
2017-11-02 10:40:19 -05:00
0x6d61726b
830db6a5a0
code style adopted
2017-10-31 16:07:33 +01:00
Senthil Ramakrishnan
37214ab695
Fix comments on mbed_assert.h
2017-10-27 15:38:44 -05:00
Russ Butler
891b06e61b
Deprecate CallChain
...
This patch deprecates the CallChain class since it is an
internal API (not in mbed.h) and is only being used by
InterruptManager which is also deprecated.
2017-10-27 14:55:49 -05:00
Senthil Ramakrishnan
3ad298488c
Doxygen comment updates and fixes
2017-10-26 15:36:26 -05:00
Christopher Haster
400c25466d
fs: Corrected errno when not finding a mounted filesystem
2017-10-24 11:52:06 -05:00
0x6d61726b
c1ab43ce76
Code style updated
2017-10-20 22:06:01 +02:00
Christopher Haster
32faaf65ee
Change FileSystemHandle group to platform
...
Was drivers, should be platform, wasn't updated during move
2017-10-16 17:46:40 -05:00
Jimmy Brisson
493e3788e3
Merge pull request #5216 from kjbracey-arm/UARTSerial_wait
...
Avoid wait_ms() spin
2017-10-13 09:20:41 -05:00
Jimmy Brisson
a67737f993
Merge pull request #5086 from pan-/systick_sleep_fix
...
Sleep: Disallow sleep for targets turning off the systick clock at sleep entry
2017-10-13 09:19:10 -05:00
Jimmy Brisson
fad67559ae
Merge pull request #5028 from c1728p9/ticker_api_changes
...
Update ticker to map closely to hardware
2017-10-13 09:18:02 -05:00
Anna Bridge
7b2b18f92f
Merge pull request #5204 from geky/fix-retarget-defs
...
fs: Add missing retarget definitions for ARM/IAR
2017-10-06 11:53:05 +01:00
0x6d61726b
69e6f11c2d
updates according to comments in pull request
2017-10-05 20:47:31 +02:00
Russ Butler
6452821e2e
Add default implementation of timer info
...
Add weak implementations of *_ticker_get_info which returns 1MHz and
a width of 32 bits. This allows the updated Ticker API to work with
existing devices.
Note - in the future when all targets have implemented
*_ticker_get_info these weak functions will be removed.
2017-10-05 11:57:34 -05:00
Jimmy Brisson
0dc264fa86
Merge pull request #5212 from SenRamakri/sen_ATCmdParserChanges2
...
Merging changes from ATParser towards parser unification
2017-10-05 11:14:37 -05:00
Jimmy Brisson
da138f20d7
Merge pull request #5203 from geky/fix-fstat-newlib
...
fs: Fix fstat retarget for regular files
2017-10-05 11:13:42 -05:00
Jimmy Brisson
a0b624b62e
Merge pull request #5038 from chrissnow/LPC1768-Bootloader
...
Lpc1768 bootloader support
2017-10-05 11:11:08 -05:00
Kevin Bracey
de4ced33a6
Make poll() use wait(1) rather than yield()
...
Spinning while polling is overly CPU intensive, and inconsistent with
the current blocking behaviour of UARTSerial.
Change to use Thread::wait(1) to match UARTSerial.
2017-10-03 10:56:19 +03:00
Christopher Haster
e9cd239ac3
fs: Added in missing retarget definitions for ARM/IAR
...
- missing O_ flags
- missing S_IF flags
- missing system types
- missing stat structure
- exhaustive list of errno codes
2017-10-02 16:12:22 -05:00
Russ Butler
f0ac234da7
Prevent DeepSleepLock from leaving sleep locked
...
Add _lock_count to DeepSleepLock and use this to prevent deep sleep
from staying locked when the DeepSleepLock objected is destroyed after
an unbalanced number of calls to lock and unlock.
2017-10-02 11:34:56 -05:00
Senthil Ramakrishnan
3e1459b691
Merging changes from ATParser got AT parser unification
2017-10-02 10:03:58 -05:00
Senthil Ramakrishnan
7ffa3ddaaf
Merging changes from ATParser towards parser unification
2017-10-02 10:03:58 -05:00
Chris Snow
fb27e71894
Implement MBED_USED
2017-09-30 19:26:11 +01:00
Russ Butler
114d60c8ed
Remove direct use of us ticker from platform
...
Update platform code to use the ticker common layer rather than using
HAL us ticker directly. This both ensures that the underlying ticker
is properly initialized and that the value read is in microseconds with
full 32-bit range.
2017-09-29 09:21:00 +01:00
Jimmy Brisson
01c864e9bb
Merge pull request #5099 from mprse/move_clock_function
...
Move clock() function from mbed_rtc_time.cpp to mbed_retarget.cpp.
2017-09-28 14:05:35 -05:00
Jimmy Brisson
5bf224f1bf
Merge pull request #5027 from geky/cb-fix-eq
...
cb: Fix uninitialized memory used for equality check
2017-09-27 15:14:59 -05:00
Przemyslaw Stekiel
035c0896ed
Move clock() function from mbed_rtc_time.cpp to mbed_retarget.cpp.
2017-09-27 15:32:41 +02:00
Christopher Haster
01326910c0
fs: Fixed fstat retarget for regular files
...
GCC's newlib library depends on fstat to get in-flight information about
a file's type an size. A working fstat for regular files is needed for
seek and related functions to work correctly.
2017-09-26 21:41:13 -05:00
Martin Kojtal
6a46b9c0a7
Merge pull request #5165 from pan-/non-throwing-new-operator
...
Platform: Replace non throwing versions of new operator.
2017-09-26 15:08:18 +01:00
Vincent Coubard
017b8f0fc7
Platform: Replace non throwing versions of new operator.
...
This change prevents inclusion of non throwing versions of the new operator from
the compiler standard library. On GCC, the non throwing version bring with it
some portion of the exception support code.
2017-09-21 18:37:25 +01:00
Deepika
459e7d4725
IAR heap stats added
2017-09-18 10:24:01 -05:00
Anna Bridge
7b428916f5
Merge pull request #4949 from theotherjimmy/feature-armc5+armc6
...
NEW TOOLCHAIN: Add the ARMC6 Compiler
2017-09-13 10:39:15 +01:00
Vincent Coubard
682816d86e
Sleep: Disallow sleep for targets turning of the systick clock at sleep entry.
...
When the RTOS is present and the tickless mode is not implemented, it is
expected that the next tick issued by the Systick timer will wake up the MCU.
However nothing prevents an implementation of the ARM architecture to gate the
systick clock signal upon sleep entry.
Therefore on those targets sleep shall be prohibited if the RTOS is present and the
tickless mode is not implemented.
To ease life of porters , a new option has been added in the device add list:
STCLK_OF_DURING_SLEEP. This option expose that the target turn of the systick
clock during sleep.
Targets which exhibit such behavior shall add this define in their device_has list.
2017-09-13 10:28:02 +01:00
Jimmy Brisson
41a6197208
Update mbed 2 discriminator
2017-09-11 13:20:33 -05:00
Jimmy Brisson
b22a174c39
Correct semihosting check for ARMC6
2017-09-11 13:20:32 -05:00
Jimmy Brisson
15a9a0382b
Enable Compiling with ARMC6 across all targets
...
remove duplicate sys.cpp
2017-09-11 13:20:32 -05:00
Jimmy Brisson
922bf1b619
Update mbed OS to handle ARMC6 requirements
2017-09-11 13:20:32 -05:00
Deepika
9422c351e4
Initial RTX and tools support for Cortex M-23/M-33 devices
2017-09-11 11:43:26 -05:00
Anna Bridge
cab660d980
Merge pull request #4938 from deepikabhavnani/IAR_fixes
...
Update IAR to version 8
2017-09-11 17:28:38 +01:00
0x6d61726b
839cd7ee70
CircularBuffer(): get available transactions
...
This implementation returns the number of available (stored) transactions in the buffer
2017-09-08 15:33:14 +02:00
Martin Kojtal
bc704427e2
platform: add DeepSleepLock
...
RAII object for disabling, then restoring the deep sleep mode
2017-09-07 15:35:06 +01:00
Martin Kojtal
cb4e9b32a2
Sleep HAL: add sleep manager API
...
Sleep manager provides API to lock/unlock deepsleep. This API allows a user to
control deep sleep.
This API should be done via atomic operations (to be IRQ/thread safe).
2017-09-07 15:34:47 +01:00
Deepika
7d98eebf2a
__IAR_SYSTEMS_ICC__ macro had issues when 7.5 and 8.11 both workbench are installed
2017-09-06 09:51:17 -05:00
Deepika
bcb8779362
Internal members of std::FILE are not available from IAR8.x
2017-09-06 09:51:15 -05:00
Deepika
38e96ac432
__aeabi_read_tp function required for TLS in Dlib
2017-09-06 09:51:15 -05:00
Christopher Haster
382c0381c9
cb: Fixed uninitialized memory used for equality check
...
Fixed by zeroing the memory. A more "c++ correct" approach
may be to add an additional op for equality, and use the "=="
operator on the F type in the generate function. But this adds
the requirement that F supports equality.
2017-09-05 11:03:14 -05:00
Martin Kojtal
4ccff693ae
Merge pull request #4962 from 0xc0170/dev_critical_section
...
platform: add CriticalSectionLock
2017-09-04 16:50:59 +01:00
Jimmy Brisson
2d65f49f61
Merge pull request #4954 from c1728p9/fix_isr_clear
...
Fix ISR powerdown in mbed_application.c
2017-08-29 13:46:25 -05:00
Martin Kojtal
be8174f94f
platform: add CriticalSectionLock
...
Critical section class RAII addition
2017-08-29 12:47:04 +01:00
Jimmy Brisson
7252447385
Merge pull request #4920 from scartmell-arm/led-error-sequence
...
Modify LED error sequence to be more recognisable
2017-08-24 10:14:13 -05:00
Jimmy Brisson
dd0a0fc3e7
Merge pull request #4831 from fahhem/less_scanf
...
Remove excessive use of printf/scanf in mbed_fdopen/_open
2017-08-24 10:12:10 -05:00
Russ Butler
29ad5bb09b
Fix ISR powerdown in mbed_application.c
...
Fix a calculation error in in powerdown_nvic preventing the last
group of 32 interrupts from getting powered down. The ARMv7m reference
manual states "the total number of interrupt lines is up
to (32*(INTLINESNUM+1)).".
Also rename isr_count to isr_groups_32 for clarity, since this is
actually the number of 32 interrupt groups.
2017-08-22 10:54:18 -05:00
Jimmy Brisson
a457fe3bdd
Merge pull request #4908 from geky/fs-reformat
...
fs: Add FileSystem::reformat
2017-08-21 10:38:00 -05:00
Jimmy Brisson
2dc4bef010
Merge pull request #4902 from deepikabhavnani/macro_fix
...
Using CMSIS/RTX Exclusive access macro
2017-08-17 10:11:03 -05:00
Steve Cartmell
9c87f5936c
Unified the LED error pattern for all boards
...
- Removed the patterned LED sequence, all boards now use the 4 fast pulse, 4 slow pulses LED sequence.
- Changed the LED used from LED_RED to LED1. Only 58/174 targets seem to define LED_RED but they all define LED1.
- Removed all ERROR_RED and ERROR_PATTERN definitions from targets/targets.json
2017-08-16 11:55:24 +01:00
Christopher Haster
cb2306c085
retarget: Added ENODEV to error codes
2017-08-14 17:32:08 -05:00
Jimmy Brisson
99a8467b70
Merge pull request #4817 from c1728p9/move_rtx_handlers
...
Move RTX error handlers into RTX handler file
2017-08-14 11:44:19 -05:00
Deepika
74ba5f3f51
Using CMSIS/RTX Exclusive access macro
2017-08-14 10:06:17 -05:00
Fahrzin Hemmati
88f90788bf
Remove null byte at the end of fdopen's faux filename
2017-08-10 21:14:12 -07:00
Steve Cartmell
942f71a9c4
Modify LED error sequence to be more recognisable
...
The current error sequence for microcontrollers with less than 4 LEDs is
to toggle an LED at a fixed rate. Change the sequence to 4 short pulses
followed by 4 long pulses.
2017-08-09 16:15:31 +01:00
ccli8
98a79c872b
[M487] Support NuMaker-PFM-M487 board
2017-08-01 10:14:24 +08:00
Fahrzin Hemmati
af37520e42
Use MBED_STATIC_ASSERT instead of static_assert
2017-07-31 09:29:34 -07:00
Fahrzin Hemmati
199d108063
Update comments for code review
2017-07-31 09:29:34 -07:00
Fahrzin Hemmati
e5ef69a925
Remove excessive use of printf/scanf in mbed_fdopen/_open
2017-07-31 09:29:34 -07:00
Russ Butler
46f6f52299
Move RTX error handlers into RTX handler file
...
Move the RTX error handlers out of mbed_retarget.cpp and into an the
dedicated RTX handler file.
2017-07-27 10:08:39 -05:00
Jimmy Brisson
ea12d69564
Merge pull request #4790 from bulislaw/mem_stats
...
Improve documentation for memory stat ops
2017-07-27 09:46:21 -05:00
Jimmy Brisson
3ed697a36a
Merge pull request #4775 from c1728p9/fix_defines
...
Fix non-portable defines
2017-07-24 10:58:05 -05:00
Jimmy Brisson
60550c1ef0
Merge pull request #4726 from sarahmarshy/patch-11
...
Update ATCmdParser example code
2017-07-24 10:54:09 -05:00
Bartek Szatkowski
e9f78502dd
Improve documentation for memory stat ops
2017-07-20 15:56:48 +01:00
Russ Butler
c18b0e5c05
Fix non-portable defines
...
A define which expands to more defines is not portable across all
compilers and GCC warns about this. Restructure this so the behavior
is defined. This fixes the GCC warning:
"this use of "defined" may not be portable"
2017-07-18 12:04:13 -05:00
Jimmy Brisson
9cb9b9b5b5
Merge pull request #4718 from ARMmbed/g-weak-note
...
Toolchain: Add a note about weak functions and header files
2017-07-17 11:08:22 -05:00
Martin Kojtal
5a5d159a3c
Merge pull request #4666 from chrissnow/tests-mbed_hal-flash-Timing_fix
...
Fix timing issues found in "Flash - clock and cache test"
2017-07-13 16:48:32 +02:00
sarahmarshy
d8a7fe1467
Update ATCmdParser example code.
...
The previous example code was not very helpful, as it doesn't show the use of UARTSerial.
2017-07-07 16:45:01 -05:00
Christopher Haster
eb4c223dd7
Toolchain: Added a note about weak functions and header files
...
The subtlety of where to mark functions as weak created an issue for
at least one user, so added a warning in the documentation.
2017-07-07 14:33:26 -05:00
Anna Bridge
4890261c98
Merge pull request #4548 from deepikabhavnani/os_warn
...
Resolve Warnings for mbed-os-examples
2017-07-07 12:43:27 +01:00
Chris
3df42bcfb4
Toolchain independent noinline
2017-06-30 20:32:17 +01:00
Martin Kojtal
8a9f49653b
retarget: fix microlib for mbed 2
...
This is as it used to be, reverting the removal. uARM does not have any hook
that we could use for mbed sdk init and copy nvic, therefore _open is used that
should be sufficient, but not ideal.
For more information, visit https://github.com/ARMmbed/mbed-os/pull/2160/files#r76563844 .
2017-06-29 14:35:00 +01:00
Vincent Coubard
7a1e2cfc9a
platform: Replace private copy constructor and copy assignement operator by a NonCopyable tag.
...
The class concerned by this change are: ATCmdParser, CallChain, FileBase and Stream.
2017-06-20 16:23:43 +01:00
Vincent Coubard
dcbcf64830
platform: Tag classes DirHandle, FileHandle, FileLike, FileSystemHandle, FileSystemLike, LocalFileHandle, LocalFileSystem and PlatformMutex as non copyable.
...
This avoid unwanted copy of these type which is a programming error.
2017-06-20 16:23:43 +01:00
Vincent Coubard
4f7943860a
platform: Add NonCopyable class.
...
The NonCopyable template class avoid autogeneration of copy assignement
and copy construction function for classes inheriting from it.
2017-06-20 15:49:16 +01:00
Christopher Haster
6b02ceab5d
rtos: Unbreak semaphore, trade assert for saturation with original limit
...
Before rtx 5, the max count on semaphores was UINT16_MAX, aftewards it
was decreased to 1024 with an assert on overflow.
This is especially problematic for semaphores used for signaling, since
there is no replacement currently available in C++.
2017-06-16 17:18:40 -05:00
Deepika
9b5f5a5472
Typecasting to resolve warning: integer conversion resulted in a change of sign
2017-06-15 13:37:19 -05:00
Jimmy Brisson
761151359e
Merge pull request #4506 from c1728p9/disable_2_error_trapping
...
Disable error trapping for mbed 2 builds
2017-06-09 14:22:30 -05:00
Jimmy Brisson
f55a8c3088
Merge pull request #4503 from 0xc0170/fix_issue_sdk_vectors
...
mbed sdk boot: copy vectors addition
2017-06-09 14:22:12 -05:00
Martin Kojtal
a59a319483
Merge pull request #4466 from geky/cleanup
...
Clean up dead classes in retarget layer
2017-06-09 15:06:18 +01:00
Sam Grove
52fde55b6f
Merge pull request #4450 from deepikabhavnani/doxygen-template
...
Doxygen template
2017-06-08 22:42:06 -05:00
Martin Kojtal
7d3b2af9c7
mbed sdk boot: default nvic implementation
...
Latest cmsis files provide virtual nvic implementation, therefore all nvic
set/get vectors were removed. As the result, we did not reallocate vectors
for mbed SDK. This should fix it for most of the platforms (cortex m0 and
cortex a9 need to provide own if they need it).
2017-06-08 17:19:35 -05:00
Russ Butler
018955c7b2
Disable error trapping for mbed 2 builds
...
To maintain backwards compatibility keep error trapping turned off
for mbed 2 builds.
2017-06-08 16:54:23 -05:00
Sam Grove
6d34b86f5d
Merge pull request #4489 from 0xc0170/fix_issue#4486
...
mbed sdk boot: fix gcc sw init hook attribute
2017-06-08 15:55:14 -05:00
Sam Grove
9122ed60cd
Merge pull request #4480 from pan-/fix_time_return
...
rtc_time: Fix incorrect return value when the calendar is not available.
2017-06-08 15:52:46 -05:00
Deepika
6ee4c7e219
Fix doxygen warnings in 'features/filesystem'
2017-06-08 15:48:21 -05:00
Deepika Bhavnani
f05e498c73
Resolving doxygen warnings
2017-06-08 15:48:20 -05:00
Vincent Coubard
6b020a3510
mbed_localtime: Add support of year day.
...
This field is needed by the LPC43XX targets.
2017-06-08 10:32:57 +01:00
Vincent Coubard
01f1e08358
mbed_localtime: Add support of wday.
...
This field is necessary, it is used by several vendor RTC: Atmel, ST, NUVOTON,
NXP.
2017-06-08 10:11:01 +01:00