<verb>
#include <serial.h>
-extern char comlynx[];
+extern void lynx_comlynx[];
static void initialize(){
struct ser_params params = {
SER_PAR_MARK,
SER_HS_NONE
};
- ser_install(&comlynx); // This will activate the ComLynx
+ ser_install(lynx_comlynx); // This will activate the ComLynx
CLI();
ser_open(&params);
}
<ref id="ser_uninstall" name="ser_uninstall">,
<ref id="ser_unload" name="ser_unload">
<tag/Example/<verb>
-extern char lynxser[]; //Include the driver statically instead of loading it.
+extern void lynx_comlynx[]; //Include the driver statically instead of loading it.
-ser_install(&lynxser);
+ser_install(lynx_comlynx);
</verb>
</descrip>
</quote>
<verb>
#include <serial.h>
-extern char comlynx[];
+extern void lynx_comlynx[];
static void initialize(){
struct ser_params params = {
SER_PAR_MARK,
SER_HS_NONE
};
- ser_install(&comlynx); // This will activate the ComLynx
+ ser_install(lynx_comlynx); // This will activate the ComLynx
CLI();
ser_open(&params);
}
<tag/Availability/cc65
<tag/See also/Other tgi functions.
<tag/Example/<verb>
-extern char lynxtgi[]; //Include the driver statically instead of loading it.
-tgi_install(&lynxtgi);
+tgi_install(tgi_static_stddrv); //Include the driver statically instead of loading it.
tgi_init(); //Set up the default palette and clear the screen.
</verb>
</descrip>
<ref id="tgi_uninstall" name="tgi_uninstall">,
<ref id="tgi_unload" name="tgi_unload">
<tag/Example/<verb>
-extern char lynxtgi[]; //Include the driver statically instead of loading it.
-
-tgi_install(&lynxtgi);
+tgi_install(tgi_static_stddrv); //Include the driver statically instead of loading it.
tgi_init(); //Set up the default palette and clear the screen.
</verb>
</descrip>