Commit Graph
1930 Commits
Author SHA1 Message Date
Raphael Coeffic 00e4194a70 Replace proprietary libAccess 2021-07-20 13:52:29 +02:00
rotorman ef08fc019f Incremented GT911 configuration with +1 and stopped writing it to GT911 on init/start if the same version has already been flashed to GT911 (as previously). 2021-07-18 11:32:14 +02:00
RistoandGitHub 0423b8d286 Stop disabling interrupts while clearing ADDR bit 2021-07-17 14:40:28 +02:00
rotorman 5f0bac3dc9 Rewrore STM32F4 HAL_I2C_MspDeInit to not call HAL_GPIO_DeInit(), but only disable I2C GPIO with GPIO_Init(). 2021-07-16 18:40:52 +02:00
rotorman a886c72a55 Cosmetics 2021-07-15 23:09:33 +02:00
rotorman b86745d8f4 Clear ADDR bit in atomic way. Not in original STM32F4 HAL.
Lower timeouts to more reasonable values.
2021-07-15 22:41:12 +02:00
rotorman 2ca5cc771c Added De-Init and Re-Init (in case this is ever required). 2021-07-15 21:34:20 +02:00
rotorman 8bfbb723f3 Integrated STM32F4 I2C HAL functions.
Changed old "I2C_SPEED" to "I2C_CLK_RATE" in order not to conflict with HAL.
Use TOUCH_INT again to gate touch sampling.
2021-07-15 19:25:31 +02:00
Raphael Coeffic 068c1a0f11 Renamed "hiccups" to "TSI2CEvents"
And use uint32_t for counting them.
2021-07-12 08:58:54 +02:00
Raphael Coeffic 52acfcd20d Quick & dirty polling mode (don't care about INT line) 2021-07-11 17:43:31 +02:00
Raphael Coeffic 49ae57d370 Take account of some corner cases in I2C multi-byte read
See https://github.com/geoffreymbrown/STM32-Template/blob/master/Library/i2c.c#L39 and RM0090 p851-853.
2021-07-11 14:30:43 +02:00
rotormanandRaphael Coeffic 8c7f3cecec * removed red LED
* added GT911 fw version and hiccup cound output to analogs page
* changed I2C to 400 kHz
* changed X Y threshold to 1
* added trace output
* fixed bool / uint8_t errors
2021-07-11 13:04:13 +02:00
rotormanandRaphael Coeffic 2c65b21355 Based on PR #408 ff34616 that according to @rcvideoreviews on Discord works.
Added:
* @olliw42 PR #415 STOP condition fix.
* @raphaelcoeffic EXTI_Trigger_Rising
* fixed some uint8_t bool confusions
* added volatile to touchEventOccured that is set from ISR and accessed from main code
* changed to upload GT911 config also if config version is the same
2021-07-11 13:04:13 +02:00
olliw42andRaphael Coeffic 2eef807fba avoid compile warning 2021-07-10 07:06:57 +02:00
Raphael CoefficandRaphael Coeffic 938679da2f Use longer period for PXX2 modules triggered by heartbeat signal and reset timer early
This allows to cope for the different frame rates used by ACCESS and ACCST modes. See opentx/opentx#8601 for details.
2021-07-09 14:26:26 +02:00
RistoandGitHub 7f472ff5e8 Merge pull request #396 from rotorman/X12S_RTC
Enable VBat bridge to enable RTC coin cell sampling on X12S
2021-07-07 10:36:28 +02:00
Richard Li 17ed43d0d0 Fixed flysky hall stick mod problem in T16. 2021-07-07 13:48:32 +08:00
RistoandGitHub f604fed503 Try fix X12S RTC battery sampling 2021-07-03 13:48:02 +02:00
Raphael CoefficandRaphael Coeffic 4667b29698 [color] fix attempt for GT911 touch sensor driver
This fix contains 2 modifications:
- poll GT911_READ_XY_REG for 20ms in case not yet ready
- write 0 to GT911_READ_XY_REG in all cases

These fixes are largely inspired from the Linux GT9xx driver (see https://gitlab.com/AdyaAdya/goodix-touchscreen-linux-driver/-/blob/master/goodix.c)
2021-07-03 08:16:33 +02:00
Raphael Coeffic 6126241f0b Revert "Further protection"
This reverts commit 751bb6127d.
2021-06-23 12:45:13 +02:00
Raphael CoefficandGitHub 582f399a2f Merge pull request #309 from EdgeTX/fix-isrm-pulses
Fix isrm pulses
2021-06-23 07:01:57 +02:00
Raphael Coeffic f3a01d7ee7 Fixed missing sliders on main screen and calibration 2021-06-23 06:43:26 +02:00
3djcandRaphael Coeffic 751bb6127d Further protection 2021-06-23 06:28:17 +02:00
Raphael Coeffic 53261ad067 Removed waiting for serial queue
triggers emergency mode in case serial port has not been enabled.
2021-06-22 20:36:50 +02:00
RistoandGitHub 4bfcbf7a05 Adds support for correct Alps EC10E roller hookup (#261)
Enhanced roller update (thx to Mike Blandford https://www.rcgroups.com/forums/showpost.php?p=46929617&postcount=9974 )

* TX12 should also have ROTARY_ENCODER_GRANULARITY 2
2021-06-21 18:43:40 +02:00
Raphael Coeffic 0011eebffa Fix attempt for locked touch
Thx Jakub!
2021-06-20 19:00:48 +02:00
norulersandRaphael Coeffic 5e03b762ea Update gt911 config version 2021-06-15 09:53:13 +02:00
norulersandRaphael Coeffic f4b50cee9d Update T18 gt911 configuration 2021-06-15 09:53:12 +02:00
Raphael Coeffic 4dd8692191 Added GT911 config as provided by Jumper (not yet correct ATM) 2021-06-14 19:57:35 +02:00
Raphael Coeffic 7789f5547c Added touch support for T18
Resolves #138
2021-06-14 19:57:35 +02:00
Raphael CoefficandGitHub 802127852e Merge pull request #193 from EdgeTX/theme-facelift
Default Theme facelift
2021-06-14 19:50:09 +02:00
Raphael Coeffic f3fbed5a1b Fixed AUX serial definition in auxSerialSetup() 2021-06-14 17:45:43 +02:00
Raphael Coeffic 13de840ee0 Last round fixes 2021-06-14 13:48:48 +02:00
RistoandGitHub f665ce5a9d DMA2D configuration error fix (-DDEBUG_WINDOWS) (#190)
* Fixes DMA2D ConfError

* Check configuration and transfer errors

Check for DMA2D configuration and transfer errors and do not enter the otherwise endless while loop. Thx to @raphaelcoeffic for the tip.
2021-06-11 15:56:30 +02:00
Raphael Coeffic 33d8267489 Merge branch '2.3' into 2.4
# Conflicts:
#	radio/src/datastructs.h
2021-06-10 17:31:39 +02:00
Raphael Coeffic f7d36cd695 Place adcRead() back to mixer task to avoid issues with heartbeat triggered modules
Resolves #166
2021-06-09 14:26:46 +02:00
richardclliandGitHub ea9207bfb8 Flysky Hall Stick MOD using UART4 by disabling stick A/D, resolving #140. (#149)
* Flysky Hall Stick MOD using UART4 by disabling stick A/D.

* Fixed build error.

* Added Flysky hall stick mod in test targets.

* Changed ADC disable for Flysky hall sticks method.
2021-06-06 18:09:58 +02:00
RistoandRaphael Coeffic d571806caa Removed AddressSanitizer for Simu
Removed AddressSanitizer for Simu to get rid of ASan error on Simu start
2021-06-05 21:25:08 +02:00
Raphael CoefficandRaphael Coeffic 875c1688b1 Remove simuLcdBuf inversion on BW targets 2021-06-05 20:29:09 +02:00
Raphael Coeffic f9aeebcabe Fixed using objcopy with the full path as specified in main CMake 2021-05-31 18:14:08 +02:00
RistoandRaphael Coeffic 3a01639f5f Fixes HardFault on boardOff() with forced power supply
Fixes power-off HardFault during hw-debugging at the end of boardOff(), when power supply to MCU is forced (developer boards, w/o cutting power with pwrOff() ).
2021-05-29 13:40:05 +02:00
Raphael CoefficandRaphael Coeffic 351173a509 Various fixes around flashing bootloader 2021-05-29 13:34:25 +02:00
Raphael CoefficandRaphael Coeffic 49d654a07d Fix linker script 2021-05-29 13:31:50 +02:00
Raphael CoefficandRaphael Coeffic 836733618c Place main and tasks stacks in CCM 2021-05-29 13:31:50 +02:00
Raphael CoefficandRaphael Coeffic 0eb2d0914c Use the bin allocator only on targets without SDRAM
The bin allocator causes random alignment issues on these targets
2021-05-29 13:31:50 +02:00
Raphael CoefficandRaphael Coeffic 08fd8a331d Move data section to SRAM 2021-05-29 13:31:50 +02:00
Raphael CoefficandRaphael Coeffic f4a6b3411f Revert "Disable NANO for everything but taranis targets"
This reverts commit 67760354b8.
2021-05-29 13:31:50 +02:00
Raphael Coeffic 67760354b8 Disable NANO for everything but taranis targets 2021-05-28 10:09:43 +02:00
Raphael Coeffic 199afb8efa Fixed T18 support 2021-05-28 09:40:46 +02:00
Raphael CoefficandRaphael Coeffic afd0a4541b Enable DEBUG over serial in bootloader 2021-05-26 16:08:51 +02:00