Skip to content
Snippets Groups Projects
Commit ed0f4313 authored by pscalise2's avatar pscalise2
Browse files

first commit

parent 8107bcb8
No related branches found
No related tags found
No related merge requests found
...@@ -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/py32f002axx.svd", "svdFile": "CMSIS/Device/PY32F0xx/py32f030axx.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/py32f002axx.svd", "svdFile": "CMSIS/Device/PY32F0xx/py32f030axx.svd",
"preLaunchTask": "Build", "preLaunchTask": "Build",
"showDevDebugOutput":"none", "showDevDebugOutput":"none",
} }
......
...@@ -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_py32f002a.s CMSIS/Device/PY32F0xx/Source/gcc/startup_py32f030.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/py32f002a.ld LDSCRIPT = CMSIS/Device/PY32F0xx/Source/gcc/py32f030xx8.ld
###################################### ######################################
......
...@@ -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"
......
#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()
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment