[FL-1369, FL-1397, FL-1420] IRDA + SDcard (#513)
* Add saving to SD-Card (not ready yet) * Add saving to SD-card (done) * Select previous menu item * Fix central button * Fix current_button * Refactoring * Add notifications * [FL-1417] Add IRDA CLI CLI commands: 1) ir_rx Receives all IR-trafic, decodes and prints result to stdout 2) ir_tx <protocol> <address> <command> Transmits IR-signal. Address and command are hex-formatted * Fix BUG with random memory corruption at random time in random place in random universe in random unknown space and time forever amen * Fix submenu set_selected_item * Bring protocol order back * Add TODO sdcard check
This commit is contained in:
@@ -49,6 +49,12 @@ void api_hal_irda_pwm_set(float duty_cycle, float freq);
|
||||
*/
|
||||
void api_hal_irda_pwm_stop();
|
||||
|
||||
/**
|
||||
* Check if IRDA is in use now.
|
||||
* @return false - IRDA is busy, true otherwise.
|
||||
*/
|
||||
bool api_hal_irda_rx_irq_is_busy(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@@ -97,6 +97,10 @@ void api_hal_irda_rx_irq_deinit(void) {
|
||||
LL_TIM_CC_DisableChannel(TIM2, LL_TIM_CHANNEL_CH2);
|
||||
}
|
||||
|
||||
bool api_hal_irda_rx_irq_is_busy(void) {
|
||||
return (LL_TIM_IsEnabledIT_CC1(TIM2) || LL_TIM_IsEnabledIT_CC2(TIM2));
|
||||
}
|
||||
|
||||
void api_hal_irda_rx_irq_set_callback(TimerISRCallback callback, void *ctx) {
|
||||
furi_check(callback);
|
||||
|
||||
|
@@ -97,6 +97,10 @@ void api_hal_irda_rx_irq_deinit(void) {
|
||||
LL_TIM_CC_DisableChannel(TIM2, LL_TIM_CHANNEL_CH2);
|
||||
}
|
||||
|
||||
bool api_hal_irda_rx_irq_is_busy(void) {
|
||||
return (LL_TIM_IsEnabledIT_CC1(TIM2) || LL_TIM_IsEnabledIT_CC2(TIM2));
|
||||
}
|
||||
|
||||
void api_hal_irda_rx_irq_set_callback(TimerISRCallback callback, void *ctx) {
|
||||
furi_check(callback);
|
||||
|
||||
|
Reference in New Issue
Block a user