weAutSys'/weAut_01' low level system calls and services
This file contains the definitions of weAutSys'/weAut_01' low level system calls and services that are normally not used by application / user software. This is system software and must not be modified for user or application programs.
This file is part of weAutSys <weinert-automation.de>
Copyright © 2011 Albrecht Weinert, Bochum
Defines | |
#define | abortBoot |
Abort command: go to bootloader (by human command) | |
#define | abortHMI |
Abort command: abort by human command entry. | |
#define | NO_SPMIN_SAMPLE 0 |
Do not sample the stack pointer and update its minimal value. | |
#define | PLCinRUN |
Status check: PLC is in Run. | |
#define | PLCinSTOP |
Status check: PLC is in Stop. | |
#define | PLCrun |
Abort command: run (i.e. no abort command at all) | |
#define | PLCstop |
Abort command: stop. | |
#define | PRESC_TRIM_FAC |
Prescaled time factor to millisecond. | |
#define | SAMPLE_MIN_SP(nonc) |
Sample the stack pointer and update its minimal value. | |
#define | VCO_DEFAULT 7 |
Trimming of timing oscillator. | |
#define | WDtiOut |
Abort cause: (unexpected) watchdog timeout. | |
Functions | |
uint8_t | addr3Here (void) |
Get the upper (bit 16 ...) part of the current address. | |
uint32_t | addrHere (void) |
Get the current address. | |
uint8_t | cnt12u8_8 (void) __attribute__((pure)) |
Get the 12.8 (16) µs tick value (8 bit) | |
uint8_t | getVCOsetting (void) __attribute__((pure)) |
Trimming of timing oscillator. | |
void | goto_P (void *labelAsValue) |
Go to a label (as value) and stay within the 64Kword page. | |
void | initPorts (void) |
low level reset type initialisation of ports | |
void | initProcIO (void) |
low level reset type initialisation of process I/O | |
void | initStatusLeds (uint8_t LEDgnStart, uint8_t LEDrdStart) |
Initialisation of status / test LEDs (if any) | |
void | initSystemRes (void) |
Initialise system resources after reset or restart. | |
void | initSystTiming (void) |
low level clock / timer / tick initialisation | |
int | main (void) __attribute__((OS_main)) |
The system start. | |
void | setAbortCommand (uint8_t command) __attribute__((always_inline)) |
Set the abort cause respectively command. | |
void | setVCOnormal (void) __attribute__((always_inline)) |
Trimming of timing oscillator. | |
void | slowVCOdown (void) __attribute__((always_inline)) |
Trimming of timing oscillator. | |
void | speedVCOup (void) __attribute__((always_inline)) |
Trimming of timing oscillator. | |
Variables | |
uint8_t | abortCommand |
The abort command respectively cause. | |
uint8_t | cn12u8 |
The 12,8 µs counter summand. | |
uint16_t | minStckP |
Minimal stack pointer value sampled. | |
uint8_t | msIntTick |
The ms tick counter. | |
uint8_t | resetCauses |
The last reset cause(s) | |
char const * | resetCauseText |
The last main cause as text. |