Stefan Rueger
c411555d27
Differentiate cause of Cannot find programmer id
2024-05-10 00:16:00 +01:00
Funkeleinhorn
e72d672859
Move serprog enable logic to pgm->initialize()
...
This commits moves the logic to enable the serprog programmer to be
ready for programming to the initalize() function as it seems to be the
counterpart of disable() and is called directly before programming
starts. This allows to open() a serprog programmer without blocking the
SPI bus as 0x15 S_PIN_STATE and 0x18 S_CS_MODE is only called in
initalize before the actual programming starts.
2024-05-09 22:46:39 +02:00
Stefan Rueger
9431330887
Change free() to mmt_free()
2024-05-09 19:07:43 +01:00
Stefan Rueger
4ccbf49f0f
Change pinmask_to_str() to pinmask_to_strdup()
...
No longer is the string returned in static space (which the next call
overwrites); instead a mmt_strdup()'d string is returned that needs
mmt_free()'ing.
2024-05-09 19:03:34 +01:00
Stefan Rueger
c5c49d7efd
Remove unused function pin_to_str()
...
... as it was used wrongly and led to errors. Better to use
pin_to_strdup()
2024-05-09 17:30:44 +01:00
Stefan Rueger
e6503115f7
Use pins_to_strdup() instead of pins_to_str()
...
The latter returns a string in a static buffer that is overwritten by the
next call. Unfortunately, this function was used more than once in
arguments of the *same* msg_error(), which would have given a wrong error
message. pins_to_strdup() returns a string to malloc'd space that needs
freeing.
2024-05-09 17:25:38 +01:00
Stefan Rueger
bf414c7c58
Make static function greppable in fileio.c
2024-05-09 11:06:50 +01:00
Stefan Rueger
c2264ad5a9
Put static variable of config_gram.y into context structure
2024-05-09 11:05:35 +01:00
Stefan Rueger
fb1a63b189
Add author to config_gram.y for contributions from 2022
2024-05-09 10:58:08 +01:00
Stefan Rueger
b25c28aea7
Guard against out-of-range pin_name in config_gram.y
2024-05-09 10:49:40 +01:00
Stefan Rueger
6d8fce594c
Put static variable of dfu.c into context structure
2024-05-08 22:32:27 +01:00
Stefan Rueger
0c565354aa
Make two static structs read-only in developer_opts.c
2024-05-08 22:23:43 +01:00
Stefan Rueger
161f763507
Consolidate functions returning a prog_modes string
2024-05-08 22:10:06 +01:00
Stefan Rueger
d425e737a4
Remove static variable in winconf.c
2024-05-08 19:58:07 +01:00
Stefan Rueger
d8d47127d9
Update avrdude.conf with new AVRnnDUnn parts
2024-05-08 19:01:00 +01:00
Stefan Rueger
40e75a447f
Update avrintel.c from new atdf files
2024-05-08 18:59:32 +01:00
Funkeleinhorn
43e998b5c4
Add documentation and clean up code
2024-05-08 18:13:24 +02:00
Funkeleinhorn
2266a0fe9c
Do enable/disable in correct functions instead of in open/close
2024-05-08 16:56:58 +02:00
Funkeleinhorn
b84b2728d0
Make CS an extended parameter
2024-05-08 15:52:30 +02:00
Stefan Rueger
14b337bb97
Put static variables of config.c into context structure
2024-05-07 23:03:02 +01:00
Stefan Rueger
1b0fb273a9
Make static variable const in avrftdi_tpi.c
2024-05-07 22:35:33 +01:00
Stefan Rueger
8a36a2f531
Put static variables of bitbang.c into context structure
2024-05-07 22:24:27 +01:00
Stefan Rueger
fa186e26a3
Put static variables of avrpart.c into context structure
2024-05-07 21:11:39 +01:00
Stefan Rueger
9f69a6e09a
Put static variables of avr.c into context structure
...
... and convert static memory for strings returned by avr_prog_modes()
into closed-circuit memory area in the context structure
2024-05-06 22:37:09 +01:00
Stefan Rueger
638a429337
Add const to pointer argument where possible
2024-05-05 23:06:38 +01:00
Stefan Rueger
5cf001f045
Space pointer declarations consistently
2024-05-05 23:03:41 +01:00
Stefan Rueger
59edcd8c78
Use command line programmer name in messages
2024-05-05 23:00:47 +01:00
Stefan Rueger
14e32f49c4
Adapt messages to AVRDUDE style
2024-05-05 22:57:24 +01:00
Funkeleinhorn
30d9f67ed4
Add serprog programmer
...
This commit adds support to program AVRs via programmers speaking
the serprog protocol used by flashrom. A programmer implementing this is
for example: https://github.com/stacksmashing/pico-serprog
2024-05-05 16:58:26 +02:00
Stefan Rueger
e35cacf3d9
Silence compiler warning when printing size_t variable
2024-05-02 17:43:15 +01:00
RoboSchmied
54cf8717f0
Fix: 7 typos
...
Co-authored-by: RoAGmer <no-reply@github.com >
Signed-off-by: Michael Seibt <github@roboschmie.de >
2024-05-02 00:25:16 +02:00
Stefan Rueger
8dd0932302
Silence compiler warnings
2024-04-28 21:29:40 +01:00
mcuee
37ac6ebaa0
macOS autotools build fix
2024-04-28 20:12:12 +08:00
Stefan Rueger
c295bcc630
Update NEWS
2024-04-28 12:07:17 +01:00
mcuee
3bfcd01309
Add macOS autotools to github action ( #1798 )
...
* Update build.yml to add autotools build for macOS
* Update build.yml to use /opt/homebrew
2024-04-28 12:06:26 +01:00
Stefan Rueger
55f7da7fe3
Fix MSVC compilation errors
2024-04-28 12:01:54 +01:00
Stefan Rueger
ce8bb5fa11
Merge pull request #1794 from stefanrueger/silence-macos-ull-warning
...
Silence MacOS compiler warning
2024-04-28 10:47:24 +00:00
Stefan Rueger
caf4746db1
Merge pull request #1795 from stefanrueger/cx
...
Use magic memory tree interface throughout
2024-04-28 10:47:04 +00:00
mcuee
5f14524819
Update NEWS
2024-04-28 18:35:57 +08:00
mcuee
1848dea28f
Merge pull request #1792 from mhei/support-libgpiod-v1.4
...
linuxgpio: add support for libgpiod v1.4
2024-04-28 18:26:44 +08:00
mcuee
dceb55da6a
Update build.yml to use /opt/homebrew for macOS github action
2024-04-28 18:19:59 +08:00
Michael Heimpold
b6c15d783c
autotools: improve configure summary regarding libgpiod
...
We cannot print the exact version we detected, but we
can give a hint about the "version class" at least.
Signed-off-by: Michael Heimpold <mhei@heimpold.de >
2024-04-27 23:00:54 +02:00
Michael Heimpold
ca65e84fb1
linuxgpio: fix linking with libgpiod < v1.6
...
Due to a copy and paste error, the required define for
using libgpido at all was not set and thus the library
was not used at all.
Signed-off-by: Michael Heimpold <mhei@heimpold.de >
2024-04-27 22:59:42 +02:00
Michael Heimpold
fcf8cd7a03
Improve cmake status messages during libgpiod detection
...
The standard cmake messages of pkg_check_modules might be confusing
when being used as here, i.e. when searching for the highest compatible
version.
So suppress these standard messages and print manual ones instead.
Signed-off-by: Michael Heimpold <mhei@heimpold.de >
2024-04-27 22:06:58 +02:00
Stefan Rueger
3f91c2ec39
Include libavrdude.h and avrdude.h in whereami.c
2024-04-27 15:12:23 +01:00
Stefan Rueger
8212836693
Silence MacOS compiler warning
2024-04-27 13:40:00 +01:00
mcuee
7e18c0e115
Update build.yml to install pkg-config under macOS
2024-04-27 17:19:55 +08:00
Stefan Rueger
7c26305a5b
Make static functions greppable
2024-04-26 23:53:14 +01:00
Stefan Rueger
4bd70a17fa
Make static functions greppable
2024-04-26 23:50:52 +01:00
Stefan Rueger
fe195f8810
Make static functions greppable
2024-04-26 23:48:49 +01:00