Thank you to anyone who has already donated - your generous donations helped make three months of treatment possible.
My brother Nate continues to fight stage IV Hodgkin's lymphoma. He's just 31, with a wife and baby girl. They have no active income (since he's been unable to return to work), no insurance, and cannot afford the treatment he needs. Nate and his family need your help. Please consider a donation, every dollar helps. Thanks.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
diff --git a/firmware/export/config/sansafuzev2.h b/firmware/export/config/sansafuzev2.h index 4caab84..b920e41 100644 /* Define bitmask of input sources - recordable bitmask can be defined explicitly if different */ -#define INPUT_SRC_CAPS (SRC_CAP_MIC /*| SRC_CAP_FMRADIO*/) +#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) /* define this if you have a bitmap LCD display */ #define HAVE_LCD_BITMAP #define AB_REPEAT_ENABLE 1 /* FM Tuner - suspected to be the SI4702 */ -//#define CONFIG_TUNER SI4700 +#define CONFIG_TUNER SI4700 /* #define HAVE_TUNER_PWR_CTRL */ /* Define this for LCD backlight available */ diff --git a/firmware/target/arm/as3525/fmradio-i2c-as3525.c b/firmware/target/arm/as3525/fmradio-i2c-as3525.c index c86e3f5..fb1de87 100644 #define I2C_SCL_PIN 6 #define I2C_SDA_PIN 7 +#elif defined(SANSA_FUZEV2) +#define I2C_SCL_GPIO(x) GPIOB_PIN(x) +#define I2C_SDA_GPIO(x) GPIOA_PIN(x) +#define I2C_SCL_GPIO_DIR GPIOB_DIR +#define I2C_SDA_GPIO_DIR GPIOA_DIR +#define I2C_SCL_PIN 1 +#define I2C_SDA_PIN 0 + #else #error no FM I2C GPIOPIN defines #endif diff --git a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c index d23fb43..189a37d 100644 int button_read_device(void) CCU_IO &= ~(1<<12); + bool gpiob_pin0_dir = GPIOB_DIR & (1<<1); + GPIOB_DIR &= ~(1<<1); + GPIOB_PIN(0) = 1<<0; udelay(4); int button_read_device(void) } } + if(gpiob_pin0_dir) + GPIOB_DIR |= 1<<1; + CCU_IO |= 1<<12; #ifdef HAS_BUTTON_HOLD |