Skip to content

Commit

Permalink
mikroSDK v2.7.2
Browse files Browse the repository at this point in the history
Released: 2023-03-09

New Features

+ mikroSDK logger modified
  + Added implementation for standard output to terminal
+ mikroSDK modified to include custom boards
  + Feature now allows users to add their own board definitions to mikroSDK seamlessly
  + Modified file - <https://github.com/MikroElektronika/mikrosdk_v2/blob/master/bsp/board/CMakeLists.txt>
+ Graphic library improved
  + Ellipse added to draw objects

Improvements

+ ILI9341 setup build improved
  + Setup will now be buildable only for devices which have adequate pin connections

Fixes

+ Fixed HAL layer array initialization for 8-bit architectures
  + Previously, MCUs with only one pin per module didn't function correctly
  + Fixed for following modules:
    + ADC
    + I2C
    + PWM
    + SPI
    + UART
+ Fixed uart_configure_default API
  + stop_bits previosuly set incorrectly

NEW HARDWARE

Support added for following hardware:

+ ATmega328P - <https://www.microchip.com/en-us/product/ATmega328P>
  + Fully supported in mikroSDK
+ Arduino Uno Rev3 - <https://store.arduino.cc/products/arduino-uno-rev3>
  + Fully supported in mikroSDK
  + Added shield definitions for mikroBUS
    + Arduino UNO click shield - <https://www.mikroe.com/arduino-uno-click-shield>
+ UNI Clicker added to AVR mikroSDK - <https://www.mikroe.com/uni-clicker>

Collaborators

We would like to thank the following people for contributing:

+ Nikola Hadzic - <https://github.com/NH002>
  + Graphic Library
    + Added and tested ellipse algorithm
      + view file - <https://github.com/MikroElektronika/mikrosdk_v2/blob/master/api/gl/lib/src/gl_shapes.c#L2126>
  • Loading branch information
StrahinjaJacimovic committed Mar 9, 2023
1 parent 2ec6648 commit cb1b66a
Show file tree
Hide file tree
Showing 2,529 changed files with 2,936 additions and 4,056 deletions.
72 changes: 71 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

**VERSIONS:**

+ **[v2.7.2](#v272)**
+ **[v2.7.1](#v271)**
+ **[v2.7.0](#v270)**
+ **[v2.6.0](#v260)**
Expand All @@ -23,9 +24,78 @@
---
---

## `v2.7.2`

+ released: 2023-03-09

### `2.7.2` Changes

1. **[New Features](#272-new-features)**
2. **[Improvements](#272-improvements)**
3. **[Fixes](#272-fixes)**
4. **[NEW HARDWARE](#272-new-hardware)**
5. **[Collaborators](#272-collaborators)**

#### `2.7.2` New Features

+ mikroSDK logger modified
+ Added implementation for standard output to terminal
+ mikroSDK modified to include custom boards
+ Feature now allows users to add their own board definitions to mikroSDK seamlessly
+ [Modified file](https://github.com/MikroElektronika/mikrosdk_v2/blob/master/bsp/board/CMakeLists.txt)
+ Graphic library improved
+ Ellipse added to draw objects

#### `2.7.2` Improvements

+ **ILI9341** setup build improved
+ Setup will now be buildable only for devices which have adequate pin connections

#### `2.7.2` Fixes

+ Fixed HAL layer array initialization for 8-bit architectures
+ Previously, MCUs with only one pin per module didn't function correctly
+ Fixed for following modules:
+ ADC
+ I2C
+ PWM
+ SPI
+ UART
+ Fixed `uart_configure_default` API
+ `stop_bits` previosuly set incorrectly

#### `2.7.2` NEW HARDWARE

Support added for following hardware:

+ [ATmega328P](https://www.microchip.com/en-us/product/ATmega328P)
+ Fully supported in mikroSDK
+ [Arduino Uno Rev3](https://store.arduino.cc/products/arduino-uno-rev3)
+ Fully supported in mikroSDK
+ Added shield definitions for mikroBUS
+ [Arduino UNO click shield](https://www.mikroe.com/arduino-uno-click-shield)
+ [UNI Clicker](https://www.mikroe.com/uni-clicker) added to AVR mikroSDK

#### `2.7.2` Collaborators

**We would like to thank the following people for contributing:**

+ **[@Nikola Hadzic](https://github.com/NH002)**
+ **Graphic Library**
+ Added and tested ellipse algorithm
+ **[view file](https://github.com/MikroElektronika/mikrosdk_v2/blob/master/api/gl/lib/src/gl_shapes.c#L2126)**

---
**[BACK TO TOP OF 2.7.2](#v272)**

---
**[BACK TO TOP](#changelog)**

---

## `v2.7.1`

+ released: 2022-12-01
+ released: 2022-12-28

### `2.7.1` Changes

Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## ./CMakeLists.txt
cmake_minimum_required(VERSION 3.11)
if (${TOOLCHAIN_LANGUAGE} MATCHES "MikroC")
project(MikroSDK VERSION 2.7.1 LANGUAGES MikroC)
project(MikroSDK VERSION 2.7.2 LANGUAGES MikroC)
else()
project(MikroSDK VERSION 2.7.1 LANGUAGES C ASM)
project(MikroSDK VERSION 2.7.2 LANGUAGES C ASM)
find_package(MikroC.Core)
add_compile_options("-fms-extensions")
endif()
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (C) 2022 MikroElektronika d.o.o.
Copyright (C) 2023 MikroElektronika d.o.o.
Contact: https://www.mikroe.com/contact

This file is part of the mikroSDK package
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# mikroSDK 2.0

[![SDK Version](https://img.shields.io/badge/mikroSDK%20version-2.7.1-gold)](https://github.com/MikroElektronika/mikrosdk_v2/tree/mikroSDK-2.7.1)
[![SDK Version](https://img.shields.io/badge/mikroSDK%20version-2.7.2-gold)](https://github.com/MikroElektronika/mikrosdk_v2/tree/mikroSDK-2.7.2)

---
## About
Expand Down
3 changes: 3 additions & 0 deletions REQUIREMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

**SDK requirements by version:**

* **v2.7.2**
* [`FLASH1`]
* [`RAM1`]
* **v2.7.1**
* [`FLASH1`]
* [`RAM1`]
Expand Down
193 changes: 98 additions & 95 deletions SUPPORTED_CHIP_LIST.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/gl/lib/include/gl.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2022 MikroElektronika d.o.o.
** Copyright (C) 2023 MikroElektronika d.o.o.
** Contact: https://www.mikroe.com/contact
**
** This file is part of the mikroSDK package
Expand Down
2 changes: 1 addition & 1 deletion api/gl/lib/include/gl_colors.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2022 MikroElektronika d.o.o.
** Copyright (C) 2023 MikroElektronika d.o.o.
** Contact: https://www.mikroe.com/contact
**
** This file is part of the mikroSDK package
Expand Down
2 changes: 1 addition & 1 deletion api/gl/lib/include/gl_image.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2022 MikroElektronika d.o.o.
** Copyright (C) 2023 MikroElektronika d.o.o.
** Contact: https://www.mikroe.com/contact
**
** This file is part of the mikroSDK package
Expand Down
2 changes: 1 addition & 1 deletion api/gl/lib/include/gl_image_format_handlers.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2022 MikroElektronika d.o.o.
** Copyright (C) 2023 MikroElektronika d.o.o.
** Contact: https://www.mikroe.com/contact
**
** This file is part of the mikroSDK package
Expand Down
2 changes: 1 addition & 1 deletion api/gl/lib/include/gl_jpeg_constants.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2022 MikroElektronika d.o.o.
** Copyright (C) 2023 MikroElektronika d.o.o.
** Contact: https://www.mikroe.com/contact
**
** This file is part of the mikroSDK package
Expand Down
2 changes: 1 addition & 1 deletion api/gl/lib/include/gl_jpeg_types.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2022 MikroElektronika d.o.o.
** Copyright (C) 2023 MikroElektronika d.o.o.
** Contact: https://www.mikroe.com/contact
**
** This file is part of the mikroSDK package
Expand Down
2 changes: 1 addition & 1 deletion api/gl/lib/include/gl_shapes.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2022 MikroElektronika d.o.o.
** Copyright (C) 2023 MikroElektronika d.o.o.
** Contact: https://www.mikroe.com/contact
**
** This file is part of the mikroSDK package
Expand Down
2 changes: 1 addition & 1 deletion api/gl/lib/include/gl_text.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2022 MikroElektronika d.o.o.
** Copyright (C) 2023 MikroElektronika d.o.o.
** Contact: https://www.mikroe.com/contact
**
** This file is part of the mikroSDK package
Expand Down
2 changes: 1 addition & 1 deletion api/gl/lib/include/gl_types.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2022 MikroElektronika d.o.o.
** Copyright (C) 2023 MikroElektronika d.o.o.
** Contact: https://www.mikroe.com/contact
**
** This file is part of the mikroSDK package
Expand Down
2 changes: 1 addition & 1 deletion api/gl/lib/include/gl_utils.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2022 MikroElektronika d.o.o.
** Copyright (C) 2023 MikroElektronika d.o.o.
** Contact: https://www.mikroe.com/contact
**
** This file is part of the mikroSDK package
Expand Down
2 changes: 1 addition & 1 deletion api/gl/lib/src/gl.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2022 MikroElektronika d.o.o.
** Copyright (C) 2023 MikroElektronika d.o.o.
** Contact: https://www.mikroe.com/contact
**
** This file is part of the mikroSDK package
Expand Down
4 changes: 1 addition & 3 deletions api/gl/lib/src/gl_image.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2022 MikroElektronika d.o.o.
** Copyright (C) 2023 MikroElektronika d.o.o.
** Contact: https://www.mikroe.com/contact
**
** This file is part of the mikroSDK package
Expand Down Expand Up @@ -1701,5 +1701,3 @@ int gl_draw_jpeg_image(gl_rectangle_t *dest, gl_rectangle_t *src, const uint8_t

return _jpeg_decoder.error;
}


10 changes: 5 additions & 5 deletions api/gl/lib/src/gl_shapes.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2022 MikroElektronika d.o.o.
** Copyright (C) 2023 MikroElektronika d.o.o.
** Contact: https://www.mikroe.com/contact
**
** This file is part of the mikroSDK package
Expand Down Expand Up @@ -209,7 +209,6 @@ inline static void _rect_gradient_crop(gl_rectangle_t* rect, gl_rectangle_t* gra
// void static _rect_fill_crop(gl_rectangle_t* rect, gl_color_t color);
//#pragma ReentrancyCheck OFF _rect_fill_crop


void static _rect_fill_crop(gl_rectangle_t* rect, gl_color_t color)
{
gl_rectangle_t tmp_rect;
Expand Down Expand Up @@ -697,10 +696,10 @@ static void _draw_slice_crop(gl_arc_t* arc, gl_rectangle_t* border_rect)
tg_angle_start = tan(arc->start_angle * storage);
tg_angle_end = tan(arc->end_angle * storage);

// whatsnew: IR fix for issue of bad conversion for special case
// whatsnew: IR fix for issue of bad conversion for special case
// added check if result is +Inf, or -Inf
// since cast to integer is undefined
// added max and min int instead
// since cast to integer is undefined
// added max and min int instead
if (tg_angle_start > INT32_MAX) {
tg_angle_start = INT32_MAX;
} else if (tg_angle_start < INT32_MIN) {
Expand Down Expand Up @@ -2123,6 +2122,7 @@ void gl_draw_circle(gl_coord_t x0, gl_coord_t y0, gl_uint_t radius)
// }
}

#pragma funcall gl_draw_ellipse
void gl_draw_ellipse(gl_coord_t x0, gl_coord_t y0, gl_uint_t half_a,
gl_uint_t half_b) {
if (NULL == instance.driver.fill_f) {
Expand Down
2 changes: 1 addition & 1 deletion api/gl/lib/src/gl_text.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2022 MikroElektronika d.o.o.
** Copyright (C) 2023 MikroElektronika d.o.o.
** Contact: https://www.mikroe.com/contact
**
** This file is part of the mikroSDK package
Expand Down
25 changes: 14 additions & 11 deletions api/log/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
## ./api/log/lib/CMakeLists.txt
set(file_list "")
set(module_list "")
set(module_log_path "")
mikrosdk_get_log_libs(module_list file_list module_log_path)

mikrosdk_add_library(lib_log MikroSDK.Log
src/log.c
src/log_printf_implementation.c
src/log_printf_implementation.h
include/log.h
${file_list}
)

target_link_libraries(lib_log PUBLIC
MikroC.Core
MikroSDK.Driver.UART
MikroSDK.GenericPointer
${module_list}
)

target_include_directories(lib_log
PRIVATE
include
include/${module_log_path}
INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include/api/log>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/${module_log_path}>
$<INSTALL_INTERFACE:include/api/log/${module_log_path}>
)
set(TARGET_DEFINES_LIST "")

Expand All @@ -36,5 +36,8 @@ target_compile_definitions(lib_log
)
get_target_property(compile_defs lib_log COMPILE_DEFINITIONS)

set(compiler_path "")
mikrosdk_set_compiler_path(compiler_path)

mikrosdk_install(MikroSDK.Log)
install_headers(${CMAKE_INSTALL_PREFIX}/include/api/log MikroSDK.Log include/log.h)
install_headers(${CMAKE_INSTALL_PREFIX}/include/api/log/${module_log_path} MikroSDK.Log include/${module_log_path}/log.h ${compiler_path}/include/cstdio.h)
Loading

0 comments on commit cb1b66a

Please sign in to comment.