[FL-1546, FL-1534, FL-1550] Drop F5, Certification preparation, Global application start lock (#585)
* Firmware: drop F5 target * Rename app-loader to loader * Update code owners file * Loader: global application start lock API, minor refactoring * Archive: update loader usage * Cli: Command flags, global application start lock * Apps: update cli API usage * Bootloader: minor refactoring * Firmware: minor build refactoring * SubGhz: GUI packet test * SubGhz: drop packet transmission and unused presets * Github: drop F5 from build * Archive: favorites * Archive: a little bit more of Favorites
This commit is contained in:
@@ -118,11 +118,7 @@ uint32_t cc1101_set_frequency(const ApiHalSpiDevice* device, uint32_t value) {
|
||||
return (uint32_t)real_frequency;
|
||||
}
|
||||
|
||||
uint32_t cc1101_get_frequency_step(const ApiHalSpiDevice* device) {
|
||||
return CC1101_QUARTZ / CC1101_FDIV;
|
||||
}
|
||||
|
||||
uint32_t cc1101_set_frequency_offset(const ApiHalSpiDevice* device, uint32_t value) {
|
||||
uint32_t cc1101_set_intermediate_frequency(const ApiHalSpiDevice* device, uint32_t value) {
|
||||
uint64_t real_value = value * CC1101_IFDIV / CC1101_QUARTZ;
|
||||
assert((real_value & 0xFF) == real_value);
|
||||
|
||||
@@ -133,10 +129,6 @@ uint32_t cc1101_set_frequency_offset(const ApiHalSpiDevice* device, uint32_t val
|
||||
return (uint32_t)real_frequency;
|
||||
}
|
||||
|
||||
uint32_t cc1101_get_frequency_offset_step(const ApiHalSpiDevice* device) {
|
||||
return CC1101_QUARTZ / CC1101_IFDIV;
|
||||
}
|
||||
|
||||
void cc1101_set_pa_table(const ApiHalSpiDevice* device, const uint8_t value[8]) {
|
||||
uint8_t tx[9] = { CC1101_PATABLE | CC1101_BURST };
|
||||
CC1101Status rx[9] = { 0 };
|
||||
|
@@ -98,32 +98,18 @@ void cc1101_flush_rx(const ApiHalSpiDevice* device);
|
||||
void cc1101_flush_tx(const ApiHalSpiDevice* device);
|
||||
|
||||
/** Set Frequency
|
||||
* Is not 100% precise, depends on quartz used
|
||||
* @param device - pointer to ApiHalSpiDevice
|
||||
* @param value - frequency in herz
|
||||
* @return real frequency that were set
|
||||
* @return real frequency that were synthesized
|
||||
*/
|
||||
uint32_t cc1101_set_frequency(const ApiHalSpiDevice* device, uint32_t value);
|
||||
|
||||
/** Get Frequency Step
|
||||
/** Set Intermediate Frequency
|
||||
* @param device - pointer to ApiHalSpiDevice
|
||||
* @return frequency step
|
||||
* @param value - frequency in herz
|
||||
* @return real inermediate frequency that were synthesized
|
||||
*/
|
||||
uint32_t cc1101_get_frequency_step(const ApiHalSpiDevice* device);
|
||||
|
||||
/** Set Frequency Offset
|
||||
* Is not 100% precise, depends on quartz used
|
||||
* @param device - pointer to ApiHalSpiDevice
|
||||
* @param value - frequency offset in herz
|
||||
* @return real frequency that were set
|
||||
*/
|
||||
uint32_t cc1101_set_frequency_offset(const ApiHalSpiDevice* device, uint32_t value);
|
||||
|
||||
/** Get Frequency Offset Step
|
||||
* @param device - pointer to ApiHalSpiDevice
|
||||
* @return frequency offset step
|
||||
*/
|
||||
uint32_t cc1101_get_frequency_offset_step(const ApiHalSpiDevice* device);
|
||||
uint32_t cc1101_set_intermediate_frequency(const ApiHalSpiDevice* device, uint32_t value);
|
||||
|
||||
/** Set Power Amplifier level table, ramp
|
||||
* @param device - pointer to ApiHalSpiDevice
|
||||
|
@@ -105,8 +105,8 @@ CFLAGS += -I$(LIB_DIR)/args
|
||||
C_SOURCES += $(wildcard $(LIB_DIR)/args/*.c)
|
||||
|
||||
# SubGhz
|
||||
C_SOURCES += $(wildcard $(LIB_DIR)/fl_subghz/*.c)
|
||||
C_SOURCES += $(wildcard $(LIB_DIR)/fl_subghz/*/*.c)
|
||||
C_SOURCES += $(wildcard $(LIB_DIR)/subghz/*.c)
|
||||
C_SOURCES += $(wildcard $(LIB_DIR)/subghz/*/*.c)
|
||||
|
||||
#scened app template lib
|
||||
CFLAGS += -I$(LIB_DIR)/app-scened-template
|
||||
|
@@ -25,7 +25,7 @@ void subghz_protocol_free(SubGhzProtocol* instance);
|
||||
* @param callback - SubGhzProtocolTextCallback callback
|
||||
* @param context
|
||||
*/
|
||||
void subghz_protocol_enable_dump_text(SubGhzProtocol* instance,SubGhzProtocolTextCallback callback,void* context);
|
||||
void subghz_protocol_enable_dump_text(SubGhzProtocol* instance, SubGhzProtocolTextCallback callback, void* context);
|
||||
|
||||
/** Outputting data SubGhzProtocol from all parsers
|
||||
*
|
@@ -70,7 +70,7 @@ void subghz_protocol_princeton_parse(SubGhzProtocolPrinceton* instance, bool lev
|
||||
switch (instance->common.parser_step) {
|
||||
case 0:
|
||||
if ((!level)
|
||||
&& (DURATION_DIFF(duration,instance->common.te_shot * 36)< instance->common.te_delta * 36)) {
|
||||
&& (DURATION_DIFF(duration,instance->common.te_shot * 36) < instance->common.te_delta * 36)) {
|
||||
//Found Preambula
|
||||
instance->common.parser_step = 1;
|
||||
instance->common.code_found = 0;
|
Reference in New Issue
Block a user