René van Dorst
d2e79d4d80
Fix: In commit 8cbafaa cmd_tokenize() has changed. Missed that it also used
...
outside cmd_parser.c.
Fix the other location and headerfile.
2026-04-21 21:17:22 +02:00
René van Dorst
016061d8db
cmd: Fix 8324edc atoi_short() commit.
...
vlan initialization was removed while trying out an other version.
But was not restored back.
2026-04-21 21:16:03 +02:00
feelfree69
f7989cc737
Merge branch 'logicog:main' into syslog
2026-04-21 14:29:44 +02:00
logicog
5035366551
Merge pull request #204 from vDorst/remove___gptrxxx_calls
...
Remove `__gptrput()` and `__gptrget()` calls
2026-04-21 05:38:33 +02:00
René van Dorst
d5709bcaf3
fix atoi
2026-04-19 22:18:39 +02:00
René van Dorst
e79e90dd35
cmd_parser: de-__gptrput()-call in vlan_ingress_mode_parse()
2026-04-19 22:18:36 +02:00
René van Dorst
da768171a5
change cmd_tokenize().
...
Remove the return argument because `err_status` is also reflecting the result.
Fix the error message when too many arguments are found.
refactor `execute_config()`, error out when err_status is not OK.
2026-04-19 22:00:31 +02:00
René van Dorst
8324edc5f7
cmd_parser: Improve atoi_byte() and atoi_short().
...
Because no memory type is specified to the reference location, sdcc is
using a helper function to access the location. But sdcc is using a
register to tell the helper function which memory-type is used.
This registers must also be preseved until all access to that location is done.
2026-04-18 22:19:35 +02:00
René van Dorst
f2ff7d7737
parse_ee() make use of cmd_words_len
2026-04-18 19:35:51 +02:00
René van Dorst
a24b63a81f
parse_mtu() make use of cmd_words_len
2026-04-18 19:35:51 +02:00
René van Dorst
abe3513bc6
parse_port() make use of cmd_words_len
2026-04-18 19:35:51 +02:00
René van Dorst
49c43082a3
parse_mirror() make use of cmd_words_len, refactor small parts
2026-04-18 19:35:51 +02:00
René van Dorst
f71e869b97
parse_ingress() make use of cmd_words_len, refactor small parts
2026-04-18 19:35:51 +02:00
René van Dorst
1fe236246a
parse_isolate() make use of cmd_words_len
2026-04-18 19:35:51 +02:00
René van Dorst
2acf2499d1
parse_lag_hash() make use of cmd_words_len
2026-04-18 19:35:51 +02:00
René van Dorst
56e0d0a5d1
parse_lag() make use of cmd_words_len
2026-04-18 19:35:51 +02:00
René van Dorst
7380aeb10d
parse_bw() make use of cmd_words_len
2026-04-18 19:35:51 +02:00
René van Dorst
0d698dc572
parse_passwd() make use of cmd_words_len, change password memcpy.
2026-04-18 19:35:51 +02:00
René van Dorst
c7fb354f08
parse_sds{get,set}() and parse_phy{get,set}() make use of cmd_words_len
2026-04-18 19:35:51 +02:00
René van Dorst
2cdab5f9d9
parse_reg{set,get}() make use cmd_words_len.
2026-04-18 19:35:51 +02:00
René van Dorst
301577efc8
parse_vlan() make use of cmd_words_len.
2026-04-18 19:35:51 +02:00
René van Dorst
1156f00f95
cmd_parser() make use of cmd_words_len
2026-04-18 19:35:51 +02:00
René van Dorst
8cbafaa347
Change cmd_tokenize() it only stores valid locations and use a length field.
2026-04-18 19:35:48 +02:00
René van Dorst
80ff1b25c9
Improve: cmd_compare().
...
Because `cmd` is guaranteed by the compiler to be NULL-terminated, we can make use of that to ensure the loop always ends.
So we don't need to know when the next words starts.
2026-04-18 19:15:25 +02:00
René van Dorst
1a5208110c
Merge pull request #195 from logicog/fix_config_reading
...
Fix reading configuration over flash block boundaries
2026-04-17 11:46:03 +02:00
logicog
e2717ef7ca
Count pages instead of bytes reading config in execute_config()
2026-04-17 11:37:15 +02:00
logicog
1769528420
Introduce global error variable, check during config execution
2026-04-16 22:01:51 +02:00
logicog
9d4c06d752
Merge pull request #200 from feelfree69/port_names
...
Port names
2026-04-14 18:51:43 +02:00
logicog
c3530aaafc
Handle error when configuration file cmd too long
2026-04-14 18:00:29 +02:00
logicog
1683eef94b
Fix bug where cmd_words[] is not properly initialized
2026-04-14 05:16:45 +02:00
logicog
036d9ca229
Add port isolation cmd
2026-04-13 20:13:28 +02:00
feelfree69
41f0dad49d
Add ability to assign a name to a port
2026-04-13 14:55:10 +02:00
feelfree69
22f8b9a287
rebase minor change in syslog cmd parsing
2026-04-12 13:08:05 +02:00
feelfree69
c1a414833d
Various refactorings
2026-04-12 13:02:42 +02:00
feelfree69
2a9c7d2828
restart syslog when changing ip
2026-04-12 13:02:42 +02:00
feelfree69
7eb3676aaf
remove log command
2026-04-12 13:02:42 +02:00
feelfree69
eaa21d5975
rebase First try to make use of uIP for sending syslog
2026-04-12 13:02:37 +02:00
feelfree69
b85861347b
Added setting for syslog IP
2026-04-12 12:58:02 +02:00
feelfree69
b21bfac917
rebase first prototype
2026-04-12 12:57:49 +02:00
logicog
4440bcc43a
Fix reading configuration over flash block boundaries
2026-04-09 22:34:32 +02:00
Jan Hoffmann
f6a5163f33
Add commands to access PHY registers
2026-04-06 18:25:40 +02:00
Jan Hoffmann
e210f31f0e
Add commands to access SerDes registers
2026-04-06 18:25:35 +02:00
Jan Hoffmann
9eecdd071a
Add atoi_byte function
...
Similar to atoi_short, but reads into a uint8_t instead of a uint16_t.
2026-04-06 18:25:30 +02:00
Jan Hoffmann
c3b99fdcdf
Make sure that the output of all commands ends with a newline
2026-03-27 19:36:14 +01:00
diijkstra
cb8d0e45bb
Review: Move w initialization
2026-03-23 19:31:06 +01:00
diijkstra
f7fcf0eda7
Console: Add Ingress type & VLAN show table
...
Added new `vlan show` command to dump current VLAN settings.
Supports printing PVID & ingress filtering per port.
Added new `ingress [p]<mode>` command to setup ingress filtering.
Added wrappers for enabling/disabling vlan filtering. Currently
not configurable, but state in console is read via ASIC registers.
Full VLAN dump & web support of new commands will be added later.
2026-03-21 12:29:26 +01:00
feelfree69
4706f6232a
simplify parsing code
2026-03-15 15:43:34 +01:00
feelfree69
e92b4a2358
Don't allow partial commands
2026-03-14 19:47:56 +01:00
feelfree69
34d46aa29a
fix crash
2026-03-14 13:59:14 +01:00
feelfree69
4b167151a5
fix bank overflow
2026-03-10 21:35:25 +01:00