2 * betty.c - alternative firmware for the betty tv ;)
4 * author: hackbard@hackdaworld.org
15 #define cc1100_init spi1_init(8,SPI_MASTER,8)
23 char announce[]="betty - live from flash at 0x80000000! ;)\r\n";
38 button_set_retries(&button,100);
47 /* pause - seems to not work if running from flash! (?) */
51 uart0_send_string(announce);
53 /* toggle backlight */
57 flash_sector_erase(BANK2,0);
64 if(button_get_event(&button)) {
65 uart0_send_string(announce);
66 if(button.key[0]==BUTTON_POWER) {
68 flash_write_buf(addr,(u16 *)announce,42);