goodmanrs / u8glib

Automatically exported from code.google.com/p/u8glib
Other
0 stars 0 forks source link

SPI backup #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
backup SPI state bedor doing the msg and restore after msg execution

DEV_MSG_INIT
DEV_MSG_PAGE_FIRST
DEV_MSG_PAGE_NEXT

new procedures:

u8g_hw_backup()
u8g_hw_restore()

Original issue reported on code.google.com by olikr...@gmail.com on 2 Jun 2012 at 9:26

GoogleCodeExporter commented 8 years ago
implementation as callback? should point to NULL procedure, but can be 
activated on request.

void u8g_backup_spi_state(uint8_t is_backup)
{
}

u8g_SetHardwareBackup(u8g_backup_spi_state)
u8g_SetHardwareBackup(0)

Original comment by olikr...@gmail.com on 2 Jun 2012 at 9:31

GoogleCodeExporter commented 8 years ago
void u8g_backup_avr_spi_state(uint8_t is_backup, uint8_t backup_idx)
{
}

u8g_backup_avr_spi_state(1, 0)   // backup env
DEV_MSG_INIT
u8g_backup_avr_spi_state(1, 1)   // backup u8g
u8g_backup_avr_spi_state(0, 0)   // restore env

u8g_backup_avr_spi_state(1, 0)   // backup env
u8g_backup_avr_spi_state(0, 1)   // restore u8g
DEV_MSG_PAGE_FIRST or DEV_MSG_PAGE_NEXT
u8g_backup_avr_spi_state(0, 0)   // restore env

Original comment by olikr...@gmail.com on 2 Jun 2012 at 10:14

GoogleCodeExporter commented 8 years ago
create example

Original comment by olikr...@gmail.com on 6 Jun 2012 at 6:39

GoogleCodeExporter commented 8 years ago
done

Original comment by olikr...@gmail.com on 9 Jun 2012 at 3:45