Commit Graph

17 Commits (refactor_storage_greentea_cmake)

Author SHA1 Message Date
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
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
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
George Psimenos 3e63fd911c Replace USBTX/RX in docs 2021-03-24 10:18:34 +00:00
George Psimenos 8a4b88c762 Update USBTX/USBRX alias 2021-03-23 17:07:52 +00:00
George Psimenos d239ef98cd Rename USBTX/RX to CONSOLE_TX/RX 2021-03-18 17:01:54 +00:00
jeromecoutant 500ddf596a [STD-PIN] Updates after review 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 a6c213bb10 [STD-PIN] Replace STDIO_UART_TX by USBTX 2021-03-18 17:01:50 +00:00
Martin Kojtal 4e0d07d50f
Merge pull request #12897 from kjbracey-arm/tickeropt
Optimise mbed_ticker_api.c
2020-11-30 16:15:37 +00:00
rogeryou 48524f25ae add opsi driver 2020-09-16 11:27:23 +08:00
Kevin Bracey 65bc41a96b Optimise mbed_ticker_api.c
The generic code in mbed_ticker_api.c uses run-time polymorphism to
handle different tickers, and has generic run-time calculations for
different ticker widths and frequencies, with a single special-case for
1MHz.

Extend the run-time special casing to handle any conversion cases where
either the multiply or divide can be done as a shift. This is a speed
optimisation for certain platforms.

Add a new option `target.custom-tickers`. If turned off, it promises
that only USTICKER and LPTICKER devices will be used. This then permits
elimination and/or simplification of runtime calculations, saving size
and speed. If either both USTICKER and LPTICKER have the same width, or
same period numerator or denominator, or only one of them exists, then
operations can be hard-coded. This is a significant ROM space saving,
and a minor speed and RAM saving.

We get to optimise all the calculations, but the run-time polymorphism
is retained even if there is only one ticker, as it doesn't
significantly affect code size versus direct calls, and the existence of
lp_ticker_wrapper and various us_ticker optimisations requires it, even
if only LPTICKER is available.
2020-09-14 13:25:10 +03:00
Kevin Bracey 6423633122 Add documentation for LP_TICKER defines
They're now potentially useful, so document them as per the US_TICKER
defines.
2020-09-14 13:25:08 +03:00
talorion e55421aaa4 pwmout - add read methods for period and pulsewidth 2020-09-02 13:39:08 +02:00
Rajkumar Kanagaraj 993ed3b975 Refactor hal directory 2020-08-25 14:57:07 +01:00