diff --git a/cpu/6502/README.md b/cpu/6502/README.md index 601aee288..103631b58 100644 --- a/cpu/6502/README.md +++ b/cpu/6502/README.md @@ -40,9 +40,9 @@ high-level configuration macros may be set: - Default: 2 - Purpose: Set the maximum number of concurrent TCP connections. -- ETHERNET +- STATIC_DRIVER - Default: N/A - - Purpose: Link Ethernet driver statically instead of loading it dynamically + - Purpose: Link device driver statically instead of loading it dynamically using the network configuration file. - WITH_LOGGING diff --git a/cpu/6502/lib/config.c b/cpu/6502/lib/config.c index 7a013bd0b..e1c2cecc6 100644 --- a/cpu/6502/lib/config.c +++ b/cpu/6502/lib/config.c @@ -90,15 +90,15 @@ config_read(char *filename) log_message("Def. Router: ", ipaddrtoa(&config.draddr, uip_buf)); log_message("DNS Server: ", ipaddrtoa(&config.resolvaddr, uip_buf)); -#ifndef ETHERNET +#ifndef STATIC_DRIVER log_message("Eth. Driver: ", config.ethernetcfg.name); -#else /* !ETHERNET */ +#else /* !STATIC_DRIVER */ #define _stringize(arg) #arg #define stringize(arg) _stringize(arg) log_message("Eth. Driver: ", stringize(ETHERNET)); #undef _stringize #undef stringize -#endif /* !ETHERNET */ +#endif /* !STATIC_DRIVER */ log_message("Driver Port: $", utoa(config.ethernetcfg.addr, uip_buf, 16)); uip_sethostaddr(&config.hostaddr); diff --git a/cpu/6502/net/ethernet.c b/cpu/6502/net/ethernet.c index 2817b5d3c..54a7b4afd 100644 --- a/cpu/6502/net/ethernet.c +++ b/cpu/6502/net/ethernet.c @@ -63,7 +63,7 @@ ethernet_init(struct ethernet_config *config) { static const char signature[4] = {0x65, 0x74, 0x68, 0x01}; -#ifndef ETHERNET +#ifndef STATIC_DRIVER struct mod_ctrl module_control = {cfs_read}; uint8_t byte; @@ -91,13 +91,13 @@ ethernet_init(struct ethernet_config *config) } } -#else /* !ETHERNET */ +#else /* !STATIC_DRIVER */ - extern void ETHERNET; + extern void STATIC_DRIVER; - module = ÐERNET; + module = &STATIC_DRIVER; -#endif /* !ETHERNET */ +#endif /* !STATIC_DRIVER */ module->buffer = uip_buf; module->buffer_size = UIP_BUFSIZE; @@ -126,8 +126,8 @@ ethernet_exit(void) { module->exit(); -#ifndef ETHERNET +#ifndef STATIC_DRIVER mod_free(module); -#endif /* !ETHERNET */ +#endif /* !STATIC_DRIVER */ } /*---------------------------------------------------------------------------*/ diff --git a/platform/atarixl/Makefile.atarixl b/platform/atarixl/Makefile.atarixl index b45482db9..2bb1d1edf 100644 --- a/platform/atarixl/Makefile.atarixl +++ b/platform/atarixl/Makefile.atarixl @@ -31,6 +31,8 @@ # Author: Oliver Schmidt