Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
unl-ece-keychain
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pscalise2
unl-ece-keychain
Commits
ed0f4313
Commit
ed0f4313
authored
4 months ago
by
pscalise2
Browse files
Options
Downloads
Patches
Plain Diff
first commit
parent
8107bcb8
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.vscode/launch.json
+4
-4
4 additions, 4 deletions
.vscode/launch.json
Makefile
+5
-5
5 additions, 5 deletions
Makefile
inc/py32f0xx_hal_conf.h
+1
-1
1 addition, 1 deletion
inc/py32f0xx_hal_conf.h
src/main.c
+2
-0
2 additions, 0 deletions
src/main.c
with
12 additions
and
10 deletions
.vscode/launch.json
+
4
−
4
View file @
ed0f4313
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
"cwd"
:
"${workspaceRoot}"
,
"cwd"
:
"${workspaceRoot}"
,
"executable"
:
"build/${workspaceFolderBasename}.elf"
,
"executable"
:
"build/${workspaceFolderBasename}.elf"
,
"servertype"
:
"pyocd"
,
"servertype"
:
"pyocd"
,
"targetId"
:
"
PY32F002Ax5
"
,
"targetId"
:
"
py32f030x8
"
,
"svdFile"
:
"CMSIS/Device/PY32F0xx/py32f00
2
axx.svd"
,
"svdFile"
:
"CMSIS/Device/PY32F0xx/py32f0
3
0axx.svd"
,
"preLaunchTask"
:
"Build"
,
"preLaunchTask"
:
"Build"
,
"showDevDebugOutput"
:
"none"
,
"showDevDebugOutput"
:
"none"
,
},
},
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
"cwd"
:
"${workspaceRoot}"
,
"cwd"
:
"${workspaceRoot}"
,
"executable"
:
"build/${workspaceFolderBasename}.elf"
,
"executable"
:
"build/${workspaceFolderBasename}.elf"
,
"servertype"
:
"jlink"
,
"servertype"
:
"jlink"
,
"device"
:
"
PY32F002Ax5
"
,
"device"
:
"
py32f030x8
"
,
"svdFile"
:
"CMSIS/Device/PY32F0xx/py32f00
2
axx.svd"
,
"svdFile"
:
"CMSIS/Device/PY32F0xx/py32f0
3
0axx.svd"
,
"preLaunchTask"
:
"Build"
,
"preLaunchTask"
:
"Build"
,
"showDevDebugOutput"
:
"none"
,
"showDevDebugOutput"
:
"none"
,
}
}
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
5
−
5
View file @
ed0f4313
...
@@ -4,11 +4,11 @@
...
@@ -4,11 +4,11 @@
######################################
######################################
TARGET
?=
py32-template
TARGET
?=
py32-template
CHIP
=
PY32F002Ax5
#
CHIP = PY32F002Ax5
# CHIP = PY32F030x4
# CHIP = PY32F030x4
# CHIP = PY32F030x6
# CHIP = PY32F030x6
# CHIP = PY32F030x7
# CHIP = PY32F030x7
#
CHIP = PY32F030x8
CHIP
=
PY32F030x8
# CHIP = PY32F003x4
# CHIP = PY32F003x4
# CHIP = PY32F003x6
# CHIP = PY32F003x6
# CHIP = PY32F003x8
# CHIP = PY32F003x8
...
@@ -25,7 +25,7 @@ C_SOURCES += CMSIS/Device/PY32F0xx/Source/system_py32f0xx.c
...
@@ -25,7 +25,7 @@ C_SOURCES += CMSIS/Device/PY32F0xx/Source/system_py32f0xx.c
C_SOURCES
+=
PY32F0xx_HAL_Driver/Src/py32f0xx_hal_adc_ex.c
C_SOURCES
+=
PY32F0xx_HAL_Driver/Src/py32f0xx_hal_adc_ex.c
C_SOURCES
+=
PY32F0xx_HAL_Driver/Src/py32f0xx_hal.c
C_SOURCES
+=
PY32F0xx_HAL_Driver/Src/py32f0xx_hal.c
C_SOURCES
+=
PY32F0xx_HAL_Driver/Src/py32f0xx_hal_adc.c
C_SOURCES
+=
PY32F0xx_HAL_Driver/Src/py32f0xx_hal_adc.c
C_SOURCES
+=
PY32F0xx_HAL_Driver/Src/py32f0xx_hal_adc_ex.c
#
C_SOURCES += PY32F0xx_HAL_Driver/Src/py32f0xx_hal_adc_ex.c
C_SOURCES
+=
PY32F0xx_HAL_Driver/Src/py32f0xx_hal_comp.c
C_SOURCES
+=
PY32F0xx_HAL_Driver/Src/py32f0xx_hal_comp.c
C_SOURCES
+=
PY32F0xx_HAL_Driver/Src/py32f0xx_hal_cortex.c
C_SOURCES
+=
PY32F0xx_HAL_Driver/Src/py32f0xx_hal_cortex.c
C_SOURCES
+=
PY32F0xx_HAL_Driver/Src/py32f0xx_hal_crc.c
C_SOURCES
+=
PY32F0xx_HAL_Driver/Src/py32f0xx_hal_crc.c
...
@@ -69,7 +69,7 @@ C_SOURCES += PY32F0xx_HAL_Driver/Src/py32f0xx_ll_utils.c
...
@@ -69,7 +69,7 @@ C_SOURCES += PY32F0xx_HAL_Driver/Src/py32f0xx_ll_utils.c
# ASM sources
# ASM sources
ASM_SOURCES
=
\
ASM_SOURCES
=
\
CMSIS/Device/PY32F0xx/Source/gcc/startup_py32f00
2a
.s
CMSIS/Device/PY32F0xx/Source/gcc/startup_py32f0
3
0.s
# C includes
# C includes
C_INCLUDES
=
\
C_INCLUDES
=
\
...
@@ -80,7 +80,7 @@ C_INCLUDES = \
...
@@ -80,7 +80,7 @@ C_INCLUDES = \
# link script
# link script
LDSCRIPT
=
CMSIS/Device/PY32F0xx/Source/gcc/py32f0
02a
.ld
LDSCRIPT
=
CMSIS/Device/PY32F0xx/Source/gcc/py32f0
30xx8
.ld
######################################
######################################
...
...
This diff is collapsed.
Click to expand it.
inc/py32f0xx_hal_conf.h
+
1
−
1
View file @
ed0f4313
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
#include
"py32f0xx_hal.h"
#include
"py32f0xx_hal.h"
#endif
/* HAL_MODULE_ENABLED */
#endif
/* HAL_MODULE_ENABLED */
//
#include "py32f0xx_hal_dma.h"
#include
"py32f0xx_hal_dma.h"
#ifdef HAL_RCC_MODULE_ENABLED
#ifdef HAL_RCC_MODULE_ENABLED
#include
"py32f0xx_hal_rcc.h"
#include
"py32f0xx_hal_rcc.h"
...
...
This diff is collapsed.
Click to expand it.
src/main.c
+
2
−
0
View file @
ed0f4313
#include
<stdio.h>
#include
<stdio.h>
#include
"py32f0xx.h"
#include
"py32f0xx.h"
#include
<py32f030x8.h>
#include
<py32f0xx_hal_gpio.h>
void
SysTick_Handler
()
void
SysTick_Handler
()
{
{
...
...
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