Commit Graph

21 Commits

Author SHA1 Message Date
Berk D. Demir
ab304e6915
Merge e959756f5a into bfe472e71c 2024-12-13 02:49:42 +03:00
Sergey Fedorov
be86373d37 blisp_struct.h: define static_assert when undefined to _Static_assert 2024-01-06 16:03:05 +08:00
Ben V. Brown
5306720e5d More annotations on errors 2023-05-09 08:05:38 +10:00
Ben V. Brown
6ec0e9e862 Expand blisp_easy to use error codes 2023-05-09 07:58:06 +10:00
Ben V. Brown
6e2d40b9c4 Stitch more error codes through tool 2023-05-09 07:46:45 +10:00
Ben V. Brown
179a4ea267 Extract error codes 2023-05-09 07:39:25 +10:00
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
Marek Kraus
279f2433ea Integrated eflash_loader 2023-01-09 21:23:46 +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
2740d305ba Added initial BL61X and BL808 support, some chip changes 2023-01-07 16:57:45 +01:00
Marek Kraus
841a52177b Some improvements to readme and added blisp_dlog 2023-01-07 15:07:25 +01:00
Marek Kraus
8a00a63600 Make proper error handling 2023-01-07 13:34:33 +01:00
Marek Kraus
da34daf69f Update code styly and reformat code 2023-01-07 11:50:51 +01:00
Marek Kraus
a4489c7cce Add license 2022-11-30 13:17:30 +01:00
Marek Kraus
6e036df085 Adding RTS & DTS mechanism (not working yet) 2022-11-09 20:16:08 +01:00
Marek Kraus
8c3cc0b017 Add initial support for BL60X 2022-11-08 22:06:14 +01:00
Marek Kraus
d2f13de709 Working BL70X flashing 2022-11-08 19:35:51 +01:00
Marek Kraus
17a6c2f4a1 Work in Progress 2022-11-07 10:20:38 +01:00
Marek Kraus
f7964a9cb2 WIP 2022-10-05 11:35:44 +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