Compare commits

...

2 Commits

Author SHA1 Message Date
17b911ff8e cfg: Add raspi config.txt 2020-07-31 19:18:48 +02:00
1b1d3a14d6 fw: Invert polarity of SBCMON pin 2020-07-31 19:18:26 +02:00
2 changed files with 4 additions and 1 deletions

3
config/config.txt Normal file
View File

@ -0,0 +1,3 @@
dtparam=spi=on
dtoverlay=hifiberry-dac
dtoverlay=gpio-poweroff,gpiopin=24,active_low=1

View File

@ -102,7 +102,7 @@ inline void input_clear_events()
inline uint8_t get_sbc_state() inline uint8_t get_sbc_state()
{ {
return !(PORT_SBCMON(PIN) & PIN_SBCMON); return (PORT_SBCMON(PIN) & PIN_SBCMON);
} }
// Need to call timer_proc() before calling this function! // Need to call timer_proc() before calling this function!