ready to release
This commit is contained in:
1 parent
989a337bd9
commit
f9a3c5287c
11 files changed
+6394
-6392
No files matched your search
+1314
-1312
File diff suppressed because it is too large.
Load diff
Binary file not shown.
+1690
-1688
File diff suppressed because it is too large.
Load diff
BIN
Binary file not shown.
File diff suppressed because it is too large.
Load diff
Binary file not shown.
File diff suppressed because it is too large.
Load diff
Binary file not shown.
+3
-1
@@ -2,7 +2,9 @@
|
||||
|
||||
## 0.9.1
|
||||
|
||||
- rename FileIO.h to Bluefruit_FileIO to prevent conflict with other libraries.
|
||||
- Rename FileIO.h to Bluefruit_FileIO to prevent conflict with other libraries.
|
||||
- Minor upgrade for bootloader to prevent issue with WDT enabled by application
|
||||
- 52840: call cdc flush before delay()
|
||||
|
||||
## 0.9.0
|
||||
|
||||
|
||||
+14
-1
@@ -37,7 +37,20 @@ uint32_t micros( void )
|
||||
|
||||
void delay( uint32_t ms )
|
||||
{
|
||||
vTaskDelay(ms2tick(ms));
|
||||
uint32_t ticks = ms2tick(ms);
|
||||
|
||||
#ifdef NRF52840_XXAA
|
||||
// Take chance to flush usb cdc
|
||||
uint32_t flush_tick = xTaskGetTickCount();
|
||||
tud_cdc_write_flush();
|
||||
|
||||
flush_tick = xTaskGetTickCount()-flush_tick;
|
||||
if (flush_tick >= ticks) return;
|
||||
|
||||
ticks -= flush_tick;
|
||||
#endif
|
||||
|
||||
vTaskDelay(ticks);
|
||||
}
|
||||
|
||||
void dwt_enable(void)
|
||||
|
||||
@@ -227,24 +227,3 @@ void loop()
|
||||
// Only send update once per second
|
||||
delay(1000);
|
||||
}
|
||||
|
||||
/**
|
||||
* RTOS Idle callback is automatically invoked by FreeRTOS
|
||||
* when there are no active threads. E.g when loop() calls delay() and
|
||||
* there is no bluetooth or hw event. This is the ideal place to handle
|
||||
* background data.
|
||||
*
|
||||
* NOTE: FreeRTOS is configured as tickless idle mode. After this callback
|
||||
* is executed, if there is time, freeRTOS kernel will go into low power mode.
|
||||
* Therefore waitForEvent() should not be called in this callback.
|
||||
* http://www.freertos.org/low-power-tickless-rtos.html
|
||||
*
|
||||
* WARNING: This function MUST NOT call any blocking FreeRTOS API
|
||||
* such as delay(), xSemaphoreTake() etc ... for more information
|
||||
* http://www.freertos.org/a00016.html
|
||||
*/
|
||||
void rtos_idle_callback(void)
|
||||
{
|
||||
// Don't call any other FreeRTOS blocking API()
|
||||
// Perform background task(s) here
|
||||
}
|
||||
Reference in new issue
Block a user