Sam Grove
301b77c4b2
For drivers, events, hal, platform, rtos and mbed.h add one level of path to make sure specific and unique includes files are found.
2016-10-01 02:11:36 -05:00
Sam Grove
b7fcfd93d8
Move can_helper.h into hal/ given its a requirement of the can c hal.
2016-10-01 01:44:08 -05:00
Christopher Haster
15904b7544
restructure - Split hal into drivers+platform+hal
...
hal/common/AnalogIn.cpp -> drivers/AnalogIn.cpp
hal/api/AnalogIn.h -> drivers/AnalogIn.h
hal/api/AnalogOut.h -> drivers/AnalogOut.h
hal/common/BusIn.cpp -> drivers/BusIn.cpp
hal/api/BusIn.h -> drivers/BusIn.h
hal/common/BusInOut.cpp -> drivers/BusInOut.cpp
hal/api/BusInOut.h -> drivers/BusInOut.h
hal/common/BusOut.cpp -> drivers/BusOut.cpp
hal/api/BusOut.h -> drivers/BusOut.h
hal/common/CAN.cpp -> drivers/CAN.cpp
hal/api/CAN.h -> drivers/CAN.h
hal/api/CircularBuffer.h -> drivers/CircularBuffer.h
hal/api/DigitalIn.h -> drivers/DigitalIn.h
hal/api/DigitalInOut.h -> drivers/DigitalInOut.h
hal/api/DigitalOut.h -> drivers/DigitalOut.h
hal/api/DirHandle.h -> drivers/DirHandle.h
hal/common/Ethernet.cpp -> drivers/Ethernet.cpp
hal/api/Ethernet.h -> drivers/Ethernet.h
hal/common/FileBase.cpp -> drivers/FileBase.cpp
hal/api/FileBase.h -> drivers/FileBase.h
hal/api/FileHandle.h -> drivers/FileHandle.h
hal/common/FileLike.cpp -> drivers/FileLike.cpp
hal/api/FileLike.h -> drivers/FileLike.h
hal/common/FilePath.cpp -> drivers/FilePath.cpp
hal/api/FilePath.h -> drivers/FilePath.h
hal/common/FileSystemLike.cpp -> drivers/FileSystemLike.cpp
hal/api/FileSystemLike.h -> drivers/FileSystemLike.h
hal/common/I2C.cpp -> drivers/I2C.cpp
hal/api/I2C.h -> drivers/I2C.h
hal/common/I2CSlave.cpp -> drivers/I2CSlave.cpp
hal/api/I2CSlave.h -> drivers/I2CSlave.h
hal/common/InterruptIn.cpp -> drivers/InterruptIn.cpp
hal/api/InterruptIn.h -> drivers/InterruptIn.h
hal/common/InterruptManager.cpp -> drivers/InterruptManager.cpp
hal/api/InterruptManager.h -> drivers/InterruptManager.h
hal/common/LocalFileSystem.cpp -> drivers/LocalFileSystem.cpp
hal/api/LocalFileSystem.h -> drivers/LocalFileSystem.h
hal/api/LowPowerTicker.h -> drivers/LowPowerTicker.h
hal/api/LowPowerTimeout.h -> drivers/LowPowerTimeout.h
hal/api/LowPowerTimer.h -> drivers/LowPowerTimer.h
hal/api/PortIn.h -> drivers/PortIn.h
hal/api/PortInOut.h -> drivers/PortInOut.h
hal/api/PortOut.h -> drivers/PortOut.h
hal/api/PwmOut.h -> drivers/PwmOut.h
hal/common/RawSerial.cpp -> drivers/RawSerial.cpp
hal/api/RawSerial.h -> drivers/RawSerial.h
hal/common/SPI.cpp -> drivers/SPI.cpp
hal/api/SPI.h -> drivers/SPI.h
hal/common/SPISlave.cpp -> drivers/SPISlave.cpp
hal/api/SPISlave.h -> drivers/SPISlave.h
hal/common/Serial.cpp -> drivers/Serial.cpp
hal/api/Serial.h -> drivers/Serial.h
hal/common/SerialBase.cpp -> drivers/SerialBase.cpp
hal/api/SerialBase.h -> drivers/SerialBase.h
hal/common/Stream.cpp -> drivers/Stream.cpp
hal/api/Stream.h -> drivers/Stream.h
hal/common/Ticker.cpp -> drivers/Ticker.cpp
hal/api/Ticker.h -> drivers/Ticker.h
hal/common/Timeout.cpp -> drivers/Timeout.cpp
hal/api/Timeout.h -> drivers/Timeout.h
hal/common/Timer.cpp -> drivers/Timer.cpp
hal/api/Timer.h -> drivers/Timer.h
hal/common/TimerEvent.cpp -> drivers/TimerEvent.cpp
hal/api/TimerEvent.h -> drivers/TimerEvent.h
hal/api/Transaction.h -> drivers/Transaction.h
hal/api/can_helper.h -> drivers/can_helper.h
hal/.yotta_ignore
hal/CMakeLists.txt
hal/hal/analogin_api.h -> hal/analogin_api.h
hal/hal/analogout_api.h -> hal/analogout_api.h
hal/hal/buffer.h -> hal/buffer.h
hal/hal/can_api.h -> hal/can_api.h
hal/hal/dma_api.h -> hal/dma_api.h
hal/hal/ethernet_api.h -> hal/ethernet_api.h
hal/hal/gpio_api.h -> hal/gpio_api.h
hal/hal/gpio_irq_api.h -> hal/gpio_irq_api.h
hal/hal/i2c_api.h -> hal/i2c_api.h
hal/hal/lp_ticker_api.h -> hal/lp_ticker_api.h
hal/common/mbed_gpio.c -> hal/mbed_gpio.c
hal/common/mbed_lp_ticker_api.c -> hal/mbed_lp_ticker_api.c
hal/common/mbed_pinmap_common.c -> hal/mbed_pinmap_common.c
hal/common/mbed_ticker_api.c -> hal/mbed_ticker_api.c
hal/common/mbed_us_ticker_api.c -> hal/mbed_us_ticker_api.c
hal/module.json
hal/hal/pinmap.h -> hal/pinmap.h
hal/hal/port_api.h -> hal/port_api.h
hal/hal/pwmout_api.h -> hal/pwmout_api.h
hal/hal/rtc_api.h -> hal/rtc_api.h
hal/hal/serial_api.h -> hal/serial_api.h
hal/hal/sleep_api.h -> hal/sleep_api.h
hal/hal/spi_api.h -> hal/spi_api.h
hal/hal/storage_abstraction/Driver_Common.h -> hal/storage_abstraction/Driver_Common.h
hal/hal/storage_abstraction/Driver_Storage.h -> hal/storage_abstraction/Driver_Storage.h
hal/hal/ticker_api.h -> hal/ticker_api.h
hal/hal/trng_api.h -> hal/trng_api.h
hal/hal/us_ticker_api.h -> hal/us_ticker_api.h
hal/api/mbed.h -> mbed.h
hal/api/CThunk.h -> platform/CThunk.h
hal/common/CallChain.cpp -> platform/CallChain.cpp
hal/api/CallChain.h -> platform/CallChain.h
hal/api/Callback.h -> platform/Callback.h
hal/api/FunctionPointer.h -> platform/FunctionPointer.h
hal/api/PlatformMutex.h -> platform/PlatformMutex.h
hal/api/SingletonPtr.h -> platform/SingletonPtr.h
hal/api/critical.h -> platform/critical.h
hal/common/mbed_alloc_wrappers.cpp -> platform/mbed_alloc_wrappers.cpp
hal/common/mbed_assert.c -> platform/mbed_assert.c
hal/api/mbed_assert.h -> platform/mbed_assert.h
hal/common/mbed_board.c -> platform/mbed_board.c
hal/common/mbed_critical.c -> platform/mbed_critical.c
hal/api/mbed_debug.h -> platform/mbed_debug.h
hal/common/mbed_error.c -> platform/mbed_error.c
hal/api/mbed_error.h -> platform/mbed_error.h
hal/common/mbed_interface.c -> platform/mbed_interface.c
hal/api/mbed_interface.h -> platform/mbed_interface.h
hal/common/mbed_mem_trace.c -> platform/mbed_mem_trace.c
hal/api/mbed_mem_trace.h -> platform/mbed_mem_trace.h
hal/common/mbed_rtc_time.cpp -> platform/mbed_rtc_time.cpp
hal/common/mbed_semihost_api.c -> platform/mbed_semihost_api.c
hal/api/mbed_stats.h -> platform/mbed_stats.h
hal/common/mbed_wait_api_no_rtos.c -> platform/mbed_wait_api_no_rtos.c
hal/common/mbed_wait_api_rtos.cpp -> platform/mbed_wait_api_rtos.cpp
hal/api/platform.h -> platform/platform.h
hal/common/retarget.cpp -> platform/retarget.cpp
hal/api/rtc_time.h -> platform/rtc_time.h
hal/api/semihost_api.h -> platform/semihost_api.h
hal/api/toolchain.h -> platform/toolchain.h
hal/api/wait_api.h -> platform/wait_api.h
2016-09-30 19:18:09 -05:00
Christopher Haster
0bad622a16
restructure - Moved targets out to top level
...
hal/targets -> targets
hal/targets.json -> targets/targets.json
2016-09-30 19:18:09 -05:00
Sam Grove
7f8cadae7f
Merge pull request #2869 from geky/callback-fix-overloads
...
callback - Remove problematic callback overloads
2016-09-30 15:39:13 -05:00
Sam Grove
20756cbf77
Merge pull request #2860 from ARMmbed/event_loop_mbed_events_new
...
Event loop with mbed-events
2016-09-30 15:24:24 -05:00
Sam Grove
4c79daf576
Merge pull request #2857 from MultiTechSystems/mtq-mdot-rtos-fixes
...
resolve multiple STM32F411RE configurations in mbed_rtx.h
2016-09-30 15:01:53 -05:00
Sam Grove
b0b7b3cf9c
Merge pull request #2849 from pan-/fix_nordic_critical_section
...
Fix nordic critical section entry and exit
2016-09-30 15:00:43 -05:00
Bogdan Marinescu
53218f9be8
Include events library headers in mbed.h
...
The inclusion is conditioned by the presence of the events library
(`MBED_CONF_EVENTS_PRESENT`). This ensures backward compatibility with
SDK builds.
2016-09-30 17:12:00 +03:00
Christopher Haster
f8917e1cd9
callback - Removed problematic callback overloads
...
Unfortunately, it is very difficult to infer the parameters of
function-objects generically in C++03 without any additional type
information. The current implementation fails to do so, and the compiler
simply bails with "unable to deduce template parameter".
Rather than leaving the user with a small novel of error messages, this
patch removes the problematic callback overloads, leaving only callback
overloads for the original pointer types.
2016-09-29 16:30:49 -05:00
Vincent Coubard
dcf03310d0
NRF5 - Fix usage of volatile variable in nordic critical section implementations.
2016-09-29 10:05:02 +01:00
svastm
d37e4d876d
STM32L4 - Rename RTC_LSI
2016-09-29 10:00:48 +02:00
svastm
f361a430ef
STM32L1 - Rename RTC_LSI
2016-09-29 10:00:45 +02:00
svastm
da44e99a1c
STM32L0 - Rename RTC_LSI
2016-09-29 10:00:41 +02:00
svastm
57208bb651
STM32F7 - Rename RTC_LSI
2016-09-29 10:00:38 +02:00
svastm
a0fd0d39c1
STM32F4 - Rename RTC_LSI
2016-09-29 10:00:34 +02:00
svastm
faae46385f
STM32F3 - Rename RTC_LSI
2016-09-29 09:52:05 +02:00
svastm
574e7b7622
STM32F2 - Rename RTC_LSI
2016-09-29 09:52:05 +02:00
svastm
a4db938b7a
STM32F1 - Rename RTC_LSI
2016-09-29 09:52:05 +02:00
svastm
9053d3b9ea
STM32F0 - Rename RTC_LSI
2016-09-29 09:52:05 +02:00
Sam Grove
2564a833c0
Merge pull request #2822 from anangl/master
...
TARGET_NRF5: Removed waiting for TX completed from 'serial_putc()'.
2016-09-28 15:37:58 -07:00
Sam Grove
9e1b53f6d3
Merge pull request #2851 from geky/callback-function-objects
...
callback - Add size-limited function-object overloads to Callback
2016-09-28 15:00:09 -07:00
Sam Grove
7608401f2b
Merge pull request #2810 from toyowata/master
...
[LPC1347] Fix PwmOut prescaler for 16-bit timer
2016-09-28 14:58:55 -07:00
Sam Grove
3d1531fcb1
Merge pull request #2767 from mikaleppanen/lwip_2_0
...
Replace lwIP 1.4.1 with lwIP 2.0
2016-09-28 14:58:22 -07:00
Mike Fiore
fdd267cadf
resolve multiple STM32F411RE configurations in mbed_rtx.h
2016-09-28 14:57:46 -05:00
Christopher Haster
161a2ec259
callback - Added size-limited function-object overloads to Callback
...
The callback class can now accept generalized function-objects:
class Thing {
public:
int value;
void operator()() {
printf("hi! %d\n", value);
}
};
Callback<void()> cb(Thing(2));
However, with the intention of avoiding implicit dynamic-memory
allocations, the Callback class is limited to a single word of storage.
Exceeding this size will eliminate the function-object type from the
overload set and fail to compile.
Effort was invested to make this situation very clear to the user. Here
is an example error message with noise removed:
[ERROR] ./main.cpp: In function 'int main()':
./mbed-os/hal/api/Ticker.h:101:10: note:
no known conversion for argument 1 from 'BigFunc' to 'mbed::Callback<void()>'
The real benefit of this change is the ability for users to hook into
the attributes of the Callback class. This mostly allows lifetime
management of the function-objects from third-party libraries (such as
the Event class from mbed-events).
Note: The convenient `callback` function may become ambiguous if
provided with a type that defines multiple incompatible `operator()`
member functions.
2016-09-28 12:23:29 -05:00
Christopher Haster
804a621231
callback - Moved internal dispatch mechanism to generated op-table
...
This allows additional attributes to be attached to the internally
generated type such as move and destructor operations with no increase
in RAM footprint.
The current overloads can't take advantage of this, but it does open
the possibility for more powerful overloads that can provide these
additional attributes.
Changes to mbed-os memory consumption:
.text .data .bss
before 57887 2292 7692
after 57842 2292 7691
2016-09-28 12:23:24 -05:00
Vincent Coubard
c536392079
TARGET_NRF5 - Add critical section enter/exit overrides for NRF5 targets.
...
This change takes advantage of the reworked primitives of SDK v11.
2016-09-28 13:43:31 +01:00
svastm
0766d39746
STM32F4 - Enable the low power timer
...
Enable the low power timer for the following targets:
- NUCLEO_F411RE
- NUCLEO_F401RE
- DISCO_F429ZI
- NUCLEO_F446RE
- NUCLEO_F410RB
- DISCO_F469NI
- NUCLEO_F446ZE
- B86B_F446VE
2016-09-28 09:36:37 +02:00
svastm
21b11a26ec
STM32F4 - Add low power timer
2016-09-28 09:31:03 +02:00
Vincent Coubard
1aa76b7724
HAL - Tag implementation of critical section enter/exit as weak so it can be overriden.
...
This change allows a port to provide its own implementation of:
* core_util_critical_section_enter
* core_util_critical_section_exit
Some system like the NRF series require specific behavior for the critical
section and now can override it properly.
2016-09-28 08:13:46 +01:00
Mika Leppänen
2bad43d7ca
Corrected K66F and K64F drivers to make "or" operation instead of "and" when multicast
...
group address is added to filter.
2016-09-28 08:48:43 +03:00
Głąbek, Andrzej
86005da023
Merge branch 'master' of https://github.com/ARMmbed/mbed-os
...
* 'master' of https://github.com/ARMmbed/mbed-os : (63 commits)
[XDOT_L151] add IAR support
Modify mbedtls scripts to add config-no-entropy.h
Remove extra spaces
[XDOT_L151] include xDot in mbed 5 releases
[STM32F429ZI] INITIAL_SP correction
[STM32F091RC] patch for tests-mbedmicro-rtos-mbed-threads
mbedtls trng - remove MBEDTLS_ENTROPY_HARDWARE_ALT
targets - add TRNG device_has to STM32F7 targets
mbedtls - move TRNG mbed impl into platform folder
TRNG HAL - fix length doc wording for get_bytes
HAL TRNG - add dummy variable to empty structs
TRNG - protect HAL implementation if DEVICE_TRNG is not defined
TRNG - remove set seed function
HAL - RNG rename to TRNG
HAL - rng nuvoton cleanup code style
RNG - fix warnings due to obj not used for some targets
RNG - rename rng_get_numbers to rng_get_bytes
mbedtls - mbed wrapper rename to mbed_rng
HAL: Add rng set seed value function
NUMAKER_PFM_NUC472: Add RGN HAL API implementation
...
# Conflicts:
# hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/serial_api.c
2016-09-28 07:06:28 +02:00
Sam Grove
58c12f19b2
Merge pull request #2824 from jeromecoutant/PR_F429ZI_SP
...
[STM32F429ZI] INITIAL_SP correction
2016-09-27 21:56:24 -07:00
Sam Grove
4a6558083e
Merge pull request #2814 from bcostm/adcintch_F3
...
STM32F3xx - Add support of ADC internal channels
2016-09-27 21:54:27 -07:00
Sam Grove
681cff8010
Merge pull request #2785 from pan-/remove_warnings_from_nordic_target
...
TARGET_NRF - Remove warnings from nordic target.
2016-09-27 21:53:28 -07:00
Sam Grove
d204d69003
Merge pull request #2749 from bcostm/serialFC_disco-f746ng
...
DISCO_F746NG - Add Serial Flow Control pins
2016-09-27 21:52:37 -07:00
Sam Grove
50c30d384d
Merge pull request #2741 from pan-/conf_flush_at_exit
...
Add configuration for IO flushing during exit.
2016-09-27 21:52:13 -07:00
Sam Grove
5ef720246b
Merge pull request #2726 from jeromecoutant/PR_NUCLEO_F207ZG_D11
...
[NUCLEO_F207ZG] Conflict with Arduino D11 and Ethernet port
2016-09-27 21:51:48 -07:00
Sam Grove
66329c4e71
Merge pull request #2827 from MultiTechSystems/xdot-add-release
...
include MultiTech xDot in mbed 5 releases
2016-09-27 18:42:58 -07:00
Mike Fiore
7b2942157a
[XDOT_L151] add IAR support
2016-09-27 16:09:15 -05:00
Andres AG
21a7b1de04
Modify mbedtls scripts to add config-no-entropy.h
2016-09-27 16:19:39 +01:00
Mike Fiore
1b8cb3ca76
[XDOT_L151] include xDot in mbed 5 releases
2016-09-27 08:48:08 -05:00
jeromecoutant
dfbb5675ed
[STM32F429ZI] INITIAL_SP correction
2016-09-27 14:39:20 +02:00
Głąbek, Andrzej
d0eed52cde
Removed waiting for TX completed from 'serial_putc()', moved it to 'serial_init()' to allow passing tests MBED_37/38.
2016-09-27 14:03:42 +02:00
Martin Kojtal
ef58562ad0
targets - add TRNG device_has to STM32F7 targets
2016-09-27 09:14:48 +01:00
Martin Kojtal
88b2220548
TRNG HAL - fix length doc wording for get_bytes
2016-09-27 09:14:37 +01:00
Martin Kojtal
48544fc6eb
HAL TRNG - add dummy variable to empty structs
...
Otherwise it's implementation specific, IAR fails to compile.
2016-09-27 09:14:31 +01:00
Martin Kojtal
f8c6c23ced
TRNG - protect HAL implementation if DEVICE_TRNG is not defined
2016-09-27 09:14:26 +01:00
Martin Kojtal
9048113562
TRNG - remove set seed function
2016-09-27 09:14:21 +01:00