Compare commits
2 Commits
5c4552ccde
...
c9127b95ad
Author | SHA1 | Date | |
---|---|---|---|
c9127b95ad | |||
d2ef7ea91a |
@ -24,5 +24,4 @@ char *trim(char *s);
|
|||||||
int strtotime (char *s, struct _tm_ *tp);
|
int strtotime (char *s, struct _tm_ *tp);
|
||||||
// uint8_t dayofweek(uint8_t century, uint8_t y, uint8_t m, uint8_t d);
|
// uint8_t dayofweek(uint8_t century, uint8_t y, uint8_t m, uint8_t d);
|
||||||
|
|
||||||
|
|
||||||
#endif /* INC_HELPER_H_ */
|
#endif /* INC_HELPER_H_ */
|
||||||
|
@ -10,6 +10,4 @@
|
|||||||
|
|
||||||
void ringbuf_test(void);
|
void ringbuf_test(void);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* INC_RINGBUF_TEST_H_ */
|
#endif /* INC_RINGBUF_TEST_H_ */
|
||||||
|
@ -56,7 +56,7 @@ static const cmd_table_t cmd_table[] = {
|
|||||||
{"help", 1, CMD_NO_FLAG, do_help },
|
{"help", 1, CMD_NO_FLAG, do_help },
|
||||||
{"hidden", 2, CMD_HIDDEN, do_test },
|
{"hidden", 2, CMD_HIDDEN, do_test },
|
||||||
{"info", 1, CMD_NO_FLAG, do_info },
|
{"info", 1, CMD_NO_FLAG, do_info },
|
||||||
{"sinfo", 1, CMD_SECRET, do_sinfo },
|
{"sinfo", 1, CMD_SECRET, do_sinfo },
|
||||||
{"time", 1, CMD_NO_FLAG, do_time },
|
{"time", 1, CMD_NO_FLAG, do_time },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -220,7 +220,7 @@ int main(void)
|
|||||||
printf("Device #1 gets status %d\n", status);
|
printf("Device #1 gets status %d\n", status);
|
||||||
printf("Debug:\n%s", si5351_read_debug_msg(instance_si5351[1]));
|
printf("Debug:\n%s", si5351_read_debug_msg(instance_si5351[1]));
|
||||||
#endif
|
#endif
|
||||||
//si5351_set_clk0(instance_si5351[1], 3579545);
|
// si5351_set_clk0(instance_si5351[1], 3579545);
|
||||||
// si5351_set_clk0(instance_si5351[1], 3580000);
|
// si5351_set_clk0(instance_si5351[1], 3580000);
|
||||||
// si5351_set_clk0(instance_si5351[1], 4000000);
|
// si5351_set_clk0(instance_si5351[1], 4000000);
|
||||||
#if 0
|
#if 0
|
||||||
@ -313,7 +313,7 @@ int main(void)
|
|||||||
* MO: 3600 MHz, Antenna: 8m
|
* MO: 3600 MHz, Antenna: 8m
|
||||||
* 2 m RF power 1 W, MOE-MO5: 144.500, MO: 144.900 MHz, crossed dipole
|
* 2 m RF power 1 W, MOE-MO5: 144.500, MO: 144.900 MHz, crossed dipole
|
||||||
*/
|
*/
|
||||||
//si5351_set_clk0(si5351_inst, 3600000); /* MO FOX */
|
// si5351_set_clk0(si5351_inst, 3600000); /* MO FOX */
|
||||||
// si5351_set_clk (si5351_inst, 2, 3551000, SI5351_PLLB);
|
// si5351_set_clk (si5351_inst, 2, 3551000, SI5351_PLLB);
|
||||||
// si5351_set_clk (si5351_inst, 2, 3551000, SI5351_PLLB);
|
// si5351_set_clk (si5351_inst, 2, 3551000, SI5351_PLLB);
|
||||||
// si5351_set_clk0(si5351_inst, 3600000); /* MO FOX */
|
// si5351_set_clk0(si5351_inst, 3600000); /* MO FOX */
|
||||||
|
@ -141,13 +141,13 @@ static int si5351_error_status_i2c(HAL_StatusTypeDef status) {
|
|||||||
switch (status) {
|
switch (status) {
|
||||||
case HAL_TIMEOUT:
|
case HAL_TIMEOUT:
|
||||||
return -ETIMEDOUT;
|
return -ETIMEDOUT;
|
||||||
break;
|
//break;
|
||||||
case HAL_ERROR:
|
case HAL_ERROR:
|
||||||
return -EIO;
|
return -EIO;
|
||||||
break;
|
//break;
|
||||||
case HAL_BUSY:
|
case HAL_BUSY:
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
break;
|
//break;
|
||||||
case HAL_OK:
|
case HAL_OK:
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user