adjust clock
This commit is contained in:
-2
@@ -363,12 +363,10 @@ static void DPVCurve(){
|
||||
|
||||
// output a certain volt
|
||||
if( counter <= (PulsePeriod - PulseWidth) ) {
|
||||
LED_color(DARKLED, 0x3A, 0x17, 0xff); //blue
|
||||
outputV = Volt1;
|
||||
DAC_outputV(Volt1);
|
||||
}
|
||||
else {
|
||||
LED_color(DARKLED, 0xF0, 0xE7, 0x26); //yellow
|
||||
outputV = Volt2;
|
||||
DAC_outputV(Volt2);
|
||||
}
|
||||
|
||||
+2
-2
@@ -376,7 +376,7 @@ static void SimpleBLEPeripheral_clockHandler(UArg arg);
|
||||
//#define DEFAULT_DESIRED_MIN_CONN_INTERVAL 80
|
||||
|
||||
// How often to perform periodic event (in msec)
|
||||
#define SBP_PERIODIC_EVT_PERIOD 8 // 802 ~= 1 sec
|
||||
#define SBP_PERIODIC_EVT_PERIOD 10 // 802 ~= 1 sec
|
||||
|
||||
static void SimpleBLEPeripheral_init(void) {
|
||||
// ******************************************************************
|
||||
@@ -555,7 +555,7 @@ static void SimpleBLEPeripheral_taskFxn(UArg a0, UArg a1) {
|
||||
uint8_t counter6994 = 0;
|
||||
bool EliteOn = 0;
|
||||
|
||||
Util_constructClock(&periodicClock, SimpleBLEPeripheral_clockHandler, SBP_PERIODIC_EVT_PERIOD, 0, false, SBP_PERIODIC_EVT); //create a clock clockduration = 42(~=0.05 sec)
|
||||
Util_constructClock(&periodicClock, SimpleBLEPeripheral_clockHandler, SBP_PERIODIC_EVT_PERIOD, 0, false, SBP_PERIODIC_EVT); //create a clock clockduration = 42(~=0.01 sec)
|
||||
Util_startClock(&periodicClock); // start the clock, timeup => call SimpleBLEPeripheral_clockHandler => wake up the device
|
||||
|
||||
// Application main loops
|
||||
|
||||
Reference in New Issue
Block a user