Damjan Adamic and Bertrand Songis
29c43d9e33
Projectkk2glider/usb hardening ( #4125 )
...
* USB fixes:
* USB initialized when USB cable is inserted and de-initialized when disconnected (this was the original way, which proved itself unreliable in the past. Now with the new USB library it appears to work without any problems. Used in this way result in safer operation - USB controller is disabled while unconnected)
Works without force device mod
* Serial: initialization of global variables
* Reduced RAM usage - data moved to FLASH
* Detailed USB interrupt counters (+ debug print fix)
2016-12-11 10:33:52 +01:00
Damjan Adamic and Bertrand Songis
5a5cf7cf33
Projectkk2glider/issue 4086 usb and serial ( #4097 )
...
* Serial2 changes:
* stm32 driver moved to common dir.
* earlier start of driver (Taranis)
* wait for free buffer time limited
USB changes:
* Upgrade to ST USB-Host-Device_Lib_V2.2.0 (from V2.1.0) - this fixed a problem with USB serial #4086 )
* other fixes for #4086
* USB-Host-Device_Lib: renamed directory to V2.2.0 (from V2.1.0)
2016-12-06 20:32:30 +01:00
Bertrand Songis
a0a460087f
Warnings removed
2016-11-17 09:49:07 +01:00
Damjan Adamic and Bertrand Songis
4513cf89f2
Projectkk2glider/fatfs 0.12 ( #3925 )
...
* Re #3815 : Disk cache: Write statistic added. Bigger disk cache. Show disk cache misses in CLI.
* Update to the latest FatFS R0.12b (all existing OpenTX patches have been already applied in upstream, only few ff.h modifications needed for simulator)
* Missing file
* SD card manager: do not show parent dir [..] for root directory
2016-10-18 18:14:17 +02:00
Damjan Adamic
2a8629c670
Fixes #3826 : disable Lua platform optimizations (lua_number2integer() behaves the same way on all platforms)
2016-10-02 17:00:03 +02:00
Bertrand Songis
6c34752907
Warnings fixed and remarks from #3666 taken into account
2016-08-01 07:16:33 +02:00
Bertrand Songis
351780bf17
[Horus] Correct alignment for massstorage buffer (increases speed)
2016-07-31 21:34:10 +02:00
Bertrand Songis
fcdcccf8f5
[Horus] Massstorage bugfix (read cache beyond end of disk)
2016-07-30 23:30:52 +02:00
Bertrand Songis
51223a5864
No more REV9E and REVPLUS
2016-07-29 14:44:59 +02:00
Bertrand Songis
c777af2b72
Compilation error fixed
2016-06-30 23:06:03 +02:00
Bertrand Songis
5f03924b5f
Compilation error fixed
2016-06-30 22:44:16 +02:00
reichi and Bertrand Songis
8606e75f45
Add Support for the DS3231 RTC and enable it for AR9X, refs #3531 ( #3555 )
...
* Add Support for the DS3231 RTC and enable it for AR9X, refs #3531
* fix compile for PCB=sky9x
* rtc ds3231: Add missing OpenTX headers
2016-06-09 17:58:42 +02:00
Damjan Adamic
868133371c
Fixes #3374 : added SD card disk cache for Horus
...
* SIMU_DISKIO option available again
* new option DISK_CACHE defaults to ON for Horus
* printf("%f") fixed in CLI
2016-04-09 17:09:46 +02:00
Damjan Adamic
a8aa6148e5
Tasks switching log added (use -DDEBUG_TASKS=YES to enable and CLI command "print tsl" to see it, only works on Horus)
2016-04-03 17:56:32 +02:00
Damjan Adamic
9673df83a7
Interrupt counters added (use -DDEBUG_INTERRUPTS=YES to enable and CLI command "print int" to see them)
2016-04-03 17:51:20 +02:00
Damjan Adamic
485d30f65b
SysTick was configured wrong for Horus
2016-03-27 22:40:55 +02:00
Bertrand Songis
eb9e6d3c80
Fixes #3342
2016-03-11 18:07:40 +01:00
Bertrand Songis
301cd0538b
Changes in stb lib to avoid returning alpha bitmaps when no pixel has alpha
2016-02-29 18:41:35 +01:00
Damjan Adamic
bdb50052ba
Re #3167 : Stb library modifed to reduce its stack usage.
2016-02-27 17:33:27 +01:00
Damjan Adamic
5cc8f41bce
Re #3167 : Update to new stb_image.h library v 2.10 (commit 30015ef464)
2016-02-27 17:33:11 +01:00
Bertrand Songis
33910c8721
[Horus] UI continued
2016-02-16 20:45:25 +01:00
Bertrand Songis
1d867a0daa
[Horus] Lua constants names can go up to 32 chars
2016-02-16 18:54:07 +01:00
Damjan Adamic
826eb2569c
stb-image v2.08 library added ( https://github.com/nothings/stb )
2016-01-02 20:48:28 +01:00
Bertrand Songis
88841f63ca
Switch to CMake
2015-12-21 23:43:18 +01:00
Damjan Adamic
7538fcfb51
Git commit ID added to stamp
...
Fixes #2921 : getValue() now also returns pilot position
Fixes #3062 : Close any Lua open files when radio powers off
Fixes #3095 : Lua string library added (only 6k bytes of flash used)
Re #3095 : luaGetVersion() also returns version as numbers
(Ported from master 7ef790d3..4d0bd14ad and squashed into one commit)
2015-11-25 18:00:44 +01:00
Bertrand Songis
b7c09d703c
[Horus] UI continued
2015-11-18 22:07:48 +01:00
Bertrand Songis
de733579d5
Merge remote-tracking branch 'origin/next' into Horus
...
# Conflicts:
# companion/src/CMakeLists.txt
# companion/src/firmwares/opentx/opentxinterface.cpp
# companion/src/firmwares/opentx/simulator/CMakeLists.txt
# companion/src/firmwares/opentx/stamp-opentx.h.in
# radio/src/Makefile
# radio/src/cli.cpp
# radio/src/gui/Taranis/helpers.cpp
# radio/src/gui/Taranis/lcd.cpp
# radio/src/gui/Taranis/menu_model_setup.cpp
# radio/src/gui/Taranis/view_main.cpp
# radio/src/lua_api.cpp
# radio/src/main_avr.cpp
# radio/src/myeeprom.h
# radio/src/opentx.cpp
# radio/src/pulses/pxx_arm.cpp
# radio/src/storage/eeprom_conversions.cpp
# radio/src/targets/Horus/adc_driver.cpp
# radio/src/targets/Horus/board_horus.cpp
# radio/src/targets/Horus/board_horus.h
# radio/src/targets/Horus/diskio.cpp
# radio/src/targets/Horus/hal.h
# radio/src/targets/Horus/haptic_driver.cpp
# radio/src/targets/Horus/i2c_driver.cpp
# radio/src/targets/Horus/keys_driver.cpp
# radio/src/targets/Horus/lcd_driver.cpp
# radio/src/targets/Horus/led_driver.cpp
# radio/src/targets/Horus/pulses_driver.cpp
# radio/src/targets/Horus/pwr_driver.c
# radio/src/targets/Horus/sdio_sd.c
# radio/src/targets/Horus/sdio_sd.h
# radio/src/targets/Horus/serial2_driver.cpp
# radio/src/targets/Horus/telemetry_driver.cpp
# radio/src/targets/Horus/usb_conf.h
# radio/src/targets/Horus/usbd_desc.c
# radio/src/targets/Horus/usbd_storage_msd.cpp
2015-11-15 23:08:34 +01:00
Damjan Adamic
2e068044c6
Fixes #3003 : Lua io.write() did not support numbers
2015-10-27 23:59:18 +01:00
Damjan Adamic
d3e2a00cd2
Re #3001 : f_open() did not support append mode (in simulator only)
2015-10-27 23:59:18 +01:00
Damjan Adamic
2feb5ac894
Fixes #3001 : Lua io.open() could not create new files
2015-10-27 23:59:18 +01:00
Bertrand Songis
6f774eb61a
[Horus] Companion simulator
2015-10-24 16:08:29 +02:00
Bertrand Songis
e25115b104
Compilation fixes
2015-10-14 23:47:51 +02:00
Bertrand Songis
c92909f7c5
A little bit code cleaning...
2015-10-14 23:47:51 +02:00
Bertrand Songis
2902ae1887
Horus simulator should now be OK
2015-10-14 23:47:51 +02:00
Damjan Adamic
c47a43e5ce
Re #2595 : buffer full check got stuck (volatile was missing)
2015-08-31 10:47:28 +02:00
Damjan Adamic
f7a8715657
Fixes #2598 : added USB serial port (with echo example), use USB=SERIAL to enable. If DEBUG=YES then debug output also goes to the USB serial port
2015-08-09 15:41:24 +02:00
Damjan Adamic
c1efd39df7
Better Lua traces
2015-07-31 18:59:20 +02:00
Damjan Adamic
1bc8e0d6c1
Added main stack painting for STM32F4
2015-07-31 18:58:50 +02:00
Damjan Adamic
516be9d9d3
Trace fixed
2015-06-25 21:11:22 +02:00
bsongis
63bed89a52
Compilation fixes
2015-06-11 20:29:21 +02:00
bsongis
ac638f2020
Include fixed
2015-06-09 21:15:10 +02:00
bsongis
d3b55e8ad6
Compilation fix. Now I2C @ 240kHz
2015-05-29 21:45:05 +02:00
bsongis
fdc47640e2
system_stm32 files moved to targets directory
2015-05-08 18:55:16 +02:00
Damjan Adamic
a1e467aaa0
Fixes #2154 : USB mass storage problem with cards bigger than 4GB
2015-04-28 20:41:07 +02:00
bsongis
5ed9bfcee9
Warning fix
2015-04-25 10:58:26 +02:00
bsongis
becad53951
Cosmetics
2015-04-25 10:52:01 +02:00
bsongis
84fc2007f5
Lua f_open in "a" mode added
2015-03-31 20:39:46 +02:00
Andre Bernet
10d70e7d00
Merge branch 'next' into bsongis/issue_1471_Lua_read_write_SD
2015-03-31 20:04:39 +04:00
bsongis
0b7a85daa7
#1471 - Lua moved to thirdparty directory - io.seek added
2015-03-24 18:58:58 +01:00
Andre Bernet
1b5543698b
Fix X9E clocks
2015-03-21 17:41:58 +04:00