Commit Graph

180 Commits (3a466307d2d90961d10bc73c60eba002c9d7244d)

Author SHA1 Message Date
Martin Kojtal 4f156de4bf
Merge pull request #15344 from MaximIntegrated/master
Correct MAX32620 boards macro for USB library.
2022-10-31 13:53:16 +00:00
Ahmet Alincak 1432f8141b Correct MAX32620 boards macro for USB library. 2022-10-31 10:13:40 +03:00
Sadik.Ozer fb1d9c2878 Replace MAX32660, MAX32670 I2C driver with final one in MSDK
- apply clang-format
- Fix i2c repeated start issue

Signed-off-by: Sadik.Ozer <sadik.ozer@analog.com>
2022-10-27 13:47:44 +03:00
Sadik.Ozer 4dd01440c4 utf-8 check
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-14 10:27:17 +03:00
Sadik.Ozer 8323e9a7f5 Fix GCC_ARM warnings
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 11:23:39 -05:00
Sadik.Ozer 2f813fcbaa Update system files and mbed wrappers
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 11:22:45 -05:00
Sadik.Ozer 7826582e44 Update LP API
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 10:41:07 -05:00
Sadik.Ozer 92983653ed Leave last page of flash
It is used by rom bootloader

Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 10:41:07 -05:00
Sadik.Ozer 24f4738f24 Provide option to user to drive SS pin too
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 10:41:06 -05:00
Sadik.Ozer f1bce7389f Provide all uart mapping
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 10:41:06 -05:00
Sadik.Ozer 65e6595d7b Fix rtc read issue
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 10:41:05 -05:00
Sadik.Ozer 8a2681bf6e Add peripheral driver files
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 10:41:05 -05:00
Sadik.Ozer 704bfc786a Add peripheral interface files
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 10:41:02 -05:00
Sadik.Ozer f40887acdd Remove __R because of confliction
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 10:41:00 -05:00
Sadik.Ozer fc90e9a64e Update cmsis files
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 10:40:59 -05:00
Sadik.Ozer 028a85c0b7 Add initial version of files
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2022-04-08 10:40:57 -05:00
Ahmet Alincak 751d0cf98b Correct heap region calculation for Maxim targets 2022-03-21 00:02:59 +03:00
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
Michael Hasling dc30b7afe9 Fix initialisation sequence of RTC
Initialisation of RTC was wrong for boot from sysreset, and resulted
in RTOS with nothing to do in its main thread. This fixes the bug.
2021-11-29 16:45:22 +00:00
Martin Kojtal 34bbc75aa9
Merge pull request #15109 from MaximIntegrated/add-MAX32660
Add MAX32660EVSYS
2021-10-12 14:51:57 +02:00
Sadik.Ozer 196008205d Add missing file in CMakeList.txt
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2021-10-07 17:58:13 +03:00
Sadik.Ozer b8bef044dd Use lower case
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2021-10-07 17:13:19 +03:00
Sadik.Ozer 4db4364e91 Remove device folder as subdir
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2021-10-07 12:45:44 +03:00
Sadik.Ozer de4d4ca40c Remove unexisting file from CMakeList
Remove unneeded files
Remove const float value

Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2021-10-06 07:53:50 +03:00
Sadik.Ozer 8961d73ff1 Remove dead code, fix gcc warning
Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2021-10-04 12:58:42 +03:00
Sadik.Ozer 9c029bfc08 Add MAX32660EVSYS
- Add SDK files (updated to match mbed system)
- Implement mbed API files
- Update mbed related configuration (CMakefiles, .json files...)
- Add gcc and arm related files (linker, scatter, startup...)
- Tested with ARM and GCC_ARM toolchain
- GreenTea tests have been executed

Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2021-09-30 14:07:55 +03:00
Sadik.Ozer 6f8e7232d1 Fix ARM toolchain #L6803W Relocation warnings
While building with ARM toolchain relocation warnings appears
This commit will fix it for MAX32625/30 targets.

The system interrupt function is defined as weak in startup file
and its overvides in other files, Becuase of the functions is overrites
while calling it in startup modile by B XXXXX probably compiler give
info purpose warnings... By using using . instead function name it says
go existing point to the compiler.
Warning detail:
https://www.keil.com/support/man/docs/armerr/armerr_dom1365073159742.htm

Signed-off-by: Sadik.Ozer <Sadik.Ozer@maximintegrated.com>
2021-09-28 12:01:13 +03:00
Ahmet Alincak 43d9c0fbb4 Gate ticker (timer0) clock on deepsleep 2021-06-07 00:41:09 +03:00
Martin Kojtal 016d725673
Merge pull request #14465 from harmut01/baremetal_maxim
Maxim: Add bare metal support to targets
2021-04-15 17:31:12 +02:00
harmut01 1c671c43ff Refactor definition of heap load region start 2021-04-07 14:27:34 +01:00
harmut01 18d8499979 Refactor ER_IROM1 load region defintion 2021-03-31 16:27:28 +01:00
harmut01 3d66447302 Refactor RW_IRAM1 load region definition 2021-03-31 14:23:32 +01:00
harmut01 3d1051dbbe Maxim: Add bare metal support to targets
Add heap load region to scatter file and update `targets.json` to
provide baremetal support to the following targets: SDT32620B,
SDT32625B, MAX32620FTHR, MAX32625MBED, MAX32625PICO, and MAX32630FTHR.
2021-03-26 09:07:52 +00:00
George Psimenos 9cc2deb446 typo 2021-03-25 15:25:40 +00:00
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 88a242f749
Merge pull request #14306 from hugueskamba/hk_cmake_create_cmsis_cortex_libs
CMake: Create CMSIS library targets to remove dependency on MBED_TARGET_LABELS
2021-02-23 08:36:49 +00:00
Hugues Kamba 80c679cc27 MAX32625: Fix CMake build
* Correct board CMake target name to match board name
* Make MAX32625 depend on MAXIM CMake target to inherit its include dirs
* Correct path to linker files
2021-02-22 13:38:32 +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
Martin Kojtal 94f3c7b89b Maxim CMake: fix sources for max32630fthr 2021-02-15 08:58:39 +00:00
Martin Kojtal cbc6af518f
Apply suggestions from code review
Co-authored-by: Hugues Kamba-Mpiana <41612201+hugueskamba@users.noreply.github.com>
2021-02-14 19:21:14 +00:00
Martin Kojtal 0311d81314 CMake MAX32630: fix linker script
Forgotten to set it for the target
2021-02-11 17:42:53 +00:00
Martin Kojtal 2e320bcfe9 CMake MAX32630: fix target name 2021-02-11 17:40:07 +00:00
Martin Kojtal 9c9d83343c CMake Maxim: fix some errors with renames 2021-02-11 17:34:48 +00:00
Martin Kojtal 351d6749cb CMake Maxim: fix targets naming
Add boot no-boot targets for max32625. This should be cleaned up better once we get
the folder structure enforced by the old tools fixed.
2021-02-11 17:24:19 +00:00
Ahmet Alincak a84827e0f1 Gate ticker (timer0) clock on deepsleep 2021-02-08 21:01:29 +03:00
Ahmet Alincak 2ca990eb53 Use MBED_ALIGN and remove mbed.h from header 2021-01-11 22:53:36 +03:00
Ahmet Alincak 1fd7de0eee Update header file to include SPDX identifier 2021-01-11 15:04:55 +03:00
Ahmet Alincak c63a9b7ff8 Maxim targets; Add USB stack implementation 2021-01-11 15:04:48 +03:00
Martin Kojtal bd3f13c937
Merge pull request #13969 from hugueskamba/hk_remove_MAXIM_support
Maxim: Remove support for some Maxim targets
2020-12-10 13:49:32 +00:00