Commit Graph
11 Commits
Author SHA1 Message Date
RistoandGitHub 4e926fcdab Bluetooth.cpp array bounds fix
Eliminates accessing array out of it's bounds - below array first element in next line, where buffer[bufferIndex-13] is used. When bufferIndex would be less than 12, out of bounds memory access would occur.
2021-04-05 18:43:31 +02:00
RistoandGitHub a04b3f377a Using new TRAINER_FRAME 2021-04-05 18:19:20 +02:00
RistoandGitHub 2a6cde247d Added TRAINER_FRAME 2021-04-05 18:18:19 +02:00
RistoandGitHub 594e937e44 Making better use of BLUETOOTH_PACKET_SIZE
Using BLUETOOTH_PACKET_SIZE instead of literal in code.
2021-04-05 18:13:21 +02:00
RistoandGitHub 84f769dbe7 Fix building with TRACE_SD_CARD CMake option (#8391) 2021-04-05 13:06:24 +02:00
RistoandGitHub 1624d5b69c STM32 WordLength 9b -> 8b data + parity
Fixed comment. STM32 WordLength 9b is here necessary due to parity bit (8b data + 1b parity) and not due to 2 stop bits.
2021-03-19 18:55:47 +01:00
RistoandGitHub e0cd919c3e Minor issues of old startup_stm32f42_43xx
STM32F429/439 are Cortex M4 processors.

By comparing this file with the appropriate startup_stm32f429bitx.s file generated by the current STM32CubeIDE for STM32F429BI (as in TX16S, T16 & T18) , I can see that the present OpenTX version misses an initial stack pointer setting.

Both issues fixed herewith.
2021-03-14 13:39:15 +01:00
RistoandGitHub 7940515a48 telemetry dir pin init missed oType def
Added missing OType definition to telemetry direction pin.
2021-03-13 22:43:26 +01:00
RistoandGitHub 1a4eb0636e Minor comment fix in hal.h (#8361)
Minor comment fix in hal.h for AUX_SERIAL_PWR_GPIO_PIN port and pin.
2021-03-13 17:57:53 +01:00
Ristoandrotorman ecfa393a9b Uniform CLI stackinfo output in bytes.
Main task size currently in double words, the CoOS RTOS task stack sizes in bytes.
Available stack size output was in double words, now everything uniform in bytes also added "bytes" label to CLI output to make this clear.
2021-02-18 16:33:24 +01:00
RistoandGitHub 7eaede341a RTOS_MS_PER_TICK calculation simplification
CFG_CPU_FREQ cancels itself out in the original equation: ((CFG_CPU_FREQ / CFG_SYSTICK_FREQ) / (CFG_CPU_FREQ / 1000)) 
In addition, comment is now fixed - 1ms is used for STM32, 2ms was used for other chips:
https://github.com/opentx/opentx/blob/e94f6c0ccdc1ecd800f2ef27a28120878bc9ec41/radio/src/thirdparty/CoOS/OsConfig.h#L88-L92
2021-02-14 14:33:49 +01:00