Stefan Rueger
80251073cd
Put static variables of ser_avrdoper.c into context structure
2024-05-10 11:00:18 +01:00
Stefan Rueger
292947d9a8
Put static variable of ppi.c into context structure
2024-05-10 10:29:38 +01: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
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
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
Stefan Rueger
ff7b8ca19a
Use mmt_f_free instead of free as callback function in ldestroy_cv()
2024-04-26 23:41:40 +01:00
Stefan Rueger
dcfb6a8836
Utilise magic memory tree interface for src/whereami.h
2024-04-26 23:31:23 +01:00
Stefan Rueger
934027bb65
Utilise magic memory tree interface for src/whereami.c
2024-04-26 23:31:23 +01:00
Stefan Rueger
ed5ce77a27
Utilise magic memory tree interface for src/usb_hidapi.c
2024-04-26 23:31:23 +01:00
Stefan Rueger
ab22bd04d8
Utilise magic memory tree interface for src/updi_link.c
2024-04-26 23:31:22 +01:00
Stefan Rueger
2abb780841
Utilise magic memory tree interface for src/update.c
2024-04-26 23:31:22 +01:00
Stefan Rueger
fd2b3629a9
Utilise magic memory tree interface for src/term.c
2024-04-26 23:31:22 +01:00
Stefan Rueger
8f5a08abc3
Utilise magic memory tree interface for src/stk500v2.c
2024-04-26 23:31:22 +01:00
Stefan Rueger
cea55b0533
Utilise magic memory tree interface for src/serialadapter.c
2024-04-26 23:31:21 +01:00
Stefan Rueger
67a73e609f
Utilise magic memory tree interface for src/ser_win32.c
2024-04-26 23:31:21 +01:00
Stefan Rueger
80a7fa606c
Utilise magic memory tree interface for src/ser_posix.c
2024-04-26 23:31:21 +01:00
Stefan Rueger
34efea1073
Utilise magic memory tree interface for src/pindefs.c
2024-04-26 23:31:21 +01:00
Stefan Rueger
2b43a27d0a
Utilise magic memory tree interface for src/pgm.c
2024-04-26 23:31:20 +01:00