Commit Graph

17 Commits

Author SHA1 Message Date
Berk D. Demir
e959756f5a Refactor to address compiler warnings
- Unused function warnings
Move function definitions in include/blisp_util.h to lib/blisp_util.c.
Defining them as static leads to internal linkage, accessible in that
translation unit, hence the warning. Their references are to be handled
in other translation units, so they shouldn't be static.

- Unused function parameters
Use C attribute `[[maybe_unused]]` (introduced in C23) to suppress
unused parameter warnings.

  - `blisp_chip_xxxxx_get_eflash_loader` implementations accept clock type
    but don't use it.

  - `drain` function only has a body under macOS and FreeBSD with
    preprocessor predicates.

- Enable compiler warnings
Now that warnings are address enable them `-Wall -Wextra -Wpedantic` for
the library and the tool targets.

N.B. An equivalent of MSVC should be added to CMakeLists.txt, as these
would only work when using GCC or Clang.
2023-04-30 10:21:34 -07:00
porsolic
6f508d3db8 Enable building on FreeBSD hosts
FreeBSD has libusb built in.
Needs external libserialport.
2023-03-17 00:13:17 +01:00
Marek Kraus
5e09eca00d Fix Windows CI build 2023-01-21 15:17:17 +01:00
Marek Kraus
2141e33c2b Version v0.0.3 2023-01-21 14:50:35 +01:00
Marek Kraus
626522e074 Version v0.0.2 2023-01-12 11:49:04 +01:00
Marek Kraus
0e0ffb1d8c Change version to 0.0.1 2023-01-09 21:49:44 +01:00
Marek Kraus
59cf5fb038 Add blisp_easy, many improvements, adds iot single download feature 2023-01-07 23:25:42 +01:00
Marek Kraus
eb086f6fe3 Add initial MacOS support 2022-12-06 17:15:53 +01:00
Marek Kraus
dd2801d6e9 Add termios support to libserialport and set_baudrate error handling
This fixes issues with flashing with FT232H
2022-11-22 13:55:38 +01:00
Marek Kraus
8c3cc0b017 Add initial support for BL60X 2022-11-08 22:06:14 +01:00
Marek Kraus
e3dea5b85d Windows fixes 2022-11-07 15:22:06 +01:00
Marek Kraus
ec17f896bc Add some macOS related stuff 2022-10-05 11:53:32 +02:00
Marek Kraus
29a36a2d7b WIP 2022-09-25 10:58:59 +02:00
Marek Kraus
9d8738cb85 WIP 2022-09-24 11:58:47 +02:00
Marek Kraus
e9217452e4 WIP... 2022-09-13 11:03:39 +02:00
Marek Kraus
fb70d7eea4 Add libserialport + another improvements 2022-09-12 13:14:55 +02:00
Marek Kraus
019c7dd845 Initial commit 2022-08-24 12:06:39 +02:00