Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
ef39f2d9
Commit
ef39f2d9
authored
Mar 13, 2014
by
Dave Hylands
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup systick for stmhal
parent
659c19c6
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
stmhal/Makefile
+0
-7
0 additions, 7 deletions
stmhal/Makefile
stmhal/stm32f4xx_it.c
+0
-2
0 additions, 2 deletions
stmhal/stm32f4xx_it.c
stmhal/system_stm32f4xx.c
+5
-0
5 additions, 0 deletions
stmhal/system_stm32f4xx.c
stmhal/systick.c
+3
-9
3 additions, 9 deletions
stmhal/systick.c
with
8 additions
and
18 deletions
stmhal/Makefile
+
0
−
7
View file @
ef39f2d9
...
@@ -19,7 +19,6 @@ CROSS_COMPILE = arm-none-eabi-
...
@@ -19,7 +19,6 @@ CROSS_COMPILE = arm-none-eabi-
INC
=
-I
.
INC
=
-I
.
INC
+=
-I
$(
PY_SRC
)
INC
+=
-I
$(
PY_SRC
)
INC
+=
-I
$(
CMSIS_DIR
)
INC
+=
-I
$(
CMSIS_DIR
)
/inc
INC
+=
-I
$(
CMSIS_DIR
)
/inc
INC
+=
-I
$(
CMSIS_DIR
)
/devinc
INC
+=
-I
$(
CMSIS_DIR
)
/devinc
INC
+=
-I
$(
HAL_DIR
)
/inc
INC
+=
-I
$(
HAL_DIR
)
/inc
...
@@ -32,7 +31,6 @@ INC += -I$(HAL_DIR)/inc
...
@@ -32,7 +31,6 @@ INC += -I$(HAL_DIR)/inc
CFLAGS_CORTEX_M4
=
-mthumb
-mtune
=
cortex-m4
-mabi
=
aapcs-linux
-mcpu
=
cortex-m4
-mfpu
=
fpv4-sp-d16
-mfloat-abi
=
hard
-fsingle-precision-constant
-Wdouble-promotion
CFLAGS_CORTEX_M4
=
-mthumb
-mtune
=
cortex-m4
-mabi
=
aapcs-linux
-mcpu
=
cortex-m4
-mfpu
=
fpv4-sp-d16
-mfloat-abi
=
hard
-fsingle-precision-constant
-Wdouble-promotion
CFLAGS
=
$(
INC
)
-Wall
-Werror
-ansi
-std
=
gnu99
$(
CFLAGS_CORTEX_M4
)
$(
COPT
)
CFLAGS
=
$(
INC
)
-Wall
-Werror
-ansi
-std
=
gnu99
$(
CFLAGS_CORTEX_M4
)
$(
COPT
)
BOARD
=
STM32F4DISC
BOARD
?=
PYBOARD4
BOARD
?=
PYBOARD4
ifeq
($(wildcard boards/$(BOARD)/.),)
ifeq
($(wildcard boards/$(BOARD)/.),)
$(
error
Invalid BOARD specified
)
$(
error
Invalid BOARD specified
)
...
@@ -226,11 +224,6 @@ GEN_PINS_HDR = $(BUILD)/pins.h
...
@@ -226,11 +224,6 @@ GEN_PINS_HDR = $(BUILD)/pins.h
# which source files might need it.
# which source files might need it.
$(OBJ)
:
| $(BUILD)/pins.h
$(OBJ)
:
| $(BUILD)/pins.h
# temp hack
$(PY_BUILD)
:
mkdir
-p
$@
$(OBJ)
:
| $(PY_BUILD) $(PY_BUILD)/qstrdefs.generated.h
# Use a pattern rule here so that make will only call make-pins.py once to make
# Use a pattern rule here so that make will only call make-pins.py once to make
# both pins_$(BOARD).c and pins.h
# both pins_$(BOARD).c and pins.h
$(BUILD)/%_$(BOARD).c $(BUILD)/%.h
:
boards/$(BOARD)/%.csv $(MAKE_PINS) $(AF_FILE) $(PREFIX_FILE)
$(BUILD)/%_$(BOARD).c $(BUILD)/%.h
:
boards/$(BOARD)/%.csv $(MAKE_PINS) $(AF_FILE) $(PREFIX_FILE)
...
...
This diff is collapsed.
Click to expand it.
stmhal/stm32f4xx_it.c
+
0
−
2
View file @
ef39f2d9
...
@@ -151,7 +151,6 @@ void PendSV_Handler(void)
...
@@ -151,7 +151,6 @@ void PendSV_Handler(void)
{
{
}
}
#if 0 // defined in systick.c
/**
/**
* @brief This function handles SysTick Handler.
* @brief This function handles SysTick Handler.
* @param None
* @param None
...
@@ -161,7 +160,6 @@ void SysTick_Handler(void)
...
@@ -161,7 +160,6 @@ void SysTick_Handler(void)
{
{
HAL_IncTick
();
HAL_IncTick
();
}
}
#endif
/******************************************************************************/
/******************************************************************************/
/* STM32F4xx Peripherals Interrupt Handlers */
/* STM32F4xx Peripherals Interrupt Handlers */
...
...
This diff is collapsed.
Click to expand it.
stmhal/system_stm32f4xx.c
+
5
−
0
View file @
ef39f2d9
...
@@ -316,6 +316,11 @@ void SystemClock_Config(void)
...
@@ -316,6 +316,11 @@ void SystemClock_Config(void)
{
{
__fatal_error
(
"HAL_RCC_ClockConfig"
);
__fatal_error
(
"HAL_RCC_ClockConfig"
);
}
}
// SysTick_Config (called from HL_RCC_ClockConfig) sets the SysTick_IRQn to
// be the lowest priority, but we want it to be the highest priority, so fix
// things here.
HAL_NVIC_SetPriority
(
SysTick_IRQn
,
0
,
0
);
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
stmhal/systick.c
+
3
−
9
View file @
ef39f2d9
...
@@ -5,16 +5,10 @@
...
@@ -5,16 +5,10 @@
void
sys_tick_init
(
void
)
{
void
sys_tick_init
(
void
)
{
// SysTick_Config is now called from HAL_RCC_ClockConfig, which is called
// SysTick_Config is now called from HAL_RCC_ClockConfig, which is called
// from SystemClock_Config
// from SystemClock_Config
HAL_NVIC_SetPriority
(
SysTick_IRQn
,
0
,
0
);
// make it highest priority
}
// called on SysTick interrupt
// SysTick_Config sets the SysTick_IRQn to be the lowest priority, but
void
SysTick_Handler
(
void
)
{
// we want it to be the highest priority, so fix things here.
HAL_IncTick
();
HAL_NVIC_SetPriority
(
SysTick_IRQn
,
0
,
0
);
HAL_SYSTICK_IRQHandler
();
// hack!
//void audio_drain(void);
//audio_drain();
}
}
void
sys_tick_delay_ms
(
uint32_t
delay_ms
)
{
void
sys_tick_delay_ms
(
uint32_t
delay_ms
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment