Skip to content

Commit

Permalink
6.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
QL committed Mar 23, 2020
1 parent 4d9250d commit f364fac
Show file tree
Hide file tree
Showing 9 changed files with 195 additions and 213 deletions.
334 changes: 167 additions & 167 deletions doxygen/metrics.dox

Large diffs are not rendered by default.

10 changes: 1 addition & 9 deletions ports/posix-qv/qf_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @cond
******************************************************************************
* Last updated for version 6.8.0
* Last updated on 2020-03-17
* Last updated on 2020-03-23
*
* Q u a n t u m L e a P s
* ------------------------
Expand Down Expand Up @@ -95,14 +95,6 @@ void QF_init(void) {
/* init the global condition variable with the default initializer */
pthread_cond_init(&QV_condVar_, NULL);

/* clear the internal QF variables, so that the framework can (re)start
* correctly even if the startup code is not called to clear the
* uninitialized data (as is required by the C Standard).
*/
QF_maxPool_ = 0U;
QF_bzero(&QF_timeEvtHead_[0], (uint_fast16_t)sizeof(QF_timeEvtHead_));
QF_bzero(&QF_active_[0], (uint_fast16_t)sizeof(QF_active_));

l_tick.tv_sec = 0;
l_tick.tv_nsec = NANOSLEEP_NSEC_PER_SEC/100L; /* default clock tick */
l_tickPrio = sched_get_priority_min(SCHED_FIFO); /* default tick prio */
Expand Down
10 changes: 1 addition & 9 deletions ports/posix/qf_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @cond
******************************************************************************
* Last updated for version 6.8.0
* Last updated on 2020-01-23
* Last updated on 2020-03-23
*
* Q u a n t u m L e a P s
* ------------------------
Expand Down Expand Up @@ -98,14 +98,6 @@ void QF_init(void) {
*/
pthread_mutex_lock(&l_startupMutex);

/* clear the internal QF variables, so that the framework can (re)start
* correctly even if the startup code is not called to clear the
* uninitialized data (as is required by the C Standard).
*/
QF_maxPool_ = 0U;
QF_bzero(&QF_timeEvtHead_[0], sizeof(QF_timeEvtHead_));
QF_bzero(&QF_active_[0], sizeof(QF_active_));

l_tick.tv_sec = 0;
l_tick.tv_nsec = NANOSLEEP_NSEC_PER_SEC/100L; /* default clock tick */
l_tickPrio = sched_get_priority_min(SCHED_FIFO); /* default tick prio */
Expand Down
13 changes: 1 addition & 12 deletions ports/win32-qv/qf_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @cond
******************************************************************************
* Last updated for version 6.8.0
* Last updated on 2020-01-23
* Last updated on 2020-03-23
*
* Q u a n t u m L e a P s
* ------------------------
Expand Down Expand Up @@ -67,19 +67,8 @@ static DWORD WINAPI ticker_thread(LPVOID arg);

/* QF functions ============================================================*/
void QF_init(void) {
extern uint_fast8_t QF_maxPool_;
extern QTimeEvt QF_timeEvtHead_[QF_MAX_TICK_RATE];

InitializeCriticalSection(&l_win32CritSect);
QV_win32Event_ = CreateEvent(NULL, FALSE, FALSE, NULL);

/* clear the internal QF variables, so that the framework can (re)start
* correctly even if the startup code is not called to clear the
* uninitialized data (as is required by the C Standard).
*/
QF_maxPool_ = 0U;
QF_bzero(&QF_timeEvtHead_[0], sizeof(QF_timeEvtHead_));
QF_bzero(&QF_active_[0], sizeof(QF_active_));
}
/****************************************************************************/
void QF_enterCriticalSection_(void) {
Expand Down
13 changes: 1 addition & 12 deletions ports/win32/qf_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @cond
******************************************************************************
* Last updated for version 6.8.0
* Last updated on 2020-01-23
* Last updated on 2020-03-23
*
* Q u a n t u m L e a P s
* ------------------------
Expand Down Expand Up @@ -64,24 +64,13 @@ static DWORD WINAPI ao_thread(LPVOID arg);

/* QF functions ============================================================*/
void QF_init(void) {
extern uint_fast8_t QF_maxPool_;
extern QTimeEvt QF_timeEvtHead_[QF_MAX_TICK_RATE];

InitializeCriticalSection(&l_win32CritSect);

/* initialize and enter the startup critical section object to block
* any active objects started before calling QF_run()
*/
InitializeCriticalSection(&l_startupCritSect);
EnterCriticalSection(&l_startupCritSect);

/* clear the internal QF variables, so that the framework can (re)start
* correctly even if the startup code is not called to clear the
* uninitialized data (as is required by the C Standard).
*/
QF_maxPool_ = 0U;
QF_bzero(&QF_timeEvtHead_[0], sizeof(QF_timeEvtHead_));
QF_bzero(&QF_active_[0], sizeof(QF_active_));
}
/****************************************************************************/
void QF_enterCriticalSection_(void) {
Expand Down
8 changes: 7 additions & 1 deletion src/qk/qk.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @cond
******************************************************************************
* Last updated for version 6.8.0
* Last updated on 2020-01-23
* Last updated on 2020-03-23
*
* Q u a n t u m L e a P s
* ------------------------
Expand Down Expand Up @@ -96,6 +96,12 @@ void QF_init(void) {
* system or for handling fatal errors that require shutting down
* (and possibly re-setting) the system.
*
*
* @attention
* After calling QF_stop() the application must terminate and cannot
* continue. In particular, QF_stop() is **not** intended to be followed
* by a call to QF_init() to "resurrect" the application.
*
* @sa QF_onCleanup()
*/
void QF_stop(void) {
Expand Down
6 changes: 5 additions & 1 deletion src/qs/qutest.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @cond
******************************************************************************
* Last updated for version 6.8.0
* Last updated on 2020-03-03
* Last updated on 2020-03-23
*
* Q u a n t u m L e a P s
* ------------------------
Expand Down Expand Up @@ -54,6 +54,10 @@ uint8_t volatile QF_intNest;

/* QF functions ============================================================*/
void QF_init(void) {
/* Clear the internal QF variables, so that the framework can start
* correctly even if the startup code fails to clear the uninitialized
* data (as is required by the C Standard).
*/
QF_maxPool_ = 0U;
QF_subscrList_ = (QSubscrList *)0;
QF_maxPubSignal_ = 0;
Expand Down
7 changes: 6 additions & 1 deletion src/qv/qv.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @cond
******************************************************************************
* Last updated for version 6.8.0
* Last updated on 2020-01-23
* Last updated on 2020-03-23
*
* Q u a n t u m L e a P s
* ------------------------
Expand Down Expand Up @@ -94,6 +94,11 @@ void QF_init(void) {
* system or for handling fatal errors that require shutting down
* (and possibly re-setting) the system.
*
* @attention
* After calling QF_stop() the application must terminate and cannot
* continue. In particular, QF_stop() is **not** intended to be followed
* by a call to QF_init() to "resurrect" the application.
*
* @sa QF_onCleanup()
*/
void QF_stop(void) {
Expand Down
7 changes: 6 additions & 1 deletion src/qxk/qxk.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @cond
******************************************************************************
* Last updated for version 6.8.0
* Last updated on 2020-01-23
* Last updated on 2020-03-23
*
* Q u a n t u m L e a P s
* ------------------------
Expand Down Expand Up @@ -105,6 +105,11 @@ void QF_init(void) {
* system or for handling fatal errors that require shutting down
* (and possibly re-setting) the system.
*
* @attention
* After calling QF_stop() the application must terminate and cannot
* continue. In particular, QF_stop() is **not** intended to be followed
* by a call to QF_init() to "resurrect" the application.
*
* @sa QF_onCleanup()
*/
void QF_stop(void) {
Expand Down

0 comments on commit f364fac

Please sign in to comment.