Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fifo ready list branch #74

Open
wants to merge 59 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
9066b69
add visual code config files in .gitignore
Dec 5, 2017
8e7a0c5
gitignore modification
Dec 8, 2017
1044651
Bugfix - COUNTER wasn't defined for posix implementation in GOIL Tem…
Dec 8, 2017
bc1ed9c
add the types
Dec 11, 2017
d0fe3fd
static generation of the variables
Dec 11, 2017
d82e075
goil generation: use activation count and max_jobs_among_prio
Dec 12, 2017
abd4231
clean old code - so everything is broken
Dec 12, 2017
ef82e16
change tpl_proc* to tpl_proc_id
Dec 12, 2017
f05d931
add tpl_list type for the ready_list
Dec 12, 2017
4f72ac6
tpl_front_proc
Dec 12, 2017
846935b
tpl_remove_front_proc
Dec 12, 2017
22d9b53
tpl_remove_proc
Dec 12, 2017
9076f3c
tpl_get_internal_ressource
Dec 12, 2017
75b5925
time to debug
Dec 12, 2017
c351f8a
FIFO ready_list implemented.
Dec 12, 2017
e5fd8e9
removed printrl
Dec 12, 2017
8448763
changes in printf for debug
Dec 13, 2017
0fa4cf5
add highest_priority in ready_list
Dec 13, 2017
96a7e1c
some fixes
Dec 13, 2017
16744cd
bugfix in the modulo
Dec 13, 2017
94b1ee0
bugfix - correct behavoir for resscheduler
Dec 20, 2017
37e3fa6
intermediate commit
Jan 8, 2018
d76b4ea
root template done
Jan 8, 2018
78d5e92
template code written!
Jan 8, 2018
46efec8
template for multicore done!
Jan 8, 2018
43f22b0
bug fix multicore
Jan 8, 2018
2d5efdf
bug fixe in app_define.h template
Jan 8, 2018
9ff9127
fix resscheduler priority
Jan 8, 2018
9224f3d
bugfix - internal resource
Jan 8, 2018
d5adcc6
code moved
Jan 8, 2018
cd80624
some code clean
Jan 10, 2018
77aeb19
visual improvement
Jan 10, 2018
4c6b5c3
bug fixes
Jan 10, 2018
9d784e2
add brackets arrounf if statements
Jan 10, 2018
422d6a0
modify types
Jan 10, 2018
c3daff1
tpl_priority must be signed
Jan 10, 2018
e76a018
bugfix - miss a & in tpl_remove_proc
Jan 11, 2018
9632e5c
bugfix - priority of resources may be increased by one. - functionnal…
Jan 11, 2018
3e5fcd9
change in the gitignore
Jan 24, 2018
38f2834
suppress a warning
Jan 29, 2018
20b5017
MIX HEAP/FIFO tpl_remove_front proc done!
Jan 29, 2018
c04d8a2
HEAP/FIFO implementation done!
Jan 30, 2018
6f03b5c
HEAP/FIFO bugfix - now it compiles and also, functionnal tests are OK!
Jan 30, 2018
3610218
HEAP/FIFO work on tpl_remove_proc
Jan 30, 2018
6ab93cb
some optimizations
Jan 31, 2018
8e1f2a9
compilation bugfix
Jan 31, 2018
c517f85
bugfix
Jan 31, 2018
6561a9b
bugfix
Jan 31, 2018
304f1b7
some optimization
Feb 5, 2018
ea157a5
tpl_index is now uint32
Feb 5, 2018
dc76946
bugfix
Feb 5, 2018
b29ce7d
[MPC5643L] Support for the GNU_C Compiler from NXP
Feb 20, 2018
473d082
[MPC5643L] Add Blin_1c and Blink_2c for the GNU compiler
Feb 20, 2018
26bc7e6
bugfix
Feb 20, 2018
4df20cc
[multicore] Blink_2c with GNU compiler is working!
Feb 21, 2018
cc92420
[preprocessor] fix the CONSTP2CONST
Feb 21, 2018
046010b
[embTest] MPC5643L : now it compiles with gcc
Feb 22, 2018
edfb91d
[EmbTest] MPC5643L the tests pass!
Feb 26, 2018
cef2f0d
add readme for MPC5643L dev and debug support in Linux
Mar 7, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@
*.synctex.gz
*.toc
*.out
#Visual Code
.vscode
#Hello World
hello_world
hello_world_2
measures
tests/functional
72 changes: 72 additions & 0 deletions examples/ppc/multicore/blink_1c_GNU/blink.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
/**
* @file multicore/blink_1c/blink.c
*
* @section desc File description
* @section copyright Copyright
*
* Trampoline Test Suite
*
* Trampoline Test Suite is copyright (c) IRCCyN 2005-2007
* Trampoline Test Suite is protected by the French intellectual property law.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; version 2
* of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* @section infos File informations
*
* $Date$
* $Rev$
* $Author$
* $URL$
*/

#include "Os.h"
#include "tpl_os.h"

#define APP_Task_t1_app1_START_SEC_VAR_INIT_UNSPECIFIED
#include "tpl_memmap.h"
VAR(uint32, AUTOMATIC) led_state = 1;
#define APP_Task_t1_app1_STOP_SEC_VAR_INIT_UNSPECIFIED
#include "tpl_memmap.h"

DeclareTask(t1_app1);

#define APP_COMMON_START_SEC_CODE
#include "tpl_memmap.h"
FUNC(int, OS_APPL_CODE) main(void)
{
initLed();
setLed(0, led_state);

StartOS(OSDEFAULTAPPMODE);
return 0;
}
#define APP_COMMON_STOP_SEC_CODE
#include "tpl_memmap.h"

#define APP_Task_t1_app1_START_SEC_CODE
#include "tpl_memmap.h"

TASK(t1_app1)
{
led_state = !led_state;
setLed(0, led_state);
TerminateTask();
}

#define APP_Task_t1_app1_STOP_SEC_CODE
#include "tpl_memmap.h"

/* End of file blink.c */

112 changes: 112 additions & 0 deletions examples/ppc/multicore/blink_1c_GNU/blink.oil
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
OIL_VERSION = "4.0";

IMPLEMENTATION trampoline {

/* This fix the default STACKSIZE of tasks */
TASK {
UINT32 STACKSIZE = 800 ;
} ;

/* This fix the default STACKSIZE of ISRs */
ISR {
UINT32 STACKSIZE = 800 ;
} ;

};

CPU blink {

APPMODE OsAppMode {};

/* ==========================================================================
* OS
*/

OS os {
NUMBER_OF_CORES = 1;
SCALABILITYCLASS = AUTO;
MEMMAP = TRUE {
COMPILER = gcc;
LINKER = gnu_ld { SCRIPT = "script.ld"; };
ASSEMBLER = gnu_as;
MEMORY_PROTECTION = FALSE;
};
BUILD = TRUE {
TRAMPOLINE_BASE_PATH = "../../../..";
APP_SRC = "blink.c";
APP_NAME = "blink_exe.elf";
CFLAGS = "-O3";
LDFLAGS = "-Map=app.map";
COMPILER = "powerpc-eabivle-gcc";
ASSEMBLER = "powerpc-eabivle-as";
LINKER = "powerpc-eabivle-ld";
COPIER = "powerpc-eabivle-objcopy";
SYSTEM = PYTHON;
};
STACKMONITORING = FALSE;
STATUS = STANDARD;
USEVLE = TRUE;
USEGETSERVICEID = FALSE;
USEPARAMETERACCESS = FALSE;
USERESSCHEDULER = TRUE;
ERRORHOOK = FALSE;
POSTTASKHOOK = FALSE;
PRETASKHOOK = FALSE;
PROTECTIONHOOK = FALSE;
SHUTDOWNHOOK = FALSE;
STARTUPHOOK = FALSE;
SYSTEM_CALL = TRUE;
DEBUG = TRUE;
};

/* ==========================================================================
* APPLICATION
*/

APPLICATION application1 {
TASK = t1_app1;
COUNTER = SystemCounter;
ALARM = alarm_t1_app1;
CORE = 0;
};

/* ==========================================================================
* COUNTER
*/

COUNTER SystemCounter {
TICKSPERBASE = 1;
MAXALLOWEDVALUE = 65535;
MINCYCLE = 1;
SOURCE = pit_ch0; /* Comment this to use the decrementer instead */
};

/* ==========================================================================
* ALARM
*/

ALARM alarm_t1_app1 {
COUNTER = SystemCounter;
ACTION = ACTIVATETASK { TASK = t1_app1;};
AUTOSTART = TRUE {
APPMODE = OsAppMode;
ALARMTIME = 200;
CYCLETIME = 100;
};
};

/* ==========================================================================
* TASK
*/

TASK t1_app1 {
ACTIVATION = 1;
PRIORITY = 5;
SCHEDULE = FULL;
ACCESSING_APPLICATION = application1;
AUTOSTART = FALSE;
USEFLOAT = FALSE;
};

};

53 changes: 53 additions & 0 deletions examples/ppc/multicore/blink_1c_GNU/config.t32
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
;
;please refer the installation guide for more information
;about your configuration
;
;
;uncomment the following 3 lines if you don't use already environment variables
;changes to the actual directory names are necessary
;OS=
;SYS=/opt/t32
;TMP=/usr/tmp

;uncomment the following 4 lines if you use PowerTrace, PowerNexus or PowerDebugEthernet
;with onhost driver executable (t32m*) via ethernet interface
;the nodename t32 is only an example, please replace it with the actual node name
;PBI=
;NET
;NODE=t32
;PACKLEN=1024

;uncomment the following 2 lines if you use PowerTrace, PowerNexus, PowerDebugEthernet or
;PowerDebugInterface USB with onhost driver executable (t32m*) via USB interface
;please refer the installation manual (file icd_quick_installation.pdf) about more details
;concerning USB driver installation
PBI=
USB

;uncomment the following 3 lines if you use an ICE or PodbusEthernetController
;with standard hostdriver executable (t32cde) via ethernet interface
;the nodename t32 is only an example, please replace it with the actual node name
;LINK=NET
;NODE=t32
;PACKLEN=1024

;uncomment the following 1 lines if you use SCSI interface (ICE)
;LINK=SCSI

;uncomment the following 3 lines if you want to use TRACE32 fonts
;SCREEN=
;FONT=DEC
;FONT=SMALL

;uncomment the following 2 lines if you want to use TRACE32 bitmap fonts
;SCREEN=
;FONTMODE=3

;uncomment the following 2 lines if you use OPENWINDOWS
;SCREEN=
;WMGR=OW16

;uncomment the following 2 lines if you use MOTIF
;SCREEN=
;WMGR=MOTIF16

Loading