85 Commits
Author SHA1 Message Date
hathach e29a324d79 add most of the ble char 2021-06-08 16:14:04 +07:00
Henry Gabryjelski 03805f3c33 Define PRINTF macro regardless of debug level. 2020-03-11 15:25:40 -07:00
Henry Gabryjelski 4565d0cd7d Use uppercase PRINTF.
This is a step in preparation for the ability to
change the default handler for printf(), such as
when advanced debug output capabilities make it
more performant to output via an alternative route.
2020-03-11 15:25:39 -07:00
hathach df6a459a10 remove requestPHY() from 1MB to 2MB, old Mac may not support 2MB. Leave it to central to switch
also add hci str debug
2020-03-02 22:11:30 +07:00
hathach a724c718f6 Merge branch 'master' into develop 2020-01-31 11:08:53 +07:00
hathach 25232734f9 add SoftwareTimer setID/getID 2020-01-22 17:18:06 +07:00
bluera1n 979a68dbd2 Fix wrong expression of device ID in getMcuUniqueID() 2020-01-17 00:40:55 +09:00
Henry Gabryjelski 80e1b12dc6 Remove unused variable. 2020-01-08 18:03:38 -08:00
Henry Gabryjelski 62e766d05d Match type in printf 2020-01-06 08:25:51 -08:00
hathach 33857e9ed3 add timer ID support to software timer 2019-11-13 16:56:44 +07:00
hathach 54c87e8f29 refactor Software Timer, auto detect if in ISR mode 2019-11-13 16:29:58 +07:00
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