Added target-specifc mouse support (sprite handling).

This commit is contained in:
oliverschmidt 2007-12-20 22:54:22 +00:00
parent ff6622310f
commit e63610e1c9

View file

@ -30,10 +30,13 @@
* *
* Author: Oliver Schmidt <ol.sc@web.de> * Author: Oliver Schmidt <ol.sc@web.de>
* *
* $Id: contiki-main.c,v 1.12 2007/12/16 13:07:35 oliverschmidt Exp $ * $Id: contiki-main.c,v 1.13 2007/12/20 22:54:22 oliverschmidt Exp $
*/ */
#include <string.h>
#include "contiki-net.h" #include "contiki-net.h"
#include "ctk/ctk.h"
#include "sys/log.h" #include "sys/log.h"
#include "lib/config.h" #include "lib/config.h"
#include "net/ethernet-drv.h" #include "net/ethernet-drv.h"
@ -103,6 +106,23 @@ main(void)
process_start((struct process *)&ethernet_process, (char *)ethernet_config); process_start((struct process *)&ethernet_process, (char *)ethernet_config);
#if CTK_CONF_MOUSE_SUPPORT
{
static const u8_t mouse_sprite[64] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x0F, 0xE0, 0x00, 0x0F, 0xC0, 0x00, 0x0F,
0x80, 0x00, 0x0F, 0xC0, 0x00, 0x0D, 0xE0, 0x00,
0x08, 0xF0, 0x00, 0x00, 0x78, 0x00, 0x00, 0x3C,
0x00, 0x00, 0x1E, 0x00, 0x00, 0x0F, 0x00, 0x00,
0x07, 0x80, 0x00, 0x03, 0x80, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
memcpy((void*)0x0340, mouse_sprite, sizeof(mouse_sprite));
*(u8_t*)0x07F8 = 0x0340 / 64;
}
#endif /* CTK_CONF_MOUSE_SUPPORT */
log_message("Contiki up and running ...", ""); log_message("Contiki up and running ...", "");
while(1) { while(1) {