Commit Graph
110 Commits
Author SHA1 Message Date
hathach 730ee7e1d6 change rtos_idle_hook behavior
- if rtos_idle_callback is not defined, go to low-power when Idle.
Otherwise user have to call waitForEvent() manually.
2017-04-13 18:16:00 +07:00
hathach 3d0014fa8a clean up 2017-04-12 13:36:40 +07:00
hathach 117d251d4b fix RTC1 compare interrupt is not clear by bootloader 2017-04-12 12:43:33 +07:00
hathach b37b8bcb77 upgrade port_cmsis_systick.c to matches one in sdk13 for tick fix 2017-04-12 11:24:30 +07:00
hathach 3f83bb06ac move waitForEvent() to wiring, increase configMINIMAL_STACK_SIZE from 60 to 100 2017-04-10 23:52:59 +07:00
hathach a81184d9ce remove unused mcu core 2017-04-10 18:17:15 +07:00
hathach e191a07dec forgot to add the file 2017-04-10 17:28:21 +07:00
hathach 6c87cf4df2 add SoftwareTimer support 2017-04-10 17:27:30 +07:00
hathach e5d98a877f call waitForEvent() in core idle hook 2017-04-10 16:39:14 +07:00
hathach f093e03c5d clean up 2017-04-10 15:23:39 +07:00
hathach d2fc54fab9 Change FreeRTOS tick source from systick to RTC for low-power mode 2017-04-10 15:23:13 +07:00
hathach 33a6bb3642 rename PWM begun() to enabled() 2017-04-10 15:15:58 +07:00
hathach a454cb9f21 add optional callback rtos_idle_callback() 2017-04-09 21:51:00 +07:00
hathach a335699296 only enter low power mode waitForEvent() in idle if there is no active PWM 2017-04-09 14:42:26 +07:00
hathach 2ab46a03fa move waitForEvent() to Arduino.h 2017-04-08 17:03:53 +07:00
hathach 291a28b507 add waitForEvent() as macro for __WFE(). Enable Idle Hook and call wfe instruction 2017-04-08 16:59:56 +07:00
hathach 887d0354a0 revert syscall 2017-04-08 16:32:58 +07:00
hathach f62daa12fd newline correction 2017-04-08 16:31:25 +07:00
hathach cbbf75e6ef add stub for malloc lock 2017-04-07 17:46:46 +07:00
hathach f50708b24c add sleep() as wrapper for __wfe() 2017-04-06 15:45:51 +07:00
hathach b1336100cc add mutex for uart to prevent write conflict 2017-04-04 12:39:02 +07:00
hathach aa32c41ff8 adacallback
- peripherl connect callback
- central characteristic notify callback
2017-04-04 12:38:40 +07:00
hathach a770b995c3 added AdaCallback implemetation 2017-04-03 22:58:35 +07:00
hathach d955303a78 clean up 2017-04-03 13:53:38 +07:00
hathach 1f2efb042a relate to #21 2017-03-28 22:15:52 +07:00
hathach 7168d198ef make HardwarePWM compatible with Neopixel DMA 2017-03-28 22:15:22 +07:00
hathach 8cb712c377 remove debug code 2017-03-25 01:49:13 +07:00
hathach 673980a005 clean up 2017-03-25 01:21:20 +07:00
hathach 774311e4b8 implement analogWrite() and analogWriteResolution() with HardwarePWM 2017-03-25 01:16:53 +07:00
hathach b77e907702 clean up 2017-03-25 01:01:38 +07:00
hathach 0c5273b1c6 merge begin() and start() 2017-03-25 00:22:09 +07:00
hathach 953c55b218 adding HardwarePWM support 2017-03-24 15:57:47 +07:00
hathach a3afb48e7f fix pwm polarity 2017-03-23 15:36:46 +07:00
hathach 5751d6f651 increase memoryinfo for DEBUG LEVEL 2 to 60 seconds 2017-03-22 21:56:53 +07:00
hathach 861af7b7e2 clean up BLEUuid merge uuid16 & uuid128 with copy operator
- also change DIS model to "Bluefruit Feather 52"
2017-03-20 18:21:33 +07:00
hathach fe148b78d7 add Uart _begun, fix potetial hard fault with Debug level ON but Serial.begin() is not called 2017-03-17 13:36:26 +07:00
hathach a7329b9ea0 allow application to enter OTA DFU with soft reset 2017-03-16 22:22:09 +07:00
hathach feb63dc062 rename 2017-03-16 21:14:13 +07:00
hathach fd386cce43 udpate bootloader, add dfu_serial enter sketch 2017-03-16 21:03:49 +07:00
hathach a1c3cc04dc clean up 2017-03-16 16:00:52 +07:00
hathach 812fbad07d implement Scheduler 2017-03-16 00:01:33 +07:00
hathach a816e70e8f rename rtos.c to rtos.cpp preparing to implement scheduler 2017-03-15 22:39:21 +07:00
hathach 9e85c1731d add neomatrix example
clean up warnings
2017-03-15 17:02:06 +07:00
hathach cfc3bd1f8c get SD version instead of hardcode string 2017-03-15 15:33:17 +07:00
hathach 5fd39b1e28 loop() call yield() instead of vTaskDelay(1) 2017-03-15 12:57:06 +07:00
hathach 8d80b01f84 add keywords.txt 2017-03-15 01:21:32 +07:00
hathach 3b0088f6e9 implement delay_ns with DWT 2017-03-11 00:49:36 +07:00
hathach d0677e6b99 fix MCU speed 64MHz instead of 16MHz
use 32Khz crystal instead of RC for clock
2017-03-09 16:20:06 +07:00
hathach 255b189605 implement BLEMidi as Serial to use with Arduino MIDI library 2017-03-08 15:19:11 +07:00
hathach 2467c02677 fix the build error with log macros 2017-03-07 23:29:18 +07:00