Commit Graph

101 Commits (master)

Author SHA1 Message Date
Deepak V. Shreshti 92bfbccde7 Added TMPM4GR Platform
New Platform for Toshiba Added
2022-11-30 21:02:16 +05:30
Deepak V. Shreshti c5ca907042 Removed UTF8 Chars 2022-09-09 17:46:40 +05:30
Deepak V. Shreshti 2a72a7079b Added TMPM4NR Platform
New Platform for Toshiba Added
2022-09-08 18:57:09 +05:30
Deepak V. Shreshti 61e5a61e34 Removed UTF-8 Chars 2022-08-24 18:31:42 +05:30
Deepak V. Shreshti adadcf3171 Updated System file and Scatter file 2022-08-23 18:26:51 +05:30
Deepak V. Shreshti ae0fcefd17 Updated I2C pin names in PinNames.h header 2022-02-28 14:46:11 +05:30
Hari Limaye f4e5359710 GPIO: Use uintptr_t for gpio_irq_api context
The HAL gpio_irq_api stores object IDs, which serve as a form of context
for the dispatch of the interrupt handler in the drivers level
InterruptIn Class. The way this is achieved is that the InterruptIn
Class casts its address to uint32_t, which is stored as the ID.
This results in compilation failure when the size of an object pointer
is greater than uint32_t, for example when building on a PC for unit
testing.

In order to allow Unit Testing of the InterruptIn Class, we replace the
use of uint32_t with uintptr_t (type capable of holding a pointer),
which allows portability and expresses intentions more clearly.
In aid of this latter goal, we also replace the use of the name "id"
with "context", to improve clarity - these are addresses of the context
related to that callback.
2022-01-26 18:12:52 +00:00
Deepak V. Shreshti 5bc3aa18c0 Updated code to remove float symbols 2021-12-23 19:19:57 +05:30
Deepak V. Shreshti cd4ee72979 Added SPDX Header
Updated PIN Names
Added M4KN MCU Deatils in index.json
Removed Special Chars
2021-12-23 19:19:57 +05:30
Deepak V. Shreshti 44249f0d40 Added M4KN Platform
New Platform M4KN for Toshiba has been added
2021-12-23 19:19:56 +05:30
George Psimenos 61cfaa15cd Update UART pin names & add MBED_CONF_TARGET_STDIO_UART overrides 2021-03-23 11:17:17 +00:00
George Psimenos 885cdef5f7 Add standard pin-names validation script & tests 2021-03-18 17:01:53 +00:00
Martin Kojtal a9766519cf
Merge pull request #14345 from harmut01/baremetal_toshiba
Add bare metal support to Toshiba targets
2021-03-02 16:44:29 +00:00
Harrison Mutai 191bd023eb Remove erroneous object file reference in IRAM1 definition 2021-03-01 16:27:24 +00:00
Harrison Mutai c55210fdc4 Correct vector table and ram size definitions 2021-03-01 15:30:31 +00:00
Harrison Mutai fc00035c0f Add bare metal support to Toshiba targets
Modify scatter files to specify heap load region and add small libraries
to list of supported libraries in target.json.# Please enter the commit message for your changes. Lines starting
2021-02-25 09:29:28 +00:00
Hugues Kamba 2c3481297c CMake: Create CMSIS library targets 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 13:39:32 +00:00
Harrison Mutai 176e451c20 CMake: Refactor Toshiba targets
Refactor all Toshiba targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.

A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using `target_link_libraries` its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-11 11:51:20 +00:00
Harrison Mutai f8805df55b CMake: add cmake support for Toshiba targets 2021-01-05 09:20:41 +00:00
Harrison Mutai 4fad1112e5 Add SPDX license identifier to Arm files
Add license identifier to files which Arm owns the copyright to,
and contain either BSD-3 or Apache-2.0 licenses. This is to address
license errors raised by scancode analysis.
2020-10-15 10:47:27 +01:00
Harrison Mutai d1d6bf51b3 Add license notice to Arm copyrighted source files
Scancode found missing license notices in our source files. This commit
addresses those issues by adding an Apache-2.0 notice to source files
highlighted.
2020-10-15 10:46:35 +01:00
Martin Kojtal 468372e759
Merge pull request #13492 from talorion/fix-PwmOut-resets-after-suspend
Fix pwm out resets after suspend
2020-09-10 12:40:18 +01:00
Jaeden Amero 612b148fd4 stack: armc: Workaround config passing bug
Workaround a bug where the boot stack size configuration option is not
passed on to armlink, the Arm Compiler's linker. Prefer
MBED_CONF_TARGET_BOOT_STACK_SIZE if present, as this is what the
configuration system should provide. Fall back to MBED_BOOT_STACK_SIZE
if MBED_CONF_TARGET_BOOT_STACK_SIZE is not defined, as in the case of
buggy tools. If both MBED_CONF_TARGET_BOOT_STACK_SIZE and
MBED_BOOT_STACK_SIZE are not defined, then we fall back to a hard-coded
value provided by the linkerscript. See
https://github.com/ARMmbed/mbed-os/issues/13474 for more information.
2020-09-10 10:08:38 +01:00
Jaeden Amero 39e69d328d Use boot stack size from config system
To allow overriding of the boot stack size from the Mbed configuration
system, consistently use MBED_CONF_TARGET_BOOT_STACK_SIZE rather than
MBED_BOOT_STACK_SIZE.

Fixes #10319
2020-09-10 10:08:38 +01:00
talorion f2bed4d582 pwmout - TMPM4G9 - add read methods for period and pulsewidth 2020-09-02 13:39:16 +02:00
talorion 7388ff8b43 pwmout - TMPM46B - add read methods for period and pulsewidth 2020-09-02 13:39:16 +02:00
Lingkai Dong 0ac17eaea8 Define MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE properly in rtos mbed_lib.json 2020-05-15 15:16:44 +01:00
Deepak Shreshti dc4f086129 Removed Toshiba target AdBun-M066, M3H6 and M3HQ.
---
AdBun-M066

Removed from targets.json
5d64e55880/targets/targets.json (L12900-L12941)

Deleted directory
https://github.com/ARMmbed/mbed-os/tree/master/targets/TARGET_TOSHIBA/TARGET_TMPM066

Removed from mbed_rtx.h
5d64e55880/targets/TARGET_TOSHIBA/mbed_rtx.h (L23-L33)
---

AdBun-M3H6

Removed from targets.json
5d64e55880/targets/targets.json (L13465-L13507)

Deleted directory
https://github.com/ARMmbed/mbed-os/tree/master/targets/TARGET_TOSHIBA/TARGET_TMPM3H6

Removed from mbed_rtx.h
5d64e55880/targets/TARGET_TOSHIBA/mbed_rtx.h (L47-L53)
---

AdBun-M3HQ

Removed from targets.json
5d64e55880/targets/targets.json (L14159-L14208)

Deleted directory
https://github.com/ARMmbed/mbed-os/tree/master/targets/TARGET_TOSHIBA/TARGET_TMPM3HQ

Removed from mbed_rtx.h
5d64e55880/targets/TARGET_TOSHIBA/mbed_rtx.h (L63-L69)
---
2020-04-17 10:22:33 +05:30
Filip Jagodzinski a958199594 TOSHIBA: Add hal_reset_reason_get_capabilities()
Override the default, weak implementation of
hal_reset_reason_get_capabilities() for TMPM066, TMPM3H6, TMPM3HQ,
TMPM46B & TMPM4G9.
2020-01-03 16:54:19 +01:00
Deepak V. Shreshti b2616ca1fe Resolved linker issue 2019-12-06 15:22:55 +05:30
Deepak V. Shreshti 0ad1133ea5 Added SPDX identifier License 2019-12-06 15:15:05 +05:30
Deepak V. Shreshti 6fd5fbc7d5 Updated HAL files of TMPM4G9 2019-12-06 15:15:05 +05:30
Kevin Bracey fe22bc023e Update HAL CRC API
* Change "is supported" check to be a macro, so it can be done at
  compile-time.
* Eliminate weird shift on 7-bit CRCs.
* Add support for 32-bit CRCs and reversals to TMPM3HQ.
2019-12-02 14:45:37 +02:00
Martin Kojtal 5f7ecea00b
Revert "MbedCRC and CRC HAL revisions" 2019-11-26 13:45:37 +00:00
Kevin Bracey 1f94428a56 Update HAL CRC API
* Change "is supported" check to be a macro, so it can be done at
  compile-time.
* Eliminate weird shift on 7-bit CRCs.
* Add support for 32-bit CRCs and reversals to TMPM3HQ.
2019-11-13 14:31:49 +02:00
Kevin Bracey fb6aa3ef4f Clean up ARM toolchain heap+stack setup in targets
ARM Compiler 6.13 testing revealed linker errors pointing out
conflicting use of `__user_setup_stackheap` and
`__user_initial_stackheap` in some targets. Remove the unwanted
`__user_initial_stackheap` from the targets - the setup is
centralised in the common platform code.

Looking into this, a number of other issues were highlighted

* Almost all targets had `__initial_sp` hardcoded in assembler,
  rather than getting it from the scatter file. This was behind
  issue #11313. Fix this generally.
* A few targets' `__initial_sp` values did not match the scatter
  file layout, in some cases meaning they were overlapping heap
  space. They now all use the area reserved in the scatter file.
  If any problems are seen, then there is an error in the
  scatter file.
* A number of targets were reserving unneeded space for heap and
  stack in their startup assembler, on top of the space reserved in
  the scatter file, so wasting a few K. A couple were using that
  space for the stack, rather than the space in the scatter file.

To clarify expected behaviour:

* Each scatter file contains empty regions `ARM_LIB_HEAP` and
  `ARM_LIB_STACK` to reserve space. `ARM_LIB_STACK` is sized
  by the macro `MBED_BOOT_STACK_SIZE`, which is set by the tools.
  `ARM_LIB_HEAP` is generally the space left over after static
  RAM and stack.
* The address of the end of `ARM_LIB_STACK` is written into the
  vector table and on reset the CPU sets MSP to that address.
* The common platform code in Mbed OS provides `__user_setup_stackheap`
  for the ARM library. The ARM library calls this during startup, and
  it calls `__mbed_user_setup_stackheap`.
* The default weak definition of `__mbed_user_setup_stackheap` does not
  modify SP, so we remain on the boot stack, and the heap is set to
  the region described by `ARM_LIB_HEAP`. If `ARM_LIB_HEAP` doesn't
  exist, then the heap is the space from the end of the used data in
  `RW_IRAM1` to the start of `ARM_LIB_STACK`.
* Targets can override `__mbed_user_setup_stackheap` if they want.
  Currently only Renesas (ARMv7-A class) devices do.
* If microlib is in use, then it doesn't call `__user_setup_stackheap`.
  Instead it just finds and uses `ARM_LIB_STACK` and `ARM_LIB_HEAP`
  itself.
2019-10-23 14:53:49 +03:00
Ganesh Ramachandran edf36fb2ae Added new features to TMPM46B 2019-08-16 10:43:52 +05:30
Martin Kojtal 97d50ed936
Merge pull request #10873 from ganesh-ramachandran/m3hq_newfeatures
Add new features to Toshiba's TMPM3HQ
2019-07-05 13:06:46 +01:00
Martin Kojtal e08b7137a6
Merge pull request #10874 from ganesh-ramachandran/m3h6_newfeatures
Add new features to Toshiba's TMPM3H6
2019-07-05 13:06:03 +01:00
Ganesh Ramachandran 61ad427a35 Changes for RTC peripheral status 2019-07-03 17:58:47 +05:30
Ganesh Ramachandran b4c0ce3a7e Changes for RTC peripheral status 2019-07-03 17:57:49 +05:30
Ganesh Ramachandran 3d48b7c1cc Changes for RTC peripheral status 2019-07-03 17:50:26 +05:30
Ganesh Ramachandran 6841f4a73a Added new features to TMPM3HQ 2019-07-03 17:18:10 +05:30
Ganesh Ramachandran bcaeddcb35 Removed dead code in TMPM4G9 - rtc_api.c 2019-07-03 17:10:30 +05:30
Ganesh Ramachandran 4bbc29f32c Added SPDX identifier 2019-07-03 17:10:29 +05:30
Ganesh Ramachandran 2384b69b16 Added new features to TMPM4G9 2019-07-03 17:10:29 +05:30
Ganesh Ramachandran 2fee8d7390 Added new features to TMPM3H6 2019-07-03 17:01:41 +05:30
Martin Kojtal ccb63d771e
Merge pull request #10857 from ARMmbed/feature-watchdog
Add Watchdog and ResetReason
2019-07-03 11:43:52 +01:00
Maciej Bocianski fcde82ba4f HAL I2C: adds missing DEVICE_I2C guards 2019-06-19 23:08:55 +02:00
Steve Cartmell ad295e64ba fix(hal-watchdog): Guard TMPM 'ResetReason' code behind feature flag 2019-05-24 12:23:43 +02:00