weAut_01 / weAutSys    R 2.2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Defines | Functions | Variables
include/we-aut_sys/syst_threads.h File Reference

Overview

weAutSys' system threads

This file contains the definitions for weAutSys' system threads. Please find detailed description of the variables, functions etc. in the module system threads.

This is system software and must not be modified for user or application programs.

This file is part of weAutSys   <weinert-automation.de>

  Copyright © 2014 Albrecht Weinert, Bochum

Author:
Albrecht Weinert   <a-weinert.de>
Revision:
2
Date:
2017-01-25 17:49:03 +0100 (Mi, 25 Jan 2017)

Defines

#define ABSsecADJ   0x80
 absolute date time seconds were adjusted
#define ABSsecSET   0x40
 absolute date time seconds were set
#define exitNotFlaggedThread(thread)
 Exit a not flagged user / application thread.
#define resetAppThread(thread)
 Reset respectively initialise an user / application thread.
#define runOutSysInfoThread(parent, pt, toStream)
 Start (spawn) the outSysInfoThreadF thread as child.
#define scheduleAppThread(thread)
 Unconditionally schedule an user / application thread.
#define scheduleFlgdAppThread(thread)
 Schedule a flagged user / application thread.
#define scheduleRegdAppThread(thread)
 Schedule a registered user / application thread.
#define scheduleYldAppThread(thread)
 Schedule a flagged or yielding user / application thread.
#define SINCsINCR   0x01
 run since seconds were incremented

Functions

ptfnct_t app100msThreadF (struct mThr_data_t *uthr_data)
 The user / application specific 100 ms thread.
ptfnct_t app10msThreadF (struct mThr_data_t *uthr_data)
 The user / application specific 10 ms thread.
ptfnct_t app1msThreadF (struct mThr_data_t *uthr_data)
 The user / application specific 1 ms thread.
ptfnct_t app1sThreadF (struct mThr_data_t *uthr_data)
 The user / application specific one second thread.
ptfnct_t appBgTskThreadF (void)
 The user / application specific background task thread (the function)
ptfnct_t appInitThreadF (struct pt *pt)
 The user / application specific initialisation thread.
ptfnct_t appSerInpThreadF (struct thr_data_t *serInpThread)
 The user / application serial input processing thread.
void initOutFlashTextThread (outFlashTextThr_data_t *outFlashTextThread, char const *const *theFlashStrings2out, uint8_t noOfFlashStrings2out)
 Initialise the output a flash string array to standard output thread.
void initSetAppThread (struct mThr_data_t *thread, p2ptFun threadF)
 Register and (force) init an user / application thread.
void initThreads (void)
 Initialise the threads.
ptfnct_t outFlashTextThreadF (outFlashTextThr_data_t *outFlashTextThread, FILE *toStream)
 Output a flash string array to standard output thread.
ptfnct_t outSysInfoThreadF (pt_t *pt, FILE *toStream)
 Output some system (version) info, the thread function.
p2ptFun registerAppBgTskThread (p2ptFun threadF)
 Register a user / application background task thread.
p2ptFunC registerAppSerInpThread (p2ptFunC threadF)
 Register a user / application serial input processing thread.
p2ptFun registerAppThread (struct mThr_data_t *thread, p2ptFun threadF)
 Register an user / application thread.
ptfnct_t sys100msThread (void)
 The 100 milliseconds system thread, the function.
void sys1msThread (void)
 The milliseconds system function (or thread)
ptfnct_t sys1sThread (void)
 The 1 second system thread, the function.

Variables

struct mThr_data_t app100msThread
 The user / application 100ms thread.
struct mThr_data_t app10msThread
 The user / application 10ms thread.
struct mThr_data_t app1msThread
 The user / application 1ms thread.
struct mThr_data_t app1sThread
 The user / application 100ms thread.
struct mThr_data_t appBgTskThread
 The user / application specific background task thread.
struct thr_data_t appSerInpThread
 The user / application serial input handling thread.
struct pt ptSys100msThread
 The 100 milliseconds system thread, the (raw) Protothreads datastructure.
struct pt ptSys1sThread
 The 1 second system thread, the (raw) Protothreads datastructure.
uint8_t sys100msPeriodFlag
 Flag for system 100ms thread.
uint8_t sys1sPeriodFlag
 Flag for system 1s thread.