Commit Graph

114 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
river-mochi
de4a9cd5e6
update install instructions 2023-04-10 18:26:06 -07:00
River M
0b363c620a
Merge pull request #31 from River-Mochi/master
changed icon colors
2023-04-01 21:28:57 -07:00
River M
e7eeef5f85
changed icon colors
Icons in black can not be seen well in dark screen. 
changed to color that matches badges and can be seen in dark mode.
2023-04-01 21:28:08 -07:00
Robert Lipe
aaf07b7724
Update README.md
Updated from https://github.com/pine64/blisp/pull/1/files
2023-03-30 13:51:18 -05:00
Marek Kraus
8c3b93cbec
Merge pull request #28 from River-Mochi/master
defind ISP
2023-03-30 20:04:35 +02:00
River M
cc9ef81934
Update README.md 2023-03-30 10:57:23 -07:00
River M
9cb381d03e
Update README.md 2023-03-19 15:49:38 -07:00
Robert Lipe
f47bc9f948
Merge pull request #26 from River-Mochi/master
add table, icons, edit doc
2023-03-18 18:08:11 -05:00
River M
4b8713ecd4
Update README.md 2023-03-18 15:01:40 -07:00
River M
935ee4a12c
Delete test 2023-03-18 14:55:03 -07:00
River M
55198e9612
Update README.md 2023-03-18 14:05:05 -07:00
River M
63dff45156
Update README.md 2023-03-18 14:03:44 -07:00
River M
a98a5090b3
Update README.md 2023-03-18 13:43:53 -07:00
River M
55f40caa60
Update README.md 2023-03-18 13:10:41 -07:00
River M
7618f24c97
Update README.md 2023-03-18 12:41:33 -07:00
River M
fb31f9a742
Add files via upload 2023-03-18 12:38:19 -07:00
River M
28d0743742
Create test 2023-03-18 12:37:52 -07:00
River M
042b9a72f0
Update README.md 2023-03-18 12:31:53 -07:00
River M
eb55ab4702
Update README.md 2023-03-18 12:29:21 -07:00
River M
ca4aca7219
Update README.md 2023-03-18 12:27:18 -07:00
River M
6f174eaffe
Update README.md 2023-03-18 12:14:04 -07:00
River M
a59d4f7a32
Merge branch 'pine64:master' into master 2023-03-17 04:53:04 -07:00
Marek Kraus
93703a7c2e
Merge pull request #25 from porsolic/master
Enable building on FreeBSD hosts
2023-03-17 09:46:02 +01:00
porsolic
6f508d3db8 Enable building on FreeBSD hosts
FreeBSD has libusb built in.
Needs external libserialport.
2023-03-17 00:13:17 +01:00
River M
565c9ff913
Update README.md 2023-03-12 14:54:49 -07:00
River M
e219e50efb
Update README.md 2023-03-09 16:39:20 -08:00
River M
5a0ae8abc3
Update README.md 2023-03-09 14:15:12 -08:00
River M
0275fad1db
Update README.md 2023-03-03 04:20:54 -08:00
River M
e63ca04be5
Update README.md 2023-03-03 04:18:14 -08:00
River M
8c21c18b3a
Merge branch 'pine64:master' into master 2023-03-03 04:11:38 -08:00
River M
23ca06a336
add Badges (#23)
* Update README.md

syntax error in instructions. this command as written will not work because if flag --chip is used it needs to be --chip=bl70x with the "="
does not work: blisp write --chip bl70x --reset name_of_firmware.bin
or if "=" is not desired then "-c bl70x" could be used instead.

-c, --chip=<chip_type>    Chip Type

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

---------

Co-authored-by: River <97197236+River-b@users.noreply.github.com>
Co-authored-by: Marek Kraus <gamelaster@users.noreply.github.com>
2023-03-02 09:59:05 +01:00
Marek Kraus
5ebcf881b6
Merge branch 'master' into master 2023-03-02 09:58:34 +01:00
River M
cda17f2713
Update README.md 2023-03-02 00:53:32 -08:00
River M
933851a775
Update README.md 2023-03-02 00:50:02 -08:00
River M
32e2a64390
Update README.md 2023-03-02 00:46:50 -08:00
River M
c157261bf2 Update README.md 2023-03-02 09:44:16 +01:00
River M
b54d820408 Update README.md 2023-03-02 09:44:16 +01:00
River M
9d4294f308 Update README.md 2023-03-02 09:44:16 +01:00
River M
44f5c12b40
Update README.md 2023-03-02 00:08:31 -08:00
River M
f2605801a4
Update README.md 2023-03-01 22:04:18 -08:00
River M
670ec95507
Update README.md 2023-03-01 19:15:54 -08:00
River M
f8acfa2ac1
Merge branch 'pine64:master' into master 2023-03-01 17:58:14 -08:00
Marek Kraus
3d4dfe8b81
Add BL602 branded MCUs 2023-02-28 11:23:18 +01:00
River
4afdfff4b7 Update README.md
syntax error in instructions. this command as written will not work because if flag --chip is used it needs to be --chip=bl70x with the "="
does not work: blisp write --chip bl70x --reset name_of_firmware.bin
or if "=" is not desired then "-c bl70x" could be used instead.

-c, --chip=<chip_type>    Chip Type
2023-02-19 15:48:48 +01:00
River
7669ebbbcb
Update README.md
syntax error in instructions. this command as written will not work because if flag --chip is used it needs to be --chip=bl70x with the "="
does not work: blisp write --chip bl70x --reset name_of_firmware.bin
or if "=" is not desired then "-c bl70x" could be used instead.

-c, --chip=<chip_type>    Chip Type
2023-02-15 14:22:20 -08:00
porsolic
6424f9ddf8 Fix it to work under FreeBSD
Add sp_drain() where needed. Without it FreeBSD won't pass the handshake
phase.
Also decreate max buffer size.
Tested with Pinecil v2 and it can write and check new firmware.
2023-02-15 20:21:47 +01:00
porsolic
7fb2cc829c Fix UART baudrate
Set standard baudrate (460800) instead of non-standard (500000).
This enables opening of serial device under FreeBSD without error.
2023-02-15 20:21:47 +01:00
porsolic
a67ab9d218 Fix build on FreeBSD 2023-02-15 20:21:47 +01:00
porsolic
3fff531334 Fix compiler warnings 2023-02-15 20:21:47 +01:00