Decreased uC speed, lowered mem for image thred, changed 2GFSK to 2FSK modulation

Develop
Sven Steudte 2017-09-07 20:11:59 +02:00
rodzic 582fb1e52c
commit 34301509c0
3 zmienionych plików z 12 dodań i 3 usunięć

Wyświetl plik

@ -309,12 +309,21 @@ void setModem2GFSK(gfsk_conf_t* conf) {
Si4464_write(setup_data_rate, 7);
// Use 2GFSK from async GPIO1
uint8_t use_2gfsk[] = {0x11, 0x20, 0x01, 0x00, 0x23};
uint8_t use_2gfsk[] = {0x11, 0x20, 0x01, 0x00, 0x22};
Si4464_write(use_2gfsk, 5);
// transmit LSB first
uint8_t use_lsb_first[] = {0x11, 0x12, 0x01, 0x06, 0x01};
Si4464_write(use_lsb_first, 5);
// Set AFSK filter
/*uint8_t coeff[] = {0x67, 0x67, 0x67, 0x67, 0x67, 0x67, 0x67, 0x67, 0x67};
uint8_t i;
for(i=0; i<sizeof(coeff); i++) {
uint8_t msg[] = {0x11, 0x20, 0x01, 0x17-i, coeff[i]};
Si4464_write(msg, 5);
}*/
}
void setPowerLevel(int8_t level) {

Wyświetl plik

@ -48,7 +48,7 @@
#define STM32_PLLN_VALUE 192
#define STM32_PLLP_VALUE 4
#define STM32_PLLQ_VALUE 4
#define STM32_HPRE STM32_HPRE_DIV1
#define STM32_HPRE STM32_HPRE_DIV2
#define STM32_PPRE1 STM32_PPRE1_DIV1
#define STM32_PPRE2 STM32_PPRE2_DIV1
#define STM32_RTCSEL STM32_RTCSEL_LSI

Wyświetl plik

@ -534,7 +534,7 @@ void start_image_thread(module_conf_t *conf)
if(conf->init_delay) chThdSleepMilliseconds(conf->init_delay);
TRACE_INFO("IMG > Startup image thread");
chsnprintf(conf->name, sizeof(conf->name), "IMG");
thread_t *th = chThdCreateFromHeap(NULL, THD_WORKING_AREA_SIZE(100*1024), "IMG", NORMALPRIO, imgThread, conf);
thread_t *th = chThdCreateFromHeap(NULL, THD_WORKING_AREA_SIZE(30*1024), "IMG", NORMALPRIO, imgThread, conf);
if(!th) {
// Print startup error, do not start watchdog for this thread
TRACE_ERROR("IMG > Could not startup thread (not enough memory available)");