static void hecubafb_dpy_update(struct hecubafb_par *par)
{
	int i;
	unsigned char *buf = (unsigned char __force *)par->info->screen_base;

	apollo_send_command(par, APOLLO_START_NEW_IMG);

	for (i=0; i < (DPY_W*DPY_H/8); i++) {
		apollo_send_data(par, *(buf++));
	}

	apollo_send_command(par, APOLLO_STOP_IMG_DATA);
	apollo_send_command(par, APOLLO_DISPLAY_IMG);
}
Beispiel #2
0
int WriteToFlash (unsigned long Address, char Data) {
  apollo_command_t apollo_command = { 0 };
  
  apollo_command.command  = APOLLO_FLASH_WRITE;
  apollo_command.type     = APOLLO_WRITE_ONLY;
  apollo_command.num_args = 4;
  apollo_command.args[0]  = (u8)((Address & 0x00FF0000) >> 16);
  apollo_command.args[1]  = (u8)((Address & 0x0000FF00) >> 8);
  apollo_command.args[2]  = (u8)((Address & 0x000000FF));
  apollo_command.args[3]  = (u8)Data;
  
  apollo_send_command(&apollo_command);
  
  return 1;
}