Commit Graph
74 Commits
Author SHA1 Message Date
hathach 31ed8a4fbb improve ada callback, return false if there is not enough memory. 2019-09-23 15:28:13 +07:00
hathach e57a039d63 suspend callback task when reszing, still there is chance to run into issue. 2019-09-23 11:37:36 +07:00
hathach e400dc895d fix newlib nano _sbrk() is not linked for checking heap 2019-09-23 11:33:32 +07:00
hathach 2a4185573b reduce task stack size
- ble      task from 512*3 -> 256*5
- loop     task from 512*3 -> 256*4
- callback task from 512*2 -> 256*3
- usbd     task from 150   -> 200
2019-09-19 16:42:36 +07:00
hathach d7caa6405a improve ada callback, automatically resize queue depth when needed 2019-09-18 12:02:36 +07:00
hathach 1189249640 use queue static API for adacallback, increase CFG_CALLBACK_QUEUE_LENGTH to 80 2019-08-27 00:43:27 +07:00
hathach d81599d619 increase ada callback queue size from 20 to 40
- fox adacallback queue overflow with large image
- fix issue with tft draw bitmap
2019-08-26 23:55:58 +07:00
hathach 454db84ae5 improve mutex lock/unlock for fifo 2019-08-21 17:10:20 +07:00
Henry Gabryjelski e96b3ed14f Fix multiple warnings when building.
Fix #1:

warning: format '%X' expects argument of type 'unsigned int', but argument 3 has type 'int32_t {aka long int}' [-Wformat=]

The C++ specification requires "%X" to receive an unsigned value. Any other type (including signed values) is "undefined behavior".

Fix #2:

warning: narrowing conversion of '(((int)itfnum) + 1)' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]

The affected macros are returning a list of uint8_t values, typically to define statically-allocated byte arrays.
The fix is to explicitly cast to `uint8_t` when doing arithmetic on any parameter.  Also added explicit comment
on the implied constraint.
2019-08-14 13:56:12 -07:00
hathach 64e176b7cd more warnings clean up 2019-06-07 15:27:57 +07:00
hathach a95ead5add clean up warnings 2019-06-07 12:48:41 +07:00
hathach 7589540d2e refactor ada callback, prefer to have function than macros 2019-06-07 12:48:29 +07:00
hathach 577b2039b2 refactor ada_callback, detect isr using cortex ICSR
remove ada_callback_FromISR()
2019-06-07 10:23:38 +07:00
hathach 6bcffbd252 clean up warnings 2019-06-06 11:41:02 +07:00
hathach 4e0730549c Merge pull request #260 from MacGyverNL/master
Extend SoftwareTimer with option to make it non-repeating, add reset function & ISR-safe functions.
2019-05-15 11:24:58 +07:00
Pol Van Aubel 2ce11a601a Abstract away scheduler wake. 2019-05-14 22:25:31 +02:00
Pol Van Aubel 5b6e35d4e0 Add defaults for pxHigherPriorityTaskWoken. 2019-05-04 04:23:39 +02:00
Pol Van Aubel 6b9331883d Add default and clean up superfluous begin function. 2019-05-03 11:34:08 +02:00
Pol Van Aubel 75d2a8009e Extend SoftwareTimer with ISR-safe functions. 2019-05-02 01:07:22 +02:00
hathach dce9c93928 use USBCON macro to detect usb 2019-04-29 23:43:20 +07:00
hathach c88bd0092f Merge branch 'master' into develop 2019-04-04 20:34:43 +07:00
Jeremy Poulter 82cd7e87f0 Allow the task stack sizes to be configured 2019-03-11 22:41:21 +00:00
hathach 41dd885972 upgrade bootloader binary to 0.2.9 2019-03-01 18:54:27 +07:00
hathach e13922c58b enhance ada_callback, add malloc len for cleaner usage 2019-02-14 12:50:17 +07:00
hathach e05bdc9030 implement BLECharacteristic long write #91,#220 2019-02-13 14:57:36 +07:00
hathach 5ab56c1e31 resolve #203 2018-11-30 11:59:22 +07:00
hathach a91215fca4 add qspi device printf for testing 2018-11-27 14:54:11 +07:00
hathach 72a8cd841d minor cleanup 2018-11-09 22:18:24 +07:00
hathach 123c3080c3 clean up, replace cprintf by std printf (with _write hook) 2018-11-02 20:17:33 +07:00
hathach 9a4d94f485 clean up 2018-11-02 19:57:34 +07:00
hathach d89de257f7 clean up things 2018-11-01 14:09:42 +07:00
hathach 8045b1ec74 rtos clean up, remove yield at the end of loop() 2018-10-31 17:01:53 +07:00
hathach e1af1ac045 clean up 2018-10-17 20:55:54 +07:00
hathach 5c9fa09a93 able to open, write and read back with lfs 2018-10-17 13:19:12 +07:00
hathach 211e048537 clean up ble event string 2018-09-01 13:39:42 +07:00
hathach 5e2256b21a enhance getBootloaderVersion() 2018-08-09 12:54:44 +07:00
hathach 67106d5284 rename getFirmwareVersion() to getBootloaderVersion() 2018-08-07 16:50:30 +07:00
hathach 4640481d02 update Copyright year to 2018 2018-07-27 16:20:36 +07:00
hathach 9bcccc5524 clean up data callback 2018-06-14 14:43:14 +07:00
hathach 6d1019b77e add decription for ada_callback 2018-06-14 14:40:00 +07:00
hathach 694e48f8ca fix build error, add error of SD v6 2018-05-21 17:43:56 +07:00
hathach 57852c2a6e update SD lookup 2018-05-21 16:11:34 +07:00
hathach d87d3939fa update sd table 2018-04-17 20:23:17 +07:00
hathach 620470d5dc fix #142 add destructor for SoftwareTimer 2018-04-08 13:43:26 +07:00
hathach 7487320265 add dbgDumpMemoryCFormat() 2018-02-02 22:13:36 +07:00
hathach 11a360223b fix debug dump memory 2018-02-01 22:18:13 +07:00
hathach 933706dc7b clean up 2018-01-31 21:18:58 +07:00
hathach 1c68b851fc enhance dbgDumpMemory() to print anscii 2018-01-31 17:15:39 +07:00
hathach 62b80b084b clean up 2018-01-25 14:58:04 +07:00
hathach 73648578b0 fix debug issue 2018-01-16 14:59:12 +07:00