.hgignore
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Sun, 06 Jan 2019 03:11:39 +0300
changeset 2501 eba2bbb2dd9a
parent 2352 fec90dc70e16
child 3193 8006bb60a4dd
permissions -rw-r--r--
Make online debug optional

It could be useful for very small targets like Atmega (Arduino) and
for target bring-up there developer want to have running PLC program,
but has not implemented runtime communication yet.


TARGET_DEBUG_AND_RETAIN_DISABLE - completely disable debug and retain
functionality. Previously named TARGET_DEBUG_DISABLE.

TARGET_ONLINE_DEBUG_DISABLE - can be used to enable retain
functionality (no define TARGET_DEBUG_AND_RETAIN_DISABLE is used), but disable
online debug with corresponding RAM/FLASH overhead.

TARGET_LOGGING_DISABLE - disables logging functionality from runtime and PLC program

TARGET_EXT_SYNC_DISABLE - disables PLC program synchronization with
external events. For example, it could be used to synchronize several
PLCs that control motors for different axes.

By default all these options are off.

To test generate program for Generic target, put following files in
project files directory and run build.sh after generating PLC program.
This is very easy to integrate into makefile (Generic target).

[------------- build.sh --------------------------]
files=$(find $PWD/../build -iname '*.c' | grep -v POUS.c)
arm-none-eabi-gcc \
-DTARGET_DEBUG_AND_RETAIN_DISABLE \
-DTARGET_ONLINE_DEBUG_DISABLE \
-DTARGET_LOGGING_DISABLE \
-DTARGET_EXT_SYNC_DISABLE \
-flto -ffunction-sections -fdata-sections -I../../../../matiec/lib/C \
$files \
main.c \
-Wl,--Map=./program.map,--cref \
-nodefaultlibs --specs=nano.specs -Wl,--static -Wl,--gc-section -Wl,--start-group -lc -lm -lnosys -lgcc -Wl,--end-group
[------------------------------------------------]

[------------- main.c --------------------------]
#ifndef TARGET_DEBUG_AND_RETAIN_DISABLE
void Retain(void){}
void InValidateRetainBuffer(void){}
void ValidateRetainBuffer(void){}
#endif

extern void __run(void);
int main(void)
{
for(;;) {
__run();
// sleep common_ticktime__ ns
// add common_ticktime__ ns to __CURRENT_TIME
}
return 0;
}
[------------------------------------------------]
359
8049afde06ab prevent eclipse to push .project with .hgignore
'Gr?gory Tr?lat <gregory.trelat@lolitech.fr>'
parents:
diff changeset
     1
.project
441
379c66468cf6 added files to ignore in hgignore
Edouard TISSERANT <edouard.tisserant@gmail.com>
parents: 359
diff changeset
     2
1651
f077f8fb9ba7 1. Deleted .directory file, and added it to .hgignore.
PaulBeltyukov
parents: 1560
diff changeset
     3
.directory
2352
fec90dc70e16 Ignore cache files and generated test reports
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2165
diff changeset
     4
.pytest_cache
fec90dc70e16 Ignore cache files and generated test reports
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2165
diff changeset
     5
.cache
fec90dc70e16 Ignore cache files and generated test reports
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2165
diff changeset
     6
.coverage_full
2022
c2295d311402 First working implementation of Beremiz plugin for etherlab
laurent
parents:
diff changeset
     7
c2295d311402 First working implementation of Beremiz plugin for etherlab
laurent
parents:
diff changeset
     8
syntax: regexp
944
52a17be9c4d1 Introduce Beremiz Native POU library. Now LOGGER POU is part of Beremiz' native POU library
Edouard Tisserant
parents: 734
diff changeset
     9
^tests/.*/build$
1526
0fa5de94c131 Added .idea dir to ignore.
alexander.shaykhrazeev@gmail.com <alexander.shaykhrazeev@gmail.com>
parents: 955
diff changeset
    10
^.idea/.*
2022
c2295d311402 First working implementation of Beremiz plugin for etherlab
laurent
parents:
diff changeset
    11
syntax: regexp
441
379c66468cf6 added files to ignore in hgignore
Edouard TISSERANT <edouard.tisserant@gmail.com>
parents: 359
diff changeset
    12
^.*\.pyc$
2022
c2295d311402 First working implementation of Beremiz plugin for etherlab
laurent
parents:
diff changeset
    13
syntax: regexp
955
7ef2f485c28f More ignored files in .hgignore
Edouard Tisserant
parents: 944
diff changeset
    14
^.*~$
7ef2f485c28f More ignored files in .hgignore
Edouard Tisserant
parents: 944
diff changeset
    15
syntax: regexp
7ef2f485c28f More ignored files in .hgignore
Edouard Tisserant
parents: 944
diff changeset
    16
^.*\.swp$
2082
caae3ad2d03b Adding support for selecting a PDO in a list of mutually exclusive configured PDOs in Ethercat Network Configurator
Laurent Bessard
parents: 2022
diff changeset
    17
1559
91129212e9a6 ignore generated bugreports and output of i18n script
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1526
diff changeset
    18
bug_report.*\.txt
1560
4ce8492159ab add version with commit hash to 'About' dialogs for Beremiz IDE and PLCOpenEditor
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1559
diff changeset
    19
i18n/.*.new$
4ce8492159ab add version with commit hash to 'About' dialogs for Beremiz IDE and PLCOpenEditor
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1559
diff changeset
    20
revision
1725
f8e4650619f7 ignore built documentation
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1651
diff changeset
    21
f8e4650619f7 ignore built documentation
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1651
diff changeset
    22
doc/_build
f8e4650619f7 ignore built documentation
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1651
diff changeset
    23
doc/locale