-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from MikroElektronika/new-feature/layer-restr…
…ucture Layer Reduction
- Loading branch information
Showing
191 changed files
with
2,792 additions
and
1,039 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<p align="center"> | ||
<img src="http://www.mikroe.com/img/designs/beta/logo_small.png?raw=true" alt="MikroElektronika"/> | ||
</p> | ||
|
||
--- | ||
|
||
**[BACK TO MAIN FILE](../../changelog.md)** | ||
|
||
--- | ||
|
||
# `v2.12.0` | ||
|
||
+ released: 2024-11-08 | ||
|
||
## Changes | ||
|
||
+ [`v2.12.0`](#v2120) | ||
+ [Changes](#changes) | ||
+ [Improvements](#improvements) | ||
+ [mikroSDK](#mikrosdk) | ||
+ [Fixes](#fixes) | ||
+ [NEW HARDWARE](#new-hardware) | ||
|
||
### Improvements | ||
|
||
#### mikroSDK | ||
|
||
**mikroSDK** now has the option to skip `DRV` to `HAL` layer jumps completely. | ||
|
||
> Note that this feature is enabled by default in NECTO. | ||
### Fixes | ||
|
||
+ Fixed PIC XC8 SPI module so the code can be generated | ||
+ Previous code was too complex for XC8 compiler, so it has been simplified | ||
+ Fixed all timer module number definitions for all STM32L1x MCUs | ||
+ Previously, timer/pwm was not working correctly as these values were incorrect | ||
|
||
### NEW HARDWARE | ||
|
||
> NOTE: | ||
>> If any new hardware was added to current version, it will be listed here. | ||
Support added for following hardware: | ||
|
||
--- | ||
|
||
**[BACK TO MAIN FILE](../../changelog.md)** | ||
|
||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
function(resolve_compiler_definitions drv_to_hal) | ||
## Find the list of targets defined in the current directory. | ||
get_directory_property(TARGETS_LIST DIRECTORY ${CMAKE_CURRENT_LIST_DIR} BUILDSYSTEM_TARGETS) | ||
|
||
## We assume that there's only one target in this directory. | ||
foreach(target IN LISTS TARGETS_LIST) | ||
## Perform operations only if the target is a library. | ||
get_target_property(TYPE ${target} TYPE) | ||
if(TYPE STREQUAL "STATIC_LIBRARY" OR TYPE STREQUAL "SHARED_LIBRARY" OR TYPE STREQUAL "OBJECT_LIBRARY") | ||
message(STATUS "Resolving compiler definitions for target: ${target}") | ||
## By default, set it to DRV->HAL->HAL_LL | ||
## Backward compatibility. | ||
if(NOT ${drv_to_hal}) | ||
message(INFO ":All layers included.") | ||
target_compile_definitions(${target} PUBLIC | ||
"DRV_TO_HAL=1" | ||
) | ||
else() | ||
message(INFO ":HAL layer skipped.") | ||
target_compile_definitions(${target} PUBLIC | ||
"DRV_TO_HAL=0" | ||
) | ||
endif() | ||
endif() | ||
endforeach() | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.