mirror of
https://github.com/libretro/Mu.git
synced 2026-02-04 05:35:13 +00:00
Fix multiply by 0
This commit is contained in:
@@ -25,6 +25,7 @@ RxOverflow on SPI1, don't know if back or front of FIFO is overwritten on overfl
|
||||
ICR POL(1,2,3,6) may flip the pin value as well as the interrupt, POL5 does not flip the INT5 pin though, this was confirmed with a hardware test(it doesnt seem to but there is instability on the pin when the SD card is plugged in, this may have to do with card detect also being a data line on the SD pinout)
|
||||
edge triggered INT* don't clear on write to ISR when masked in IMR(at least that seems to be the reason)
|
||||
PWM1 FIFOAV is always set true
|
||||
if a sound interrupt is triggered while the button interrupt is disabled the button interrupt will still trigger(in galax game)()
|
||||
|
||||
Debug tools:
|
||||
missing home screen icons
|
||||
@@ -48,7 +49,6 @@ in the edge case that SPICLK2 is disabled while using ADS7846 and a 1 was the la
|
||||
|
||||
|
||||
Fixed:
|
||||
if a sound interrupt is triggered while the button interrupt is disabled the button interrupt will still trigger(in galax game)
|
||||
port g data bit 2 may need to be 0 to access ADS7846(it is)
|
||||
pen input
|
||||
pulling chip select low when high state likely resets the ADS7846 bit stream(this is currently being done when the SPI bus is enabled)(resetting on disable, that would make more sense because the chip needs to be read/written instantly once chip select is pulled low)
|
||||
|
||||
@@ -83,7 +83,7 @@ static inline uint8_t pwm1FifoEntrys(){
|
||||
|
||||
static inline uint16_t pwm1FifoSampleDuration(){
|
||||
uint16_t pwmc1 = registerArrayRead16(PWMC1);
|
||||
uint8_t prescaler = pwmc1 >> 8 & 0x7F;
|
||||
uint8_t prescaler = (pwmc1 >> 8 & 0x7F) + 1;
|
||||
uint8_t clockDivider = 2 << (pwmc1 & 0x03);
|
||||
uint8_t repeat = 1 << (pwmc1 >> 2 & 0x03);
|
||||
|
||||
@@ -415,7 +415,7 @@ static inline void setTstat2(uint16_t value){
|
||||
static inline void setPwmc1(uint16_t value){
|
||||
uint16_t oldPwmc1 = registerArrayRead16(PWMC1);
|
||||
|
||||
//always have FIFOAV set right now
|
||||
//always have FIFOAV set right now, hack
|
||||
value |= 0x0020;
|
||||
|
||||
//PWM1 enabled, set IRQ and FIFOAV bit to fill FIFO
|
||||
|
||||
Reference in New Issue
Block a user