Skip to content

Commit 972715b

Browse files
committed
8.0.0
1 parent 42ed09e commit 972715b

File tree

12 files changed

+127
-81
lines changed

12 files changed

+127
-81
lines changed

arm-cm/real-time_nucleo-c031c6/qk/bsp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ void QF_onStartup(void) {
293293
SysTick_Config((SystemCoreClock / BSP_TICKS_PER_SEC) + 1U);
294294

295295
// set priorities of ISRs used in the system
296-
// NOTE: all interrupts are "kernel aware" in Cortex-M0+
296+
// NOTE: all interrupts are "kernel aware" in Cortex-M0+
297297
NVIC_SetPriority(SysTick_IRQn, 0U);
298298
// ...
299299
}

arm-cm/real-time_nucleo-c031c6/qv/bsp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ void QF_onStartup(void) {
291291
SysTick_Config((SystemCoreClock / BSP_TICKS_PER_SEC) + 1U);
292292

293293
// set priorities of ISRs used in the system
294-
// NOTE: all interrupts are "kernel aware" in Cortex-M0+
294+
// NOTE: all interrupts are "kernel aware" in Cortex-M0+
295295
NVIC_SetPriority(SysTick_IRQn, 0U);
296296
// ...
297297
}

arm-cm/real-time_nucleo-l053r8/qk/bsp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ void QF_onStartup(void) {
289289
SysTick_Config((SystemCoreClock / BSP_TICKS_PER_SEC) + 1U);
290290

291291
// set priorities of ISRs used in the system
292-
// NOTE: all interrupts are "kernel aware" in Cortex-M0+
292+
// NOTE: all interrupts are "kernel aware" in Cortex-M0+
293293
NVIC_SetPriority(SysTick_IRQn, 0U);
294294
// ...
295295
}

freertos/arm-cm/dpp_ek-tm4c123gxl/gnu/Makefile

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@
4444
#
4545
# NOTE:
4646
# To use this Makefile on Windows, you will need the GNU make utility, which
47-
# is included in the Qtools collection for Windows, see:
48-
# https://sourceforge.net/projects/qpc/files/QTools/
49-
#
47+
# is included in the QTools collection for Windows, see:
48+
# https://github.com/QuantumLeaps/qtools
5049

5150
#-----------------------------------------------------------------------------
5251
# project name
@@ -176,18 +175,19 @@ BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
176175
##############################################################################
177176
# Typically, you should not need to change anything below this line
178177

179-
# basic utilities (included in Qtools for Windows), see:
180-
# http://sourceforge.net/projects/qpc/files/Qtools
178+
# basic utilities (included in QTools for Windows), see:
179+
# https://www.state-machine.com/qtools
181180

182181
MKDIR := mkdir
183182
RM := rm
184183

185184
#-----------------------------------------------------------------------------
186-
# build options for various configurations for ARM Cortex-M4F
185+
# build options for various configurations for ARM Cortex-M
187186
#
188187

189188
# combine all the sources...
190-
C_SRCS += $(QP_SRCS) $(RTOS_SRCS)
189+
C_SRCS += $(QP_SRCS)
190+
C_SRCS += $(RTOS_SRCS)
191191
ASM_SRCS += $(QP_ASMS)
192192

193193
ifeq (rel, $(CONF)) # Release configuration ..................................
@@ -198,11 +198,11 @@ ASFLAGS = $(ARM_CPU) $(ARM_FPU) $(ASM_CPU) $(ASM_FPU)
198198

199199
CFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
200200
-ffunction-sections -fdata-sections \
201-
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG
201+
-O2 $(INCLUDES) $(DEFINES) -DNDEBUG
202202

203203
CPPFLAGS = -c $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb -Wall \
204204
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions \
205-
-O1 $(INCLUDES) $(DEFINES) -DNDEBUG
205+
-O2 $(INCLUDES) $(DEFINES) -DNDEBUG
206206

207207
else ifeq (spy, $(CONF)) # Spy configuration ................................
208208

@@ -241,7 +241,6 @@ LINKFLAGS = -T$(LD_SCRIPT) $(ARM_CPU) $(ARM_FPU) $(FLOAT_ABI) -mthumb \
241241
-specs=nosys.specs -specs=nano.specs \
242242
-Wl,-Map,$(BIN_DIR)/$(OUTPUT).map,--cref,--gc-sections $(LIB_DIRS)
243243

244-
245244
ASM_OBJS := $(patsubst %.s,%.o, $(notdir $(ASM_SRCS)))
246245
C_OBJS := $(patsubst %.c,%.o, $(notdir $(C_SRCS)))
247246
CPP_OBJS := $(patsubst %.cpp,%.o,$(notdir $(CPP_SRCS)))
@@ -263,8 +262,14 @@ endif
263262
# rules
264263
#
265264

266-
all: $(TARGET_BIN)
267-
#all: $(TARGET_ELF)
265+
.PHONY : run norun flash
266+
267+
ifeq ($(MAKECMDGOALS),norun)
268+
all : $(TARGET_BIN)
269+
norun : all
270+
else
271+
all : $(TARGET_BIN) run
272+
endif
268273

269274
$(TARGET_BIN): $(TARGET_ELF)
270275
$(BIN) -O binary $< $@
@@ -288,6 +293,8 @@ $(BIN_DIR)/%.o : %.c
288293
$(BIN_DIR)/%.o : %.cpp
289294
$(CPP) $(CPPFLAGS) $< -o $@
290295

296+
.PHONY : clean show
297+
291298
# include dependency files only if our goal depends on their existence
292299
ifneq ($(MAKECMDGOALS),clean)
293300
ifneq ($(MAKECMDGOALS),show)
@@ -296,7 +303,6 @@ ifneq ($(MAKECMDGOALS),clean)
296303
endif
297304

298305

299-
.PHONY : clean
300306
clean:
301307
-$(RM) $(BIN_DIR)/*.o \
302308
$(BIN_DIR)/*.d \

freertos/arm-cm/dpp_nucleo-f401re/armclang/dpp.uvoptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
<SetRegEntry>
136136
<Number>0</Number>
137137
<Key>DLGTARM</Key>
138-
<Name>(1010=1444,525,1894,1082,1)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)(1012=-1,-1,-1,-1,0)</Name>
138+
<Name>(1010=1186,187,1636,744,1)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)(1012=-1,-1,-1,-1,0)</Name>
139139
</SetRegEntry>
140140
<SetRegEntry>
141141
<Number>0</Number>

freertos/arm-cm/dpp_nucleo-f401re/bsp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ uint32_t BSP_random(void) { // a very cheap pseudo-random-number generator
348348
vTaskSuspendAll(); // lock FreeRTOS scheduler
349349
// "Super-Duper" Linear Congruential Generator (LCG)
350350
// LCG(2^32, 3*7*11*13*23, 0, seed)
351-
//
352351
uint32_t rnd = l_rndSeed * (3U*7U*11U*13U*23U);
353352
l_rndSeed = rnd; // set for the next time
354353
xTaskResumeAll(); // unlock the FreeRTOS scheduler

freertos/arm-cm/dpp_nucleo-f401re/gnu/Makefile

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
##############################################################################
2-
# Product: Makefile for QP/C on STM32 NUCLEO-F401RE, QK kernel, GNU-ARM
2+
# Product: Makefile for QP/C on STM32 NUCLEO-F401RE, FreeRTOS kernel, GNU-ARM
33
# Last Updated for Version: 8.0.0
44
# Date of the Last Update: 2024-11-08
55
#
@@ -50,7 +50,7 @@
5050
#-----------------------------------------------------------------------------
5151
# project name
5252
#
53-
PROJECT := dpp-qk
53+
PROJECT := dpp
5454

5555
#-----------------------------------------------------------------------------
5656
# project directories
@@ -61,25 +61,32 @@ ifeq ($(QPC),)
6161
QPC := ../../../../..
6262
endif
6363

64+
# location of the FREERTOS (if not provided in an environment var.)
65+
ifeq ($(FREERTOS),)
66+
FREERTOS := $(QPC)/3rd_party/FreeRTOS-Kernel
67+
endif
68+
6469
# QP port used in this project
65-
QP_PORT_DIR := $(QPC)/ports/arm-cm/qk/gnu
70+
QP_PORT_DIR := $(QPC)/ports/freertos
6671

6772
# list of all source directories used by this project
6873
VPATH = \
6974
.. \
70-
../.. \
7175
$(QPC)/src/qf \
72-
$(QPC)/src/qk \
7376
$(QPC)/src/qs \
7477
$(QP_PORT_DIR) \
78+
$(FREERTOS) \
79+
$(FREERTOS)/portable/GCC/ARM_CM4F \
7580
$(QPC)/3rd_party/nucleo-f401re \
7681
$(QPC)/3rd_party/nucleo-f401re/gnu
7782

7883
# list of all include directories needed by this project
7984
INCLUDES = \
80-
-I../.. \
85+
-I.. \
8186
-I$(QPC)/include \
8287
-I$(QP_PORT_DIR) \
88+
-I$(FREERTOS)/include \
89+
-I$(FREERTOS)/portable/GCC/ARM_CM4F \
8390
-I$(QPC)/3rd_party/CMSIS/Include \
8491
-I$(QPC)/3rd_party/nucleo-f401re
8592

@@ -109,7 +116,6 @@ QP_SRCS := \
109116
qep_hsm.c \
110117
qep_msm.c \
111118
qf_act.c \
112-
qf_actq.c \
113119
qf_defer.c \
114120
qf_dyn.c \
115121
qf_mem.c \
@@ -118,10 +124,13 @@ QP_SRCS := \
118124
qf_qeq.c \
119125
qf_qmact.c \
120126
qf_time.c \
121-
qk.c \
122-
qk_port.c
127+
qf_port.c
123128

124-
QP_ASMS :=
129+
RTOS_SRCS := \
130+
tasks.c \
131+
queue.c \
132+
list.c \
133+
port.c
125134

126135
QS_SRCS := \
127136
qs.c \
@@ -163,6 +172,7 @@ AS := $(GNU_ARM)/bin/arm-none-eabi-as
163172
LINK := $(GNU_ARM)/bin/arm-none-eabi-gcc
164173
BIN := $(GNU_ARM)/bin/arm-none-eabi-objcopy
165174

175+
166176
##############################################################################
167177
# Typically, you should not need to change anything below this line
168178

@@ -177,7 +187,8 @@ RM := rm
177187
#
178188

179189
# combine all the sources...
180-
C_SRCS += $(QP_SRCS)
190+
C_SRCS += $(QP_SRCS)
191+
C_SRCS += $(RTOS_SRCS)
181192
ASM_SRCS += $(QP_ASMS)
182193

183194
ifeq (rel, $(CONF)) # Release configuration ..................................

0 commit comments

Comments
 (0)