mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
Reduce DSEG usage as we need 1 OSEG byte
This commit is contained in:
+2
-2
@@ -156,7 +156,7 @@ uint8_t atoi_hex(uint8_t idx)
|
||||
|
||||
uint8_t atoi_short(register uint16_t *vlan, register uint8_t idx)
|
||||
{
|
||||
uint8_t err = 1;
|
||||
__xdata uint8_t err = 1;
|
||||
*vlan = 0;
|
||||
|
||||
while (isnumber(cmd_buffer[idx])) {
|
||||
@@ -1018,7 +1018,7 @@ void execute_config(void) __banked
|
||||
flash_region.len = FLASH_READ_BURST_SIZE;
|
||||
flash_read_bulk(flash_buf);
|
||||
|
||||
uint8_t cfg_idx = 0;
|
||||
__xdata uint8_t cfg_idx = 0;
|
||||
uint8_t c = 0;
|
||||
do {
|
||||
for (uint8_t cmd_idx = 0; cmd_idx < (SBUF_SIZE - 1); cmd_idx++) {
|
||||
|
||||
+3
-1
@@ -631,12 +631,14 @@ void print_reg(uint16_t reg)
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
// TODO: This uses 2 DSEG bytes and is not used!
|
||||
void print_sds_reg(uint8_t sds_id, uint8_t page, uint8_t reg)
|
||||
{
|
||||
sds_read(sds_id, page, reg);
|
||||
print_phy_data();
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
char cmp_4(__xdata uint8_t a[], __xdata uint8_t b[])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user