jeromecoutant
971d0dd3bd
pin_names-generic test update before skipping it
2021-07-06 17:13:45 +02:00
Rajkumar Kanagaraj
26c608b241
CMake: Remove --coverage link option from mbed-stubs-hal
...
The --coverage flag globally set in UNITTESTS/CMakeLists.txt
and configuring the same option again in mbed-stubs-hal is
redundant so remove it
2021-07-01 06:07:31 -07:00
Rajkumar Kanagaraj
fe0298a1a3
CMake: unit-tests: Make hal stubs only depend on headers it uses
...
Previously the hal stub library depended on `mbed-headers`, which
is a collection of all available headers in mbed-os. To make it easier
to separate the library, only depend on the headers we're using.
2021-07-01 06:07:31 -07:00
Rajkumar Kanagaraj
bf06897b8f
CMake: unit-tests: Move mbed-headers-hal to the hal directory
...
Move the header-only mbed-headers-hal library the unit test stubs
depend on into the hal component directory. This makes the events
stubs more self-contained and improves the composition of the library.
2021-07-01 06:07:31 -07:00
Rajkumar Kanagaraj
84bb4cc6b9
CMake: Move hal stubs sources to the mbed-os/hal directory
...
Move the hal stubs into the hal component directory.
so we can avoid duplicating the mbed-os source tree in a central
UNITTESTS folder.
2021-07-01 06:07:31 -07:00
Jaeden Amero
b5c2f7079e
Merge pull request #14718 from Meano/develop
...
Feature: Make changes for Cortex-A5 support
2021-07-01 10:23:41 +01:00
Jaeden Amero
043d1735a1
Merge pull request #14837 from LDong-Arm/K64F_pin_names
...
K64F: Fix pin names and migrate to Arduino Uno form factor
2021-06-30 09:15:54 +01:00
Hari Limaye
f95052cf6f
CMake: Require TEST_SOURCES in greentea CMake file
...
Assumption that greentea test file is always named main.cpp is
incorrect. Updated mbed_greentea_add_test() macro to make TEST_SOURCES
parameter compulsory, which is used to specify greentea test
file(s). This allows tests to use C, or have a different name.
Therefore also updated all pre-existing greentea test CMake files to
explicity add main.cpp to TEST_SOURCES.
2021-06-29 13:33:42 +01:00
Hari Limaye
3e71692b27
CMake: Remove unnecessary CMakeLists.txt
...
CMakeLists.txt file in /hal/tests/TESTS/mbed_hal_fpga_ci_test_shield
directory was non-functional as it used the greentea_add_test macro,
which expects a main.cpp in current directory, but no main.cpp exists
there. I checked with @rajkan01 who confirmed that this CMake file is
serving no purpose and is there erroneously. All tests in subdirectories
of this directory have their own CMakeLists.txt that successfully build
them.
2021-06-29 13:32:57 +01:00
Hari Limaye
8b020f6ead
CMake: fix incorrect relative path for MBED_PATH
...
MBED_PATH set to /platform directory incorrectly. Updated to set to
/mbed-os directory.
2021-06-29 13:32:48 +01:00
Lingkai Dong
5ca8aec988
Add shebang to pinvalidate.py
...
In the Standard Pin Names porting guide, pinvalidate.py is run
without prefixing the "python" command. But to make it possible,
a shebang needs to exist.
2021-06-28 17:46:32 +01:00
Meano
6feca90589
Unify the __CORTEX_A macro in the files containing cmsis.h
2021-06-23 13:36:52 +08:00
Martin Kojtal
fa090ff05c
Merge pull request #14704 from jeromecoutant/PR_TEST_PIN
...
Pin name tests update
2021-06-09 16:37:51 +02:00
Martin Kojtal
386f197040
Merge pull request #14617 from ARMmbed/gp-spi2c-alias
...
Add legacy I2C/SPI pin aliases
2021-06-09 14:56:46 +02:00
jeromecoutant
4abefe5d42
Pin_names generic test: Add BUTTON3 test case
2021-06-07 18:09:46 +02:00
jeromecoutant
86d0471136
Pin_names arduino_uno test: Add a check for UART instance
2021-06-07 18:09:45 +02:00
George Psimenos
69bca978ad
Add Arduino Uno pin guards
2021-06-03 09:19:52 +01:00
George Psimenos
7c333d88bb
Guard I2C/SPI aliases
2021-06-02 14:25:26 +01:00
Martin Kojtal
c02e101e9f
Merge pull request #14336 from AGlass0fMilk/polymorphic-can
...
Implement polymorphism for CAN driver
2021-05-12 10:17:28 +02:00
Martin Kojtal
e18d280ede
Merge pull request #14588 from Patater/mbed-libs-for-m55
...
Add v8.1-M architecture awareness
2021-05-10 15:13:33 +02:00
George Psimenos
1498fcd92a
Add legacy I2C/SPI pin aliases
2021-05-04 15:19:08 +01:00
George Beckstein
49e58ddab6
Make interface::CAN buildable on targets without DEVICE_CAN
...
This commit adds provisions to enable using interface::CAN on targets that don't have DEVICE_CAN set to 1 (ie: they don't normally have a CAN peripheral).
2021-05-04 02:23:51 -04:00
Jaeden Amero
5d20374bc3
Add v8.1-M architecture awareness
...
Add v8.1-M architecture awareness to Mbed CRC, HAL, and Mbed Atomic.
Fixes #14433
2021-04-23 15:01:16 +01:00
jeromecoutant
3b64279d36
HAL ticker tests : add optional CHECK_TICKER_OPTIM define
...
This will make build failure if ticker optim defines are not present
2021-04-15 17:35:28 +02:00
jeromecoutant
f7c0434b6c
HAL ticker tests fix u64
...
(1000000 * LP/US_TICKER_PERIOD_DEN) > U32
2021-04-15 17:35:28 +02:00
Kevin Bracey
904d4e4d2b
Make ticker computation use shift-by-0
...
Runtime code that analysed clock frequency to determine numerator and
denominator for conversion to standard 1MHz failed to handle the case
of either being 1 correctly.
Although it would spot other values that could be performed as shifts,
it failed to spot that 1 is "shift by 0", so would end up doing runtime
multiply and/or divide by 1. The runtime divide by 1 could be slow on a
Cortex-M0 device, increasing interrupt latency.
UART character loss on STM32F0 devices has been traced to this incorrect
code.
Correct the `exact_log2` routine so that `exact_log2(1)` returns 0 to
fix this.
Original code had a single special no-multiply-or-divide case for
hardware clock frequency being exactly 1MHz, as USTICKER is on STM32F0 -
this code lacks that but has a more general special case that covers all
shift-convertible frequencies like 500kHz or 8MHz, which should be
similar speed as shifts are cheap.
2021-04-12 09:46:42 +03:00
George Psimenos
4091306f10
Update FPGA documentation
2021-04-06 15:13:51 +01:00
Anna Bridge
0742135fd1
Merge pull request #14457 from ARMmbed/uart-stdio-alias
...
Update UART pin names & add MBED_CONF_TARGET_STDIO_UART overrides
2021-03-26 15:17:58 +00:00
Anna Bridge
76f470411a
Merge pull request #14450 from jeromecoutant/PR_SPI_WB
...
FPGA SPI : decrease test frequency for ASYNC test cases
2021-03-26 14:52:00 +00:00
George Psimenos
3e63fd911c
Replace USBTX/RX in docs
2021-03-24 10:18:34 +00:00
George Psimenos
cd5330e5a9
Replace USBTX/RX everywhere else
2021-03-24 10:11:30 +00:00
George Psimenos
8a4b88c762
Update USBTX/USBRX alias
2021-03-23 17:07:52 +00:00
jeromecoutant
b943c4474a
FPGA SPI : decrease test frequency for ASYNC test cases
2021-03-19 11:34:23 +01:00
George Psimenos
21194f5b95
New lines
2021-03-18 17:01:54 +00:00
George Psimenos
d239ef98cd
Rename USBTX/RX to CONSOLE_TX/RX
2021-03-18 17:01:54 +00:00
George Psimenos
3af96247a6
Update PinNames markers
2021-03-18 17:01:54 +00:00
George Psimenos
4dfdb11de0
Move pinvalidate files
2021-03-18 17:01:54 +00:00
George Psimenos
885cdef5f7
Add standard pin-names validation script & tests
2021-03-18 17:01:53 +00:00
jeromecoutant
500ddf596a
[STD-PIN] Updates after review
2021-03-18 17:01:50 +00:00
jeromecoutant
d514b78bb3
[STD-PIN] hal-tests-tests-pin_names-arduino_uno
...
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | ADC A0 | 1 | 0 | OK | 0.05 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | ADC A1 | 1 | 0 | OK | 0.04 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | ADC A2 | 1 | 0 | OK | 0.05 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | ADC A3 | 1 | 0 | OK | 0.04 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | ADC A4 | 1 | 0 | OK | 0.04 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | ADC A5 | 1 | 0 | OK | 0.05 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO A0 | 1 | 0 | OK | 0.04 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO A1 | 1 | 0 | OK | 0.04 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO A2 | 1 | 0 | OK | 0.05 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO A3 | 1 | 0 | OK | 0.04 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO A4 | 1 | 0 | OK | 0.05 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO A5 | 1 | 0 | OK | 0.05 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO D0 | 1 | 0 | OK | 0.05 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO D1 | 1 | 0 | OK | 0.04 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO D10 | 1 | 0 | OK | 0.06 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO D11 | 1 | 0 | OK | 0.04 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO D12 | 1 | 0 | OK | 0.04 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO D13 | 1 | 0 | OK | 0.05 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO D14 | 1 | 0 | OK | 0.06 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO D15 | 1 | 0 | OK | 0.05 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO D2 | 1 | 0 | OK | 0.04 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO D3 | 1 | 0 | OK | 0.05 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO D4 | 1 | 0 | OK | 0.04 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO D5 | 1 | 0 | OK | 0.04 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO D6 | 1 | 0 | OK | 0.04 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO D7 | 1 | 0 | OK | 0.05 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO D8 | 1 | 0 | OK | 0.05 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | GPIO D9 | 1 | 0 | OK | 0.05 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | I2C | 1 | 0 | OK | 0.06 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | PWM D10 | 1 | 0 | OK | 0.05 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | PWM D11 | 1 | 0 | OK | 0.05 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | PWM D3 | 1 | 0 | OK | 0.05 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | PWM D5 | 1 | 0 | OK | 0.06 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | PWM D6 | 1 | 0 | OK | 0.05 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | PWM D9 | 1 | 0 | OK | 0.05 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | SPI | 1 | 0 | OK | 0.08 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-arduino_uno | UART | 1 | 0 | OK | 0.06 |
2021-03-18 17:01:50 +00:00
jeromecoutant
eca714c93f
[STD-PIN] update tests and components
2021-03-18 17:01:50 +00:00
jeromecoutant
9d453cce68
[STD-PIN] ARDUINO_UNO pins
...
- hal/include/hal/ArduinoUnoAliases.h creation
- doc update
2021-03-18 17:01:50 +00:00
jeromecoutant
a4350f72bd
[STD-PIN] BUTTON and LED define
...
hal/tests/TESTS/mbed_hal/gpio/main.cpp is replaced by
hal/tests/TESTS/pin_names/generic/main.cpp now
2021-03-18 17:01:50 +00:00
jeromecoutant
23e3bb301d
[STD-PIN] hal-tests-tests-pin_names-generic
...
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-generic | BUTTON1 | 1 | 0 | OK | 0.05 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-generic | LED1 | 1 | 0 | OK | 1.05 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-generic | LED2 | 1 | 0 | OK | 1.04 |
| B_L4S5I_IOT01A-ARMC6 | B_L4S5I_IOT01A | hal-tests-tests-pin_names-generic | LED3 | 1 | 0 | OK | 1.04 |
2021-03-18 17:01:50 +00:00
jeromecoutant
a6c213bb10
[STD-PIN] Replace STDIO_UART_TX by USBTX
2021-03-18 17:01:50 +00:00
Hugues Kamba
c45e6ce13f
Remove usage of MBED_TARGET_LABELS in hal/ tests
...
This removes some dependency on targets.json
2021-02-19 19:15:47 +00:00
Hugues Kamba
7d49d4bce1
Create FLASH CMSIS ALGO target to remove dependency on MBED_TARGET_LABELS
...
This goes towards eventually removing reliance on targets.json to specify
the requirements of Mbed targets.
2021-02-19 16:56:37 +00:00
Rajkumar Kanagaraj
6824b14e48
CMake: rename greentea test macro
2021-02-02 07:43:40 -08:00
Rajkumar Kanagaraj
7d7159d20f
Apply suggestions from code review
...
Co-authored-by: Hugues Kamba <41612201+hugueskamba@users.noreply.github.com>
2021-01-08 03:21:03 -08:00
Rajkumar Kanagaraj
71729238f0
CMake: Add support for mbed_timing_fpga_ci_test_shield greentea test
2021-01-05 09:10:45 -08:00