Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
375 commits
Select commit Hold shift + click to select a range
e1df16e
Merge pull request #7365 from jeromecoutant/PR_RTC_SHADOW
Jul 12, 2018
72aabc9
Cellular: HSI set to be source clock for WISE_1570
Jul 12, 2018
205f8db
[M2351] Add one new target M2351, regard as M0+ with some V8M CPU con…
cyliangtw Jun 30, 2017
dcdd9fb
[M2351] Sync SDH_CardDetection type to avoid GCC compiler error
cyliangtw Jul 4, 2017
1f27546
[M2351] Support GCC & IAR toolchain
cyliangtw Jul 4, 2017
c5494eb
[M2351] Support __vector_table instead of __vector_handlers in IAR
cyliangtw Jul 4, 2017
06910bd
[M2351] remove progen, not used any more
cyliangtw Jul 5, 2017
368f8ee
[M2351] Remove mbed_sdk_init_forced
cyliangtw Jul 12, 2017
98c8427
[M2351] Add partition header file for CMSE feature
cyliangtw Aug 10, 2017
6b85478
[M2351] Modify Nuvoton common files to avoid conflicting with master
cyliangtw Aug 15, 2017
e67ed3f
[M2351] Revise nu_bitutil.h for M23
cyliangtw Aug 18, 2017
ffcc438
[M2351] Use Cortex M23 specific header files and interrupts
Aug 11, 2017
11792f6
[M2351] Added xx_ticker_fire_interrupt function for M2351 device
Aug 17, 2017
d46220c
[M2351] Set SAU Region present flag for M2351 device and include secu…
Sep 11, 2017
1117e84
[M2351] Removed device name, till device patch is added to IAR/Keil
Sep 12, 2017
f7ea847
[M2351] ARMC6 compiler related changes
Sep 14, 2017
a2aac52
[M2351] Update GCC linker for NSC Veneer
cyliangtw Sep 15, 2017
f06644a
[M2351] Linker files support both of secure & non-secure domain
cyliangtw Sep 19, 2017
ba9e5fd
[M2351] IAR linker file support both of secure & non-secure domain
cyliangtw Sep 19, 2017
18ca9b5
[M2351] Fix GCC linker file 'cannot move location counter backwards' …
cyliangtw Sep 20, 2017
2f01120
[M2351] Corrected preprocess define usage in toolchain specific linke…
Sep 27, 2017
5985dcd
[M2351] Support secure loader invoke non-secure Mbed OS
cyliangtw Sep 27, 2017
46f948a
[M2351] Link register base with partition file & correct heap size in…
cyliangtw Sep 29, 2017
eebc6e3
[M2351] Corrected Vector table address in scatter file
Sep 29, 2017
aec7c54
[M2351] Add non-secure reset handler address
Oct 10, 2017
94d95d3
[M2351] Support TrustZone in port_read/port_write
Oct 17, 2017
90fcc04
[M2351] Migrate for MP chip version, build sucessfully
cyliangtw Jan 23, 2018
331945f
[M2351] Remove redundant GetPC
cyliangtw Jan 24, 2018
6163628
[M2351] Sync IRQ arrangement to fulfill MP version
cyliangtw Jan 24, 2018
12a7830
[M2351] Resolve reset halt issue in MP chip A version
cyliangtw Jan 24, 2018
d99fbcb
[M2351] Set 48KB SRAM and UART0 as non-secure
cyliangtw Jan 25, 2018
ef7f048
[M2351] Set secure SRAM size as 24KB in SAU & SCU
cyliangtw Jan 25, 2018
2b44eea
[M2351] Add gpio_is_connected
cyliangtw Feb 7, 2018
21de229
[M2351] Disabled fault handler support
Feb 16, 2018
0c3f0f7
[M2351] To fulfill _rtc_localtime one more argument
cyliangtw Feb 22, 2018
a384693
[M2351] Fix target configuration
ccli8 Mar 14, 2018
2da6bf6
[M2351] Fix STDIO UART
ccli8 Feb 14, 2018
77e45d4
[M2351] Configure most modules to non-secure
ccli8 Mar 14, 2018
d84a90e
[M2351] Unify secure/non-secure peripheral base based on partition file
ccli8 Feb 9, 2018
135f127
[M2351] Add secure BSP driver function
ccli8 Mar 2, 2018
0cb7633
[M2351] Fix HCLK clock source
ccli8 Mar 5, 2018
2aa2b7e
[M2351] Fix SystemCoreClockUpdate isn't called in non-secure domain
ccli8 Feb 27, 2018
f16b971
[M2351] Fix GPIO to be TrustZone-aware
ccli8 Feb 26, 2018
6bfc90d
[M2351] Rework RTC
ccli8 Feb 9, 2018
236bf65
[M2351] Remove peripheral sleep management from hal_sleep/hal_deepsleep
ccli8 Feb 26, 2018
999dd33
[M2351] Rework us_ticker and lp_ticker
cyliangtw Jan 25, 2018
ebf53b9
[M2351] Support PDMA
ccli8 Feb 2, 2018
dcfe1d4
[M2351] Refine UART code
ccli8 Mar 8, 2018
3ca24b6
[M2351] Support SPI
ccli8 Feb 2, 2018
649389a
[M2351] Support I2C
ccli8 Mar 9, 2018
06cb070
[M2351] Trim HIRC48 to 48M against LXT
ccli8 Mar 19, 2018
fa0124e
[M2351] Add missing delay in lp_ticker
ccli8 Mar 16, 2018
711cb64
[M2351] Support flash IAP
ccli8 Feb 12, 2018
805049d
[M2351] Fix page size in flash IAP
ccli8 Mar 22, 2018
42aa7fe
[M2351] Upgrade partition format
ccli8 Mar 28, 2018
ca63aba
[M2351] Change NSC location
ccli8 Mar 28, 2018
dd7fd76
[M2351] Centralize size configuration for secure flash, secure SRAM, …
ccli8 Mar 28, 2018
1da430f
[M2351] Support TRNG
ccli8 Apr 2, 2018
d05ef69
[M2351] Support analog-in
ccli8 Mar 6, 2018
13e1209
[M2351] Support PWM out
ccli8 Mar 6, 2018
d3c6478
[M2351] Add GPIO debounce configuration in targets.json
ccli8 Apr 2, 2018
2854b57
[M2351] Remove dead code with '#if 0' in SPI
ccli8 Apr 10, 2018
8f1623f
[M2351] Add consistency check for CRYPTO/CRPT's secure attribute and …
ccli8 Apr 10, 2018
8f2c717
[M2351] Fix part number in IAR export
ccli8 Apr 16, 2018
767e74b
[M2351] Support TrustZone and bootloader for IAR
ccli8 Apr 16, 2018
89d3222
[M2351] Replace __attribute__((cmse_nonsecure_entry)) with compiler a…
ccli8 Apr 13, 2018
1b9fa07
[M2351] Default MBED_TZ_DEFAULT_ACCESS to 1 to control secure SYS/CLK…
ccli8 Apr 24, 2018
9906655
[M2351] Add SD pinmap
ccli8 Apr 27, 2018
de83cb2
[M2351] Add secure gateway functions SYS_LockReg_S/SYS_UnlockReg_S
ccli8 Apr 27, 2018
9cbc8b2
[M2351] Meet new us_ticker HAL spec (Mbed OS 5.9)
ccli8 May 28, 2018
6729b65
[M2351] Meet new lp_ticker HAL spec (Mbed OS 5.9)
ccli8 May 28, 2018
04f7237
[M2351] Meet new RTC HAL spec (Mbed OS 5.9)
ccli8 May 28, 2018
c3c661d
[M2351] Change secure/non-secure stack/heap size
ccli8 May 3, 2018
93ee13a
[M2351] Change secure flash/SRAM to 256KB/32KB as default
ccli8 Jun 8, 2018
c725f18
[M2351] Change pinout to meet NuMaker-PFM-M2351 V1.1
ccli8 Jun 19, 2018
c382e96
[M2351] Upgrade chip version to B from A
ccli8 Jun 19, 2018
43b98cf
Fix Greentea test code with Cortex-M23/M33
ccli8 Mar 5, 2018
0b00d0c
Allow non-secure main thread to call secure functions
ccli8 May 22, 2018
124b4ad
[M2351] Remove NUMAKER_PFM_M2351_S/_NS targets
ccli8 Jun 29, 2018
688029a
[M2351] Remove special handling for dummy interrupt in lp_ticker
ccli8 Jul 2, 2018
d350f45
[M2351] Synchronize lp_ticker code to us_ticker
ccli8 Jul 2, 2018
31bf7bf
[M2351] Fix include file name error on case-sensitive system
ccli8 Jul 3, 2018
4400765
Add `Mxx_NS` core-based labels
theotherjimmy Jul 3, 2018
778aa1e
[M2351] Place default secure binary/library
ccli8 Jul 9, 2018
6bf8e19
[M2351] Support configurable for partitioning flash/SRAM
ccli8 Jun 8, 2018
51276a6
Update compiler check to allow only v6 for OS 5
theotherjimmy Jul 11, 2018
e61c514
[M2351] Fix binary-compatible across compilers in secure functions
ccli8 Jul 12, 2018
9a77b5d
FRMPayload size validity
Jul 10, 2018
ed9048f
Correcting unit for timeout
Jul 12, 2018
832e8b3
tests-mbed_hal-lp_ticker: change implementation of the delay before d…
mprse Jul 12, 2018
665de33
stm32 lpuart: enable lse and hsi if not done
bcostm Jul 12, 2018
6300d8b
Merge pull request #7487 from marcuschangarm/fix-nrf52-serial
Jul 12, 2018
6800215
Merge pull request #7107 from kjbracey-arm/ns-global-events
Jul 12, 2018
f4c936f
Merge pull request #7486 from marcuschangarm/fix-nrf52-iar
Jul 12, 2018
9a3ad69
Ensure that files generated have a directory
theotherjimmy Jul 12, 2018
ef7b466
Correct cmse lib creation for the make_gcc_arm
theotherjimmy Jul 12, 2018
33a56b4
Drop quotes from command line make
theotherjimmy Jul 12, 2018
10b90ed
Fix ITM on NRF52 series
Jun 29, 2018
0198481
Improved formatting for preprocessor conditionals.
TacoGrandeTX Jul 12, 2018
192eb28
Fix linker script for NRF52840/ARM
Jul 12, 2018
ed25102
NRF52832 linker script: formatting fix
Jul 12, 2018
1dbdcb2
[M2351] Remove M2351KIAAEES from iar_definitions.json
ccli8 Jul 13, 2018
8a0b832
STM32 LPTICKER with LPTIM minor update
jeromecoutant Jul 12, 2018
d33d93b
Merge pull request #7501 from theotherjimmy/gen-file-mkdir
Jul 13, 2018
1145d6b
Merge pull request #7489 from mirelachirica/wise_1570_hsi_source_clock
Jul 13, 2018
1cbfa00
Merge pull request #7471 from mprse/lp_timer_test_fix
Jul 13, 2018
7ef7022
Improve GPIO IRQ edge detection when waking from deepsleep
mattbrown015 Jul 13, 2018
2bbe043
[M2351] Adding missing ENDP for ARM
Jul 13, 2018
4c1a89c
Merge pull request #7459 from hasnainvirk/issue_7232_7432
Jul 13, 2018
a4117f6
Merge pull request #7318 from AriParkkila/cellular-max-packet-size
Jul 13, 2018
6fcb77e
Merge pull request #7434 from deepikabhavnani/version_header
Jul 13, 2018
531ee3c
Merge pull request #7461 from 0xc0170/fix_raytac_removal
Jul 13, 2018
c5ba97f
Merge pull request #7445 from hasnainvirk/issue_7230
Jul 13, 2018
b05d105
Update stats to fetch Mbed OS version info
Jul 6, 2018
cc8651e
Merge pull request #7505 from naveenkaje/pushbranch
Jul 13, 2018
602b0ce
Merge pull request #7079 from SiliconLabs/feature/EFM32GG11-OS5.9
Jul 13, 2018
def1ef2
Merge pull request #7494 from mprse/lp_ticker_deep_sleep_delay_fix
Jul 13, 2018
1ee7d8b
Merge pull request #7481 from theotherjimmy/py3-export-supported
Jul 14, 2018
9667b5e
Merge pull request #7500 from theotherjimmy/fix-gcc-v8m-export
Jul 14, 2018
d4a0e6c
Merge pull request #7503 from theotherjimmy/unquote-make
Jul 14, 2018
39407ad
Merge pull request #7475 from theotherjimmy/py3-release-ver-parse
Jul 14, 2018
56dd4bf
Merge pull request #7436 from deepikabhavnani/update_sys
Jul 14, 2018
671b3c8
Merge pull request #7507 from jeromecoutant/PR_LPTIM
Jul 14, 2018
904bdf8
Merge pull request #7477 from theotherjimmy/fix-customtgt-tests
Jul 14, 2018
38744b9
Merge pull request #7498 from bcostm/fix_hsi_lse_lpuart
Jul 14, 2018
455f1fd
[M2351] Support only ARMC6 toolchain
Jul 13, 2018
6e86402
add GPIO Pad Type Define & fix typo
Jul 16, 2018
3b41212
fix GPIO bug & typo
Jul 16, 2018
6560152
add Systick configuration function in Init function
Jul 16, 2018
8b54856
fix timer Interrupt callback function bug
Jul 16, 2018
8649162
Add implementation for CRC API
stevew817 Jul 11, 2018
95d78df
EFM32 Make PeripheralPins.c configuration tables weakly defined to be…
steinerphilipp Jul 12, 2018
a8dcf52
Make PeripheralPins.c configuration tables weakly defined to be overr…
steinerphilipp Jul 16, 2018
4a4f8de
LoRaWAN: Wrong return code for JoinRequest retry
Jul 16, 2018
1658349
Replace __attribute__((weak)) with MBED_WEAK
steinerphilipp Jul 16, 2018
9968b54
Allow ARMC6 only mbed 5 releases
theotherjimmy Jul 16, 2018
be215a3
Merge pull request #7448 from davidsaada/david_unity_test_skip
Jul 16, 2018
9899862
Correct uvision exporter support check
theotherjimmy Jul 16, 2018
de266d8
Added missing include.
steinerphilipp Jul 16, 2018
285d661
Show Mbed 2 support in compile -S
theotherjimmy Jul 2, 2018
2d8cf73
Move resource scanning into it's own module
theotherjimmy Apr 24, 2018
519e338
Rework export resource scanning
theotherjimmy Apr 24, 2018
87146cd
Cleanup and reduced scanning
theotherjimmy Apr 24, 2018
3e6e9e8
Remove unused git hook
theotherjimmy Apr 24, 2018
7c42302
Update test builder to use new resources
theotherjimmy Apr 24, 2018
4c7cf21
Require notifier in resources
theotherjimmy May 4, 2018
361fc65
Allow missing toolchain parameter to get_config
theotherjimmy May 4, 2018
0ad5df3
Create fully incremental scans without lazy dicts
theotherjimmy Jun 6, 2018
8dab741
Cleanup comments and code near add_directory
theotherjimmy Jun 11, 2018
786c228
Cleanup legacy target+toolchain consts
theotherjimmy Jun 11, 2018
2260829
Remove base_path argument from several methods
theotherjimmy Jun 11, 2018
73e890f
Simplify exclusion logic
theotherjimmy Jun 11, 2018
9d8c925
Remove unused function
theotherjimmy Jun 11, 2018
1f6862b
Remove needless None-passing
theotherjimmy Jun 11, 2018
9326386
Switch to Resources in build_api and tests
theotherjimmy Jun 11, 2018
a57942a
Remove test about unused parameter in find_tests
theotherjimmy Jun 11, 2018
6ca2185
Correct resources usage in tests
theotherjimmy Jun 11, 2018
06f3fca
Correct the _only_ detect_duplicates call
theotherjimmy Jun 11, 2018
de913e1
Improve resources API to include more use cases
theotherjimmy Jun 12, 2018
0294f62
Put all src_paths into the root
theotherjimmy Jun 13, 2018
60e08b1
Don't flatten build directories
theotherjimmy Jun 13, 2018
0661578
Use include paths when compiling
theotherjimmy Jun 13, 2018
8303539
Remove unused APIs
theotherjimmy Jun 13, 2018
4109aa5
Privatize parts of the API that I don't want public
theotherjimmy Jun 13, 2018
7a26cd8
Use paths in linking
theotherjimmy Jun 13, 2018
f143019
Correct resources API usage in dupe test
theotherjimmy Jun 15, 2018
6a87510
Correct several exporter uses of file_basepath with a dedupe
theotherjimmy Jun 15, 2018
c50d8a2
Correct win2unix typo
theotherjimmy Jun 15, 2018
001c2d3
Revisit Mbed 2 building
theotherjimmy Jun 15, 2018
d8ddfdc
Populate lib_dirs
theotherjimmy Jun 18, 2018
28dbbd6
Correct path usage in linking
theotherjimmy Jun 18, 2018
a4cc320
Add get_file_paths res API and use it
theotherjimmy Jun 18, 2018
8166889
Compute inc_dirs from headers
theotherjimmy Jun 19, 2018
545553b
Rewrite test detection to avoid relying on "inc_dirs"
theotherjimmy Jun 19, 2018
b2395a7
Simplify get_config toolchain handling
theotherjimmy Jun 26, 2018
62538e3
Filter archives for the arm linker
theotherjimmy Jun 26, 2018
3b7a5bb
Filter libraries by extension in exporters
theotherjimmy Jun 26, 2018
5c27da7
Correct scatter shebang rewriting in Make
theotherjimmy Jun 27, 2018
c641fd7
Sort every list we have
theotherjimmy Jun 28, 2018
28800fb
Fix broken tests
theotherjimmy Jun 28, 2018
91e77f1
Import FireRef before using it
theotherjimmy Jul 5, 2018
e9d5609
Remove unused storage api test
theotherjimmy Jul 9, 2018
447acd0
Make release errors very visible
theotherjimmy Jul 10, 2018
750a2ac
Use paths explicitly in copy from mbed libs
theotherjimmy Jul 10, 2018
5ced8e4
Integrate mbed OS RTC with mbed TLS
Aug 2, 2017
804edd5
Place "MBED_WEAK" for IAR-Toolchain before the type.
steinerphilipp Jul 17, 2018
c29fe89
Merge pull request #7183 from theotherjimmy/refactor-resources
Jul 17, 2018
9a073c0
Fix linker script for NRF52832/IAR
Jul 17, 2018
a242799
Disable make_armc6 on v8m
theotherjimmy Jul 17, 2018
59fd0c0
STM32F2/F4/F7 : LL API is now available
jeromecoutant Jul 18, 2018
d55f874
Merge pull request #4846 from andresag01/iotssl-1594-rtc-integration
Jul 18, 2018
b30ac55
Merge pull request #7396 from theotherjimmy/mbed-2-matrix
Jul 18, 2018
e9e1ff9
Merge pull request #7302 from OpenNuvoton/nuvoton_m2351_v1.1
Jul 18, 2018
3dd7d88
Merge pull request #7468 from geky/remove-top-level-bsd-license
Jul 18, 2018
db9a0e8
Merge pull request #7533 from marcuschangarm/fix-nrf52832-iar
Jul 18, 2018
dd6482b
Merge pull request #7504 from TacoGrandeTX/feature_itm_fix
Jul 18, 2018
a070e35
Removed extra ARMc6 instance in unique mapping
Jul 18, 2018
49fe946
Fix some targets fail to pass ticker overflow test
ccli8 Jul 19, 2018
f272472
Revise heap and stack size for Ethernet of GR-PEACH
TomoYamanaka Jul 19, 2018
b6a67c1
realtek rtl8195am remove DEVICE_EMAC
M-ichae-l Jul 19, 2018
bfcfe9c
Added Support for Toshiba TMPM3H6
Jul 18, 2018
8673286
Resolved conflict in targets/targets.json
Jul 19, 2018
bf8587e
STM32L496: fix RAM size in ARM scatter file
bcostm Jul 19, 2018
f207944
enable HAL FLASH API on Fast Models MPS2 targets
Jul 19, 2018
2550f3d
Systimer test : compilation error with MBED_TICKLESS
jeromecoutant Jul 17, 2018
49ae504
Merge pull request #7544 from cmonr/fix-make.py
Jul 19, 2018
d6b0f80
Condense exported IAR project file
theotherjimmy Jul 19, 2018
14c2eff
Re-indent IAR ewp temptate
theotherjimmy Jul 19, 2018
b368ec8
Add MTS Dragonfly bootloader back after accidental removal from pr #7131
Jul 11, 2018
577844d
Fix spelling in error message in fault handler
SenRamakri Jul 19, 2018
c030c6a
Use `-t ARM` for v8m targets
theotherjimmy Jul 19, 2018
ae033da
Use mapping of core->arch ver. for tc picking
theotherjimmy Jul 19, 2018
2188110
Merge pull request #7479 from SiliconLabs/feature/crc
Jul 19, 2018
d91d3a6
Merge pull request #7520 from hasnainvirk/cont_join_issue
Jul 19, 2018
c1c5d89
Merge pull request #7548 from OpenNuvoton/nuvoton_fix_ticker_overflow
Jul 20, 2018
541fc1f
Merge pull request #7539 from jeromecoutant/PR_LL_API
Jul 20, 2018
bb7b97c
Merge pull request #7491 from evva-sfw/feature/EFM32_make_PeripheralP…
Jul 20, 2018
eeee6e5
Merge pull request #7556 from SenRamakri/sen_FixTypoinFaultHandler
Jul 20, 2018
4bcca89
Merge pull request #7061 from TTornblom/master
Jul 20, 2018
3f68411
Warn with ARMC6 and not v8m
theotherjimmy Jul 19, 2018
69203d3
Create update images with managed bl mode
theotherjimmy Jul 20, 2018
24df8f8
Correct MockNotifier construction in test
theotherjimmy Jul 20, 2018
057138c
Merge pull request #7536 from ganesh-ramachandran/master
Jul 20, 2018
25bb200
Merge pull request #7480 from klaas019/master
Jul 23, 2018
21dbbc5
Merge pull request #7510 from mattbrown015/fix_stm32_gpio_irq_deepsleep
Jul 23, 2018
0c2ffe5
Merge pull request #7519 from Wiznet/master
Jul 23, 2018
a252e5e
Merge pull request #7530 from jeromecoutant/PR_RTOS_TICKLESS
Jul 23, 2018
5d5ca62
Merge pull request #7553 from bcostm/fix_L496_sct
Jul 23, 2018
96a90c2
Allow legacy TCPServer::accept() to override inherited Socket::accept()
Jul 24, 2018
e4108b5
Merge pull request #7554 from jamesbeyond/fm_flash
Jul 24, 2018
0df9e15
Merge pull request #7549 from TomoYamanaka/improve_ether
Jul 24, 2018
7adfcbe
Merge pull request #7551 from M-ichae-l/realtek-rtl8195am-remove-DEVI…
0xc0170 Jul 25, 2018
b170e1c
Merge pull request #7587 from SeppoTakalo/fix-tpcserver-warning
0xc0170 Jul 25, 2018
ac14e37
Correct result usage in reporting infra
theotherjimmy Jul 25, 2018
8be6a03
Correct test_api usage of build_project
theotherjimmy Jul 25, 2018
76078f6
Include `-t ARM` support for v8m, armc6 targets
theotherjimmy Jul 25, 2018
7cedccc
Improved logic in wait_us to avoid division operation in sub-millisec…
SenRamakri Jul 23, 2018
dd6ec03
Makes Greentea TCP test cases to timeout less in connection errors
Jul 23, 2018
313f322
[Nuvoton] Replace __wrap__sbrk with overriding _sbrk
ccli8 Jul 26, 2018
f9c6f21
Correct path handling after calls to `win_to_unix`
theotherjimmy Jul 20, 2018
35498dc
Correct abspath handling
theotherjimmy Jul 26, 2018
96fbd02
Make location meaningful in print_error_report
bremoran Jul 26, 2018
c5680b5
Merge pull request #7584 from SenRamakri/sen_wait_us_Enhancement
Jul 26, 2018
dcd358f
Merge pull request #7558 from theotherjimmy/tc-arm-v8m
Jul 26, 2018
5d4f636
Merge pull request #7578 from VeijoPesonen/conn_failure_tolerance
Jul 26, 2018
8755e56
Merge pull request #7567 from theotherjimmy/managed-update-image
Jul 26, 2018
cc506ee
Merge pull request #7603 from OpenNuvoton/nuvoton_override_gcc_sbrk
Jul 26, 2018
639285a
Merge pull request #7608 from theotherjimmy/fix-make
Jul 26, 2018
8292aff
Merge pull request #7609 from bremoran/patch-2
Jul 27, 2018
7416738
green tea nfc eeprom test
paul-szczepanek-arm Aug 21, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 0 additions & 25 deletions LICENSE-BSD-3-Clause

This file was deleted.

38 changes: 25 additions & 13 deletions TESTS/mbed_drivers/lp_timer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ extern uint32_t SystemCoreClock;
#define DELTA_MS(delay_ms) (1 + ((delay_ms) * US_PER_MSEC / 20 / US_PER_MSEC))
#define DELTA_S(delay_ms) (0.000500f + (((float)(delay_ms)) / MSEC_PER_SEC / 20))

void busy_wait_us(int us)
{
const ticker_data_t *const ticker = get_us_ticker_data();
uint32_t start = ticker_read(ticker);
while ((ticker_read(ticker) - start) < (uint32_t)us);
}

void busy_wait_ms(int ms)
{
busy_wait_us(ms * US_PER_MSEC);
}

/* This test verifies if low power timer is stopped after
* creation.
*
Expand All @@ -74,7 +86,7 @@ void test_lptimer_creation()

/* Wait 10 ms.
* After that operation timer read routines should still return 0. */
wait_ms(10);
busy_wait_ms(10);

/* Check results. */
TEST_ASSERT_EQUAL_FLOAT(0, lp_timer.read());
Expand Down Expand Up @@ -102,7 +114,7 @@ void test_lptimer_time_accumulation()
lp_timer.start();

/* Wait 10 ms. */
wait_ms(10);
busy_wait_ms(10);

/* Stop the timer. */
lp_timer.stop();
Expand All @@ -116,15 +128,15 @@ void test_lptimer_time_accumulation()
/* Wait 50 ms - this is done to show that time elapsed when
* the timer is stopped does not have influence on the
* timer counted time. */
wait_ms(50);
busy_wait_ms(50);

/* ------ */

/* Start the timer. */
lp_timer.start();

/* Wait 20 ms. */
wait_ms(20);
busy_wait_ms(20);

/* Stop the timer. */
lp_timer.stop();
Expand All @@ -145,7 +157,7 @@ void test_lptimer_time_accumulation()
lp_timer.start();

/* Wait 30 ms. */
wait_ms(30);
busy_wait_ms(30);

/* Stop the timer. */
lp_timer.stop();
Expand All @@ -159,15 +171,15 @@ void test_lptimer_time_accumulation()
/* Wait 50 ms - this is done to show that time elapsed when
* the timer is stopped does not have influence on the
* timer time. */
wait_ms(50);
busy_wait_ms(50);

/* ------ */

/* Start the timer. */
lp_timer.start();

/* Wait 1 sec. */
wait_ms(1000);
busy_wait_ms(1000);

/* Stop the timer. */
lp_timer.stop();
Expand Down Expand Up @@ -196,7 +208,7 @@ void test_lptimer_reset()
lp_timer.start();

/* Wait 10 ms. */
wait_ms(10);
busy_wait_ms(10);

/* Stop the timer. */
lp_timer.stop();
Expand All @@ -214,7 +226,7 @@ void test_lptimer_reset()
lp_timer.start();

/* Wait 20 ms. */
wait_ms(20);
busy_wait_ms(20);

/* Stop the timer. */
lp_timer.stop();
Expand All @@ -241,13 +253,13 @@ void test_lptimer_start_started_timer()
lp_timer.start();

/* Wait 10 ms. */
wait_ms(10);
busy_wait_ms(10);

/* Now start timer again. */
lp_timer.start();

/* Wait 20 ms. */
wait_ms(20);
busy_wait_ms(20);

/* Stop the timer. */
lp_timer.stop();
Expand All @@ -274,7 +286,7 @@ void test_lptimer_float_operator()
lp_timer.start();

/* Wait 10 ms. */
wait_ms(10);
busy_wait_ms(10);

/* Stop the timer. */
lp_timer.stop();
Expand Down Expand Up @@ -302,7 +314,7 @@ void test_lptimer_time_measurement()
lp_timer.start();

/* Wait <wait_val_us> us. */
wait_us(wait_val_us);
busy_wait_us(wait_val_us);

/* Stop the timer. */
lp_timer.stop();
Expand Down
42 changes: 33 additions & 9 deletions TESTS/mbed_hal/common_tickers/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
#include "hal/us_ticker_api.h"
#include "hal/lp_ticker_api.h"

#ifdef __cplusplus
extern "C" {
#endif
#include "os_tick.h"
#ifdef __cplusplus
}
#endif // __cplusplus

#if !DEVICE_USTICKER
#error [NOT_SUPPORTED] test not supported
#endif
Expand All @@ -29,8 +37,10 @@
#define TICKER_INT_VAL 500
#define TICKER_DELTA 10

#define LP_TICKER_OVERFLOW_DELTA 0 // this will allow to detect that ticker counter rollovers to 0
#define US_TICKER_OVERFLOW_DELTA 50
#define LP_TICKER_OVERFLOW_DELTA1 0 // this will allow to detect that ticker counter rollovers to 0
#define LP_TICKER_OVERFLOW_DELTA2 0
#define US_TICKER_OVERFLOW_DELTA1 50
#define US_TICKER_OVERFLOW_DELTA2 60

#define TICKER_100_TICKS 100

Expand All @@ -48,7 +58,18 @@ using namespace utest::v1;
volatile int intFlag = 0;
const ticker_interface_t* intf;
ticker_irq_handler_type prev_irq_handler;
unsigned int ticker_overflow_delta;
/* Some targets might fail overflow test uncertainly due to getting trapped in busy
* intf->read() loop. In the loop, some ticker values wouldn't get caught in time
* because of:
* 1. Lower CPU clock
* 2. Compiled code with worse performance
* 3. Interrupt at that time
*
* We fix it by checking small ticker value range rather than one exact ticker point
* in near overflow check.
*/
unsigned int ticker_overflow_delta1;
unsigned int ticker_overflow_delta2;

/* Auxiliary function to count ticker ticks elapsed during execution of N cycles of empty while loop.
* Parameter <step> is used to disable compiler optimisation. */
Expand Down Expand Up @@ -118,7 +139,7 @@ void ticker_event_handler_stub(const ticker_data_t * const ticker)
}

/* Indicate that ISR has been executed in interrupt context. */
if (IsIrqMode()) {
if (core_util_is_isr_active()) {
intFlag++;
}
}
Expand Down Expand Up @@ -293,12 +314,13 @@ void ticker_overflow_test(void)
intFlag = 0;

/* Wait for max count. */
while (intf->read() != (max_count - ticker_overflow_delta)) {
while (intf->read() >= (max_count - ticker_overflow_delta2) &&
intf->read() <= (max_count - ticker_overflow_delta1)) {
/* Just wait. */
}

/* Now we are near/at the overflow point. Detect rollover. */
while (intf->read() > ticker_overflow_delta);
while (intf->read() > ticker_overflow_delta1);

const uint32_t after_overflow = intf->read();

Expand All @@ -310,7 +332,7 @@ void ticker_overflow_test(void)
const uint32_t next_after_overflow = intf->read();

/* Check that after the overflow ticker continue count. */
TEST_ASSERT(after_overflow <= ticker_overflow_delta);
TEST_ASSERT(after_overflow <= ticker_overflow_delta1);
TEST_ASSERT(next_after_overflow >= TICKER_100_TICKS);
TEST_ASSERT_EQUAL(0, intFlag);

Expand Down Expand Up @@ -465,7 +487,8 @@ utest::v1::status_t us_ticker_setup(const Case *const source, const size_t index

prev_irq_handler = set_us_ticker_irq_handler(ticker_event_handler_stub);

ticker_overflow_delta = US_TICKER_OVERFLOW_DELTA;
ticker_overflow_delta1 = US_TICKER_OVERFLOW_DELTA1;
ticker_overflow_delta2 = US_TICKER_OVERFLOW_DELTA2;

return greentea_case_setup_handler(source, index_of_case);
}
Expand Down Expand Up @@ -493,7 +516,8 @@ utest::v1::status_t lp_ticker_setup(const Case *const source, const size_t index

prev_irq_handler = set_lp_ticker_irq_handler(ticker_event_handler_stub);

ticker_overflow_delta = LP_TICKER_OVERFLOW_DELTA;
ticker_overflow_delta1 = LP_TICKER_OVERFLOW_DELTA1;
ticker_overflow_delta2 = LP_TICKER_OVERFLOW_DELTA2;

return greentea_case_setup_handler(source, index_of_case);
}
Expand Down
38 changes: 30 additions & 8 deletions TESTS/mbed_hal/lp_ticker/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,38 @@ using namespace utest::v1;

volatile int intFlag = 0;

#define US_PER_MS 1000

#define TICKER_GLITCH_TEST_TICKS 1000

#define TICKER_INT_VAL 500
#define TICKER_DELTA 10

#define LP_TICKER_OV_LIMIT 4000

/* Flush serial buffer before deep sleep
*
* Since deepsleep() may shut down the UART peripheral, we wait for some time
* to allow for hardware serial buffers to completely flush.
*
* Take NUMAKER_PFM_NUC472 as an example:
* Its UART peripheral has 16-byte Tx FIFO. With baud rate set to 9600, flush
* Tx FIFO would take: 16 * 8 * 1000 / 9600 = 13.3 (ms). So set wait time to
* 20ms here for safe.
*
* This should be replaced with a better function that checks if the
* hardware buffers are empty. However, such an API does not exist now,
* so we'll use the busy_wait_ms() function for now.
*/
#define SERIAL_FLUSH_TIME_MS 20

void busy_wait_ms(int ms)
{
const ticker_data_t *const ticker = get_us_ticker_data();
uint32_t start = ticker_read(ticker);
while ((ticker_read(ticker) - start) < (uint32_t)(ms * US_PER_MS));
}

/* Since according to the ticker requirements min acceptable counter size is
* - 12 bits for low power timer - max count = 4095,
* then all test cases must be executed in this time windows.
Expand Down Expand Up @@ -63,7 +88,7 @@ void overflow_protect()
void ticker_event_handler_stub(const ticker_data_t * const ticker)
{
/* Indicate that ISR has been executed in interrupt context. */
if (IsIrqMode()) {
if (core_util_is_isr_active()) {
intFlag++;
}

Expand All @@ -72,11 +97,6 @@ void ticker_event_handler_stub(const ticker_data_t * const ticker)
lp_ticker_disable_interrupt();
}

void wait_cycles(volatile unsigned int cycles)
{
while (cycles--);
}

/* Test that the ticker has the correct frequency and number of bits. */
void lp_ticker_info_test()
{
Expand All @@ -97,8 +117,10 @@ void lp_ticker_deepsleep_test()

lp_ticker_init();

/* Wait for green tea UART transmission before entering deep-sleep mode. */
wait_cycles(400000);
/* Give some time Green Tea to finish UART transmission before entering
* deep-sleep mode.
*/
busy_wait_ms(SERIAL_FLUSH_TIME_MS);

overflow_protect();

Expand Down
1 change: 1 addition & 0 deletions TESTS/mbed_platform/stats_sys/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ void test_sys_info()
mbed_stats_sys_t stats;
mbed_stats_sys_get(&stats);

TEST_ASSERT_NOT_EQUAL(0, stats.os_version);
#if defined(__CORTEX_M)
TEST_ASSERT_NOT_EQUAL(0, stats.cpu_id);
#endif
Expand Down
4 changes: 4 additions & 0 deletions TESTS/mbedmicro-rtos-mbed/basic/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@

using utest::v1::Case;

#if defined(__CORTEX_M23) || defined(__CORTEX_M33)
#define TEST_STACK_SIZE 512
#else
#define TEST_STACK_SIZE 256
#endif
#define ONE_MILLI_SEC 1000

volatile uint32_t elapsed_time_ms = 0;
Expand Down
4 changes: 4 additions & 0 deletions TESTS/mbedmicro-rtos-mbed/event_flags/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ using utest::v1::Case;
#error [NOT_SUPPORTED] test not supported
#endif

#if defined(__CORTEX_M23) || defined(__CORTEX_M33)
#define THREAD_STACK_SIZE 512
#else
#define THREAD_STACK_SIZE 320 /* 512B stack on GCC_ARM compiler cause out of memory on some 16kB RAM boards e.g. NUCLEO_F070RB */
#endif

#define MAX_FLAG_POS 30
#define PROHIBITED_FLAG_POS 31
Expand Down
2 changes: 1 addition & 1 deletion TESTS/mbedmicro-rtos-mbed/heap_and_stack/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ void test_heap_in_range(void)
*/
void test_main_stack_in_range(void)
{
os_thread_t *thread = (os_thread_t*) osThreadGetId();
mbed_rtos_storage_thread_t *thread = (mbed_rtos_storage_thread_t *) osThreadGetId();

uint32_t psp = __get_PSP();
uint8_t *stack_mem = (uint8_t*) thread->stack_mem;
Expand Down
Loading