Commit Graph
157 Commits
Author SHA1 Message Date
Brandyn Burbank e61fbe9a68 Allow HardwarePWM::addPin method to return true if _count == MAX_CHANNELS, but pin passed was already configured. Return false if trying to add a new pin more than MAX_CHANNELS. 2017-11-05 18:58:41 -07:00
Ureloc 52752f378b Cleaned up analogOversampling()
Removed unneeded code
2017-10-25 15:46:50 +02:00
Ureloc 92b638100c Implemented Uart::flush() 2017-10-25 14:35:08 +02:00
Ureloc 8c8d64315c Added analog oversampling
Implemented analog oversampling which allows any analog pin to be automatically sampled muliple times (upto 256) when analogRead() is used. An average of the samples is then returned.
2017-10-25 13:57:56 +02:00
hathach b193c9b03b sync with nrf52 core repo 2017-09-28 12:52:23 +07:00
hathach e84fd54027 added suspendLoop for low power 2017-09-27 15:48:15 +07:00
hathach b2e49f2fc9 Adacallback support fromISR call
- change Prioprity for loop() to LOW
- defer interrupt for both hw and sw encoder to ada callback
2017-09-15 17:56:24 +07:00
hathach 509d55f9a5 Add Adacallback as part of the repo and initial task 2017-09-15 16:40:14 +07:00
hathach 89a3de8a05 change adacallback from cpp to c 2017-09-15 16:32:44 +07:00
hathach c53d337350 move adacallback to core repo 2017-09-15 16:32:04 +07:00
hathach ebee25d510 freeRTOS is configured as tickless
close #40
2017-09-01 19:02:19 +07:00
hathach 2b74e93fbf clean up 2017-09-01 17:06:08 +07:00
hathach 07a02fb5ec update freeRTOS port to the one in sdk14 2017-09-01 16:45:25 +07:00
hathach 781ab83213 clean up 2017-09-01 11:45:31 +07:00
hathach e72a414f2b clean up 2017-09-01 11:08:58 +07:00
hathach b80c5a89bf test systemOff without freeRTOS 2017-08-31 18:15:38 +07:00
hathach a8d83b6c0d implement waitForEvent() and systemOff() 2017-08-31 15:14:37 +07:00
hathach ebea46c98d port SoftwareSerial close #62
- can receive data, and sending
2017-08-03 12:04:35 +07:00
hathach 2583357eff clean up 2017-07-29 01:30:28 +07:00
hathach 9c99fe9c03 add Uart.setPins() to remap Serial rx, tx 2017-07-28 12:28:22 +07:00
hathach b8beb424de complete bufferTXD() for bleuart
- reduce default max connection interval from 40 to 30 ms
- finish firmata port
2017-07-28 01:44:51 +07:00
hathach 2528b45480 clean up 2017-07-27 00:11:26 +07:00
hathach 5b6ee693ac more fifo refinement 2017-07-26 15:17:54 +07:00
hathach 0cbbe8f291 improve adafruit fifo 2017-07-26 15:13:45 +07:00
hathach 2e1977d71f add overwriteIfFull() to Adafruit Fifo 2017-07-26 15:08:02 +07:00
hathach ce38d3ce71 refactor adafruit fifo, move malloc from constructor to begin() 2017-07-26 14:54:05 +07:00
hathach 739f98b683 add readPin() and readChannel() to hw pwm
ported Servo library (not tested)
2017-07-25 00:38:59 +07:00
hathach f5e23fdaba add setMaxValue() to HW PWM 2017-07-24 23:16:22 +07:00
hathach 720cb0c82e rename HardwarePWM PWMn to HwPWMn to avoid name conflict 2017-07-24 22:16:37 +07:00
hathach cd2da96afb added bond debug when at level 2 2017-07-20 13:55:57 +07:00
hathach 48718392c3 fix nffs_inode_read_filename does not update out_full_len 2017-07-20 13:32:05 +07:00
hathach 9832d5eeaa enable printf_float 2017-07-19 13:42:27 +07:00
hathach 673f1821ac add GAP getAddr and setAddr
add Bluefruit.printInfo()
2017-07-18 14:26:22 +07:00
hathach 6c8cf3d29a minor update 2017-07-11 19:59:23 +07:00
hathach 55a922b3c1 close #30 add sysview realtrace support 2017-07-06 12:39:26 +07:00
hathach 107b196f33 update nffs to mynewt 1.0.0 2017-07-05 14:06:10 +07:00
hathach 0191a8f384 code clean up 2017-06-30 17:15:38 +07:00
hathach f42bea8d8f move bootloader retrieval to common init() 2017-06-29 14:44:02 +07:00
hathach b21185ae6f rename linker file 2017-06-29 14:15:00 +07:00
hathach 9ca63e0e7b move linker to separated folder in core 2017-06-29 14:12:25 +07:00
hathach b4719c4811 add dbgStackUsed() and dbgStackTotal()
update stack usage
2017-06-29 14:00:21 +07:00
hathach 91085a5799 add stack section for SRAM detection 2017-06-29 12:44:47 +07:00
hathach b0779f0ee8 fill stack region with pattern 0xADADADAD for detect stack usage 2017-06-29 12:44:24 +07:00
hathach cf68679497 move linker to core since it is customized version 2017-06-29 11:47:31 +07:00
hathach 3e95f13e47 reduce stack from 3KB to 2KB 2017-06-29 11:46:50 +07:00
hathach 6acaa4b25e move ld file to sdk folder 2017-06-29 00:05:41 +07:00
hathach 5c69ff5ff9 clean up 2017-06-28 23:45:01 +07:00
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