diff options
author | coreglitch <mail@s3f.ru> | 2020-12-01 21:47:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-01 21:47:46 +0300 |
commit | f58b322bb57fa17386936baae3e540533c13ef31 (patch) | |
tree | 271ce65da05318fd66b8d46a2aa89793cb08191a /applications/input | |
parent | 36937f3595911105d191fc46303c21d6dfa3f07d (diff) |
FL-353 Cc1101 rx (#255)
* enable transparent mode
* rssi ok, transmit ok, fifo ok
* I see the signal
* successful async rx (registers from smartrf)
* refactor rfstudio register config
* rewrite config, found some issues
* handle G0 interrupts
* g0 irq enable after cc1101 init
* update cube
Diffstat (limited to 'applications/input')
-rw-r--r-- | applications/input/input.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/input/input.c b/applications/input/input.c index b03b3808..cabe655d 100644 --- a/applications/input/input.c +++ b/applications/input/input.c @@ -6,6 +6,10 @@ void nfc_isr(void); #endif +#ifdef BUILD_CC1101 +void cc1101_isr(); +#endif + static volatile bool initialized = false; static ValueManager input_state_record; static PubSub input_events_record; @@ -115,6 +119,13 @@ void HAL_GPIO_EXTI_Callback(uint16_t pin) { } #endif +#ifdef BUILD_CC1101 + if(pin == CC1101_G0_Pin) { + cc1101_isr(); + return; + } +#endif + if(!initialized) return; signal_event(&event); |