Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreyl committed Jan 20, 2019
1 parent ebc9d80 commit dc0b1fc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
10 changes: 10 additions & 0 deletions .settings/org.eclipse.cdt.managedbuilder.core.prefs
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
eclipse.preferences.version=1
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.541347572/CPATH/delimiter=;
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.541347572/CPATH/operation=remove
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.541347572/C_INCLUDE_PATH/delimiter=;
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.541347572/C_INCLUDE_PATH/operation=remove
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.541347572/append=true
environment/buildEnvironmentInclude/com.atollic.truestudio.configuration.release.541347572/appendContributed=true
environment/buildEnvironmentInclude/com.atollic.truestudio.exe.debug.1850314024/CPATH/delimiter=;
environment/buildEnvironmentInclude/com.atollic.truestudio.exe.debug.1850314024/CPATH/operation=remove
environment/buildEnvironmentInclude/com.atollic.truestudio.exe.debug.1850314024/C_INCLUDE_PATH/delimiter=;
environment/buildEnvironmentInclude/com.atollic.truestudio.exe.debug.1850314024/C_INCLUDE_PATH/operation=remove
environment/buildEnvironmentInclude/com.atollic.truestudio.exe.debug.1850314024/append=true
environment/buildEnvironmentInclude/com.atollic.truestudio.exe.debug.1850314024/appendContributed=true
environment/buildEnvironmentLibrary/com.atollic.truestudio.configuration.release.541347572/LIBRARY_PATH/delimiter=;
environment/buildEnvironmentLibrary/com.atollic.truestudio.configuration.release.541347572/LIBRARY_PATH/operation=remove
environment/buildEnvironmentLibrary/com.atollic.truestudio.configuration.release.541347572/append=true
environment/buildEnvironmentLibrary/com.atollic.truestudio.configuration.release.541347572/appendContributed=true
environment/buildEnvironmentLibrary/com.atollic.truestudio.exe.debug.1850314024/LIBRARY_PATH/delimiter=;
environment/buildEnvironmentLibrary/com.atollic.truestudio.exe.debug.1850314024/LIBRARY_PATH/operation=remove
environment/buildEnvironmentLibrary/com.atollic.truestudio.exe.debug.1850314024/append=true
Expand Down
20 changes: 10 additions & 10 deletions Radio/radio_lvl1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ cc1101_t CC(CC_Setup0);
rLevel1_t Radio;

#if 1 // ================================ Task =================================
static THD_WORKING_AREA(warLvl1Thread, 256);
__noreturn
static void rLvl1Thread(void *arg) {
chRegSetThreadName("rLvl1");
while(true) {
//static THD_WORKING_AREA(warLvl1Thread, 256);
//__noreturn
//static void rLvl1Thread(void *arg) {
// chRegSetThreadName("rLvl1");
// while(true) {
// Process queue
// RMsg_t msg = Radio.RMsgQ.Fetch(TIME_IMMEDIATE);
// if(msg.Cmd == R_MSG_SET_PWR) CC.SetTxPower(msg.Value);
// if(msg.Cmd == R_MSG_SET_CHNL) CC.SetChannel(msg.Value);
// Process task
// if(AppMode == appmTx)
Radio.TaskTransmitter();
// Radio.TaskTransmitter();
// else Radio.TaskReceiverManyByID();
// int8_t Rssi;
// rPkt_t PktRx;
Expand All @@ -58,8 +58,8 @@ static void rLvl1Thread(void *arg) {
// Led.StartOrRestart(lsqRx);
// }

} // while true
}
// } // while true
//}

void rLevel1_t::TaskTransmitter() {
Printf("t");
Expand Down Expand Up @@ -235,9 +235,9 @@ uint8_t rLevel1_t::Init() {
CC.SetTxPower(CC_Pwr0dBm);
CC.SetPktSize(RPKT_LEN);
CC.SetChannel(0);
// CC.EnterPwrDown();
CC.EnterPwrDown();
// Thread
chThdCreateStatic(warLvl1Thread, sizeof(warLvl1Thread), HIGHPRIO, (tfunc_t)rLvl1Thread, NULL);
// chThdCreateStatic(warLvl1Thread, sizeof(warLvl1Thread), HIGHPRIO, (tfunc_t)rLvl1Thread, NULL);
return retvOk;
}
else return retvFail;
Expand Down
1 change: 1 addition & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ int main(void) {
// TmrRxTableCheck.StartOrRestart();

// ==== Radio ====
Radio.Init();
// if(Radio.Init() == retvOk) Led.StartOrRestart(lsqStart);
// else Led.StartOrRestart(lsqFailure);
// chThdSleepMilliseconds(1008);
Expand Down

0 comments on commit dc0b1fc

Please sign in to comment.