mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
parse_mac() now writes to the global mac_parse_result[6] and takes only the index, like the other parsers (ip[4]). This drops the local __xdata buffer and the now-unused hexval() helper. Build (KP_9000_9XHML_X_V3_1): ROM 110302 -> 110193 bytes, XSEG and internal RAM unchanged.
22 lines
556 B
C
22 lines
556 B
C
#ifndef _CMD_PARSER_H_
|
|
#define _CMD_PARSER_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "rtl837x_common.h"
|
|
|
|
extern __xdata uint8_t cmd_buffer[CMD_BUF_SIZE];
|
|
extern __xdata uint8_t cmd_available;
|
|
extern __xdata uint8_t err_status;
|
|
|
|
void cmd_tokenize(void) __banked;
|
|
void cmd_parser(void) __banked;
|
|
void execute_config(void) __banked;
|
|
void execute_commands(__xdata uint8_t *p) __banked;
|
|
void print_ip(__xdata uint8_t *ptr) __banked;
|
|
void print_mac(__xdata uint8_t *ptr) __banked;
|
|
void print_sw_version(void) __banked;
|
|
void clear_command_history(void) __banked;
|
|
|
|
#endif
|