Skip to content

Commit 6b87d6c

Browse files
committed
initial commit
0 parents  commit 6b87d6c

21 files changed

+1601
-0
lines changed

.gitmodules

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "scripts"]
2+
path = scripts
3+
url = https://github.com/binarymaker/project-manager-tools.git
4+
branch = library

LICENSE

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Copyright (C) 2019 Binary Maker <https://github.com/binarymaker>
2+
3+
This program is free software: you can redistribute it and/or modify
4+
it under the terms of the GNU General Public License as published by
5+
the Free Software Foundation, either version 3 of the License, or
6+
(at your option) any later version.
7+
8+
This program is distributed in the hope that it will be useful,
9+
but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
GNU General Public License for more details.
12+
13+
You should have received a copy of the GNU General Public License
14+
along with this program. If not, see <http://www.gnu.org/licenses/>.

README.md

Whitespace-only changes.

project/blink_simple.X/Makefile

+113
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
#
2+
# There exist several targets which are by default empty and which can be
3+
# used for execution of your targets. These targets are usually executed
4+
# before and after some main targets. They are:
5+
#
6+
# .build-pre: called before 'build' target
7+
# .build-post: called after 'build' target
8+
# .clean-pre: called before 'clean' target
9+
# .clean-post: called after 'clean' target
10+
# .clobber-pre: called before 'clobber' target
11+
# .clobber-post: called after 'clobber' target
12+
# .all-pre: called before 'all' target
13+
# .all-post: called after 'all' target
14+
# .help-pre: called before 'help' target
15+
# .help-post: called after 'help' target
16+
#
17+
# Targets beginning with '.' are not intended to be called on their own.
18+
#
19+
# Main targets can be executed directly, and they are:
20+
#
21+
# build build a specific configuration
22+
# clean remove built files from a configuration
23+
# clobber remove all built files
24+
# all build all configurations
25+
# help print help mesage
26+
#
27+
# Targets .build-impl, .clean-impl, .clobber-impl, .all-impl, and
28+
# .help-impl are implemented in nbproject/makefile-impl.mk.
29+
#
30+
# Available make variables:
31+
#
32+
# CND_BASEDIR base directory for relative paths
33+
# CND_DISTDIR default top distribution directory (build artifacts)
34+
# CND_BUILDDIR default top build directory (object files, ...)
35+
# CONF name of current configuration
36+
# CND_ARTIFACT_DIR_${CONF} directory of build artifact (current configuration)
37+
# CND_ARTIFACT_NAME_${CONF} name of build artifact (current configuration)
38+
# CND_ARTIFACT_PATH_${CONF} path to build artifact (current configuration)
39+
# CND_PACKAGE_DIR_${CONF} directory of package (current configuration)
40+
# CND_PACKAGE_NAME_${CONF} name of package (current configuration)
41+
# CND_PACKAGE_PATH_${CONF} path to package (current configuration)
42+
#
43+
# NOCDDL
44+
45+
46+
# Environment
47+
MKDIR=mkdir
48+
CP=cp
49+
CCADMIN=CCadmin
50+
RANLIB=ranlib
51+
52+
53+
# build
54+
build: .build-post
55+
56+
.build-pre:
57+
# Add your pre 'build' code here...
58+
59+
.build-post: .build-impl
60+
# Add your post 'build' code here...
61+
62+
63+
# clean
64+
clean: .clean-post
65+
66+
.clean-pre:
67+
# Add your pre 'clean' code here...
68+
# WARNING: the IDE does not call this target since it takes a long time to
69+
# simply run make. Instead, the IDE removes the configuration directories
70+
# under build and dist directly without calling make.
71+
# This target is left here so people can do a clean when running a clean
72+
# outside the IDE.
73+
74+
.clean-post: .clean-impl
75+
# Add your post 'clean' code here...
76+
77+
78+
# clobber
79+
clobber: .clobber-post
80+
81+
.clobber-pre:
82+
# Add your pre 'clobber' code here...
83+
84+
.clobber-post: .clobber-impl
85+
# Add your post 'clobber' code here...
86+
87+
88+
# all
89+
all: .all-post
90+
91+
.all-pre:
92+
# Add your pre 'all' code here...
93+
94+
.all-post: .all-impl
95+
# Add your post 'all' code here...
96+
97+
98+
# help
99+
help: .help-post
100+
101+
.help-pre:
102+
# Add your pre 'help' code here...
103+
104+
.help-post: .help-impl
105+
# Add your post 'help' code here...
106+
107+
108+
109+
# include project implementation makefile
110+
include nbproject/Makefile-impl.mk
111+
112+
# include project make variables
113+
include nbproject/Makefile-variables.mk

project/blink_simple.X/main.c

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/**\cond
2+
******************************************************************************
3+
* ______ _ ___ ___ _
4+
* | ___ \(_) | \/ | | |
5+
* | |_/ / _ _ __ __ _ _ __ _ _ | . . | __ _ | | __ ___ _ __
6+
* | ___ \| || '_ \ / _` || '__|| | | | | |\/| | / _` || |/ // _ \| '__|
7+
* | |_/ /| || | | || (_| || | | |_| | | | | || (_| || <| __/| |
8+
* \____/ |_||_| |_| \__,_||_| \__, | \_| |_/ \__,_||_|\_\\___||_|
9+
* __/ |
10+
* |___/
11+
*
12+
* Copyright (C) 2019 Binary Maker - All Rights Reserved
13+
*
14+
* This program and the accompanying materials are made available
15+
* under the terms described in the LICENSE file which accompanies
16+
* this distribution.
17+
* Written by Binary Maker <https://github.com/binarymaker>
18+
******************************************************************************
19+
\endcond*/
20+
21+
/* Private typedef -----------------------------------------------------------*/
22+
/* Private define ------------------------------------------------------------*/
23+
/* Private macro -------------------------------------------------------------*/
24+
/* Private variables ---------------------------------------------------------*/
25+
/* Private function prototypes -----------------------------------------------*/
26+
/* Private functions ---------------------------------------------------------*/
27+

project/blink_simple.X/main.h

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/**\cond
2+
******************************************************************************
3+
* ______ _ ___ ___ _
4+
* | ___ \(_) | \/ | | |
5+
* | |_/ / _ _ __ __ _ _ __ _ _ | . . | __ _ | | __ ___ _ __
6+
* | ___ \| || '_ \ / _` || '__|| | | | | |\/| | / _` || |/ // _ \| '__|
7+
* | |_/ /| || | | || (_| || | | |_| | | | | || (_| || <| __/| |
8+
* \____/ |_||_| |_| \__,_||_| \__, | \_| |_/ \__,_||_|\_\\___||_|
9+
* __/ |
10+
* |___/
11+
*
12+
* Copyright (C) 2019 Binary Maker - All Rights Reserved
13+
*
14+
* This program and the accompanying materials are made available
15+
* under the terms described in the LICENSE file which accompanies
16+
* this distribution.
17+
* Written by Binary Maker <https://github.com/binarymaker>
18+
******************************************************************************
19+
\endcond*/
20+
21+
#ifndef MAIN_351c805e_f499_11e9_8642_705a0f25cb51
22+
#define MAIN_351c805e_f499_11e9_8642_705a0f25cb51
23+
24+
#ifdef __cplusplus
25+
extern "C" {
26+
#endif
27+
28+
/**
29+
* rief Source file version tag
30+
*
31+
* version info: [15:8] main [7:0] beta
32+
*/
33+
#define __MAIN_VERSION (0x0001u)
34+
35+
/* Includes ------------------------------------------------------------------*/
36+
/* Exported types ------------------------------------------------------------*/
37+
/* Exported constants --------------------------------------------------------*/
38+
/* Exported macro ------------------------------------------------------------*/
39+
/* Exported functions ------------------------------------------------------- */
40+
41+
42+
#ifdef __cplusplus
43+
}
44+
#endif
45+
46+
#endif /* MAIN_351c805e_f499_11e9_8642_705a0f25cb51 */
47+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
#
2+
# Generated Makefile - do not edit!
3+
#
4+
# Edit the Makefile in the project folder instead (../Makefile). Each target
5+
# has a -pre and a -post target defined where you can add customized code.
6+
#
7+
# This makefile implements configuration specific macros and targets.
8+
9+
10+
# Include project Makefile
11+
ifeq "${IGNORE_LOCAL}" "TRUE"
12+
# do not include local makefile. User is passing all local related variables already
13+
else
14+
include Makefile
15+
# Include makefile containing local settings
16+
ifeq "$(wildcard nbproject/Makefile-local-default.mk)" "nbproject/Makefile-local-default.mk"
17+
include nbproject/Makefile-local-default.mk
18+
endif
19+
endif
20+
21+
# Environment
22+
MKDIR=gnumkdir -p
23+
RM=rm -f
24+
MV=mv
25+
CP=cp
26+
27+
# Macros
28+
CND_CONF=default
29+
ifeq ($(TYPE_IMAGE), DEBUG_RUN)
30+
IMAGE_TYPE=debug
31+
OUTPUT_SUFFIX=elf
32+
DEBUGGABLE_SUFFIX=elf
33+
FINAL_IMAGE=dist/${CND_CONF}/${IMAGE_TYPE}/blink_simple.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
34+
else
35+
IMAGE_TYPE=production
36+
OUTPUT_SUFFIX=hex
37+
DEBUGGABLE_SUFFIX=elf
38+
FINAL_IMAGE=dist/${CND_CONF}/${IMAGE_TYPE}/blink_simple.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
39+
endif
40+
41+
ifeq ($(COMPARE_BUILD), true)
42+
COMPARISON_BUILD=
43+
else
44+
COMPARISON_BUILD=
45+
endif
46+
47+
ifdef SUB_IMAGE_ADDRESS
48+
49+
else
50+
SUB_IMAGE_ADDRESS_COMMAND=
51+
endif
52+
53+
# Object Directory
54+
OBJECTDIR=build/${CND_CONF}/${IMAGE_TYPE}
55+
56+
# Distribution Directory
57+
DISTDIR=dist/${CND_CONF}/${IMAGE_TYPE}
58+
59+
# Source Files Quoted if spaced
60+
SOURCEFILES_QUOTED_IF_SPACED=main.c
61+
62+
# Object Files Quoted if spaced
63+
OBJECTFILES_QUOTED_IF_SPACED=${OBJECTDIR}/main.o
64+
POSSIBLE_DEPFILES=${OBJECTDIR}/main.o.d
65+
66+
# Object Files
67+
OBJECTFILES=${OBJECTDIR}/main.o
68+
69+
# Source Files
70+
SOURCEFILES=main.c
71+
72+
73+
74+
CFLAGS=
75+
ASFLAGS=
76+
LDLIBSOPTIONS=
77+
78+
############# Tool locations ##########################################
79+
# If you copy a project from one host to another, the path where the #
80+
# compiler is installed may be different. #
81+
# If you open this project with MPLAB X in the new host, this #
82+
# makefile will be regenerated and the paths will be corrected. #
83+
#######################################################################
84+
# fixDeps replaces a bunch of sed/cat/printf statements that slow down the build
85+
FIXDEPS=fixDeps
86+
87+
.build-conf: ${BUILD_SUBPROJECTS}
88+
ifneq ($(INFORMATION_MESSAGE), )
89+
@echo $(INFORMATION_MESSAGE)
90+
endif
91+
${MAKE} -f nbproject/Makefile-default.mk dist/${CND_CONF}/${IMAGE_TYPE}/blink_simple.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
92+
93+
MP_PROCESSOR_OPTION=ATmega328P
94+
# ------------------------------------------------------------------------------------
95+
# Rules for buildStep: compile
96+
ifeq ($(TYPE_IMAGE), DEBUG_RUN)
97+
${OBJECTDIR}/main.o: main.c nbproject/Makefile-${CND_CONF}.mk
98+
@${MKDIR} "${OBJECTDIR}"
99+
@${RM} ${OBJECTDIR}/main.o.d
100+
@${RM} ${OBJECTDIR}/main.o
101+
${MP_CC} $(MP_EXTRA_CC_PRE) -mcpu=$(MP_PROCESSOR_OPTION) -c -D__DEBUG=1 -g -DDEBUG -D__MPLAB_DEBUGGER_SIMULATOR=1 -gdwarf-2 -x c -D__$(MP_PROCESSOR_OPTION)__ -mdfp="C:/Program Files (x86)/Microchip/MPLABX/v5.25/packs/Microchip/ATmega_DFP/2.0.12" -Wl,--gc-sections -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -Wall -DXPRJ_default=$(CND_CONF) $(COMPARISON_BUILD) -gdwarf-3 -MD -MP -MF "${OBJECTDIR}/main.o.d" -MT "${OBJECTDIR}/main.o.d" -MT ${OBJECTDIR}/main.o -o ${OBJECTDIR}/main.o main.c
102+
103+
else
104+
${OBJECTDIR}/main.o: main.c nbproject/Makefile-${CND_CONF}.mk
105+
@${MKDIR} "${OBJECTDIR}"
106+
@${RM} ${OBJECTDIR}/main.o.d
107+
@${RM} ${OBJECTDIR}/main.o
108+
${MP_CC} $(MP_EXTRA_CC_PRE) -mcpu=$(MP_PROCESSOR_OPTION) -c -x c -D__$(MP_PROCESSOR_OPTION)__ -mdfp="C:/Program Files (x86)/Microchip/MPLABX/v5.25/packs/Microchip/ATmega_DFP/2.0.12" -Wl,--gc-sections -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -Wall -DXPRJ_default=$(CND_CONF) $(COMPARISON_BUILD) -gdwarf-3 -MD -MP -MF "${OBJECTDIR}/main.o.d" -MT "${OBJECTDIR}/main.o.d" -MT ${OBJECTDIR}/main.o -o ${OBJECTDIR}/main.o main.c
109+
110+
endif
111+
112+
# ------------------------------------------------------------------------------------
113+
# Rules for buildStep: assemble
114+
ifeq ($(TYPE_IMAGE), DEBUG_RUN)
115+
else
116+
endif
117+
118+
# ------------------------------------------------------------------------------------
119+
# Rules for buildStep: assembleWithPreprocess
120+
ifeq ($(TYPE_IMAGE), DEBUG_RUN)
121+
else
122+
endif
123+
124+
# ------------------------------------------------------------------------------------
125+
# Rules for buildStep: link
126+
ifeq ($(TYPE_IMAGE), DEBUG_RUN)
127+
dist/${CND_CONF}/${IMAGE_TYPE}/blink_simple.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}: ${OBJECTFILES} nbproject/Makefile-${CND_CONF}.mk
128+
@${MKDIR} dist/${CND_CONF}/${IMAGE_TYPE}
129+
${MP_CC} $(MP_EXTRA_LD_PRE) -mcpu=$(MP_PROCESSOR_OPTION) -Wl,-Map=dist/${CND_CONF}/${IMAGE_TYPE}/blink_simple.X.${IMAGE_TYPE}.map -D__DEBUG=1 -DXPRJ_default=$(CND_CONF) -Wl,--defsym=__MPLAB_BUILD=1 -mdfp="C:/Program Files (x86)/Microchip/MPLABX/v5.25/packs/Microchip/ATmega_DFP/2.0.12" -D__MPLAB_DEBUGGER_SIMULATOR=1 -gdwarf-2 -Wl,--gc-sections -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -Wall -gdwarf-3 $(COMPARISON_BUILD) -Wl,--memorysummary,dist/${CND_CONF}/${IMAGE_TYPE}/memoryfile.xml -o dist/${CND_CONF}/${IMAGE_TYPE}/blink_simple.X.${IMAGE_TYPE}.${DEBUGGABLE_SUFFIX} -o dist/${CND_CONF}/${IMAGE_TYPE}/blink_simple.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX} ${OBJECTFILES_QUOTED_IF_SPACED} -Wl,--start-group -Wl,-lm -Wl,--end-group -Wl,--defsym=__MPLAB_DEBUG=1,--defsym=__DEBUG=1,--defsym=__MPLAB_DEBUGGER_SIMULATOR=1
130+
@${RM} dist/${CND_CONF}/${IMAGE_TYPE}/blink_simple.X.${IMAGE_TYPE}.hex
131+
132+
else
133+
dist/${CND_CONF}/${IMAGE_TYPE}/blink_simple.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}: ${OBJECTFILES} nbproject/Makefile-${CND_CONF}.mk
134+
@${MKDIR} dist/${CND_CONF}/${IMAGE_TYPE}
135+
${MP_CC} $(MP_EXTRA_LD_PRE) -mcpu=$(MP_PROCESSOR_OPTION) -Wl,-Map=dist/${CND_CONF}/${IMAGE_TYPE}/blink_simple.X.${IMAGE_TYPE}.map -DXPRJ_default=$(CND_CONF) -Wl,--defsym=__MPLAB_BUILD=1 -mdfp="C:/Program Files (x86)/Microchip/MPLABX/v5.25/packs/Microchip/ATmega_DFP/2.0.12" -Wl,--gc-sections -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -funsigned-char -funsigned-bitfields -Wall -gdwarf-3 $(COMPARISON_BUILD) -Wl,--memorysummary,dist/${CND_CONF}/${IMAGE_TYPE}/memoryfile.xml -o dist/${CND_CONF}/${IMAGE_TYPE}/blink_simple.X.${IMAGE_TYPE}.${DEBUGGABLE_SUFFIX} -o dist/${CND_CONF}/${IMAGE_TYPE}/blink_simple.X.${IMAGE_TYPE}.${DEBUGGABLE_SUFFIX} ${OBJECTFILES_QUOTED_IF_SPACED} -Wl,--start-group -Wl,-lm -Wl,--end-group
136+
${MP_CC_DIR}\\avr-objcopy -O ihex "dist/${CND_CONF}/${IMAGE_TYPE}/blink_simple.X.${IMAGE_TYPE}.${DEBUGGABLE_SUFFIX}" "dist/${CND_CONF}/${IMAGE_TYPE}/blink_simple.X.${IMAGE_TYPE}.hex"
137+
endif
138+
139+
140+
# Subprojects
141+
.build-subprojects:
142+
143+
144+
# Subprojects
145+
.clean-subprojects:
146+
147+
# Clean Targets
148+
.clean-conf: ${CLEAN_SUBPROJECTS}
149+
${RM} -r build/default
150+
${RM} -r dist/default
151+
152+
# Enable dependency checking
153+
.dep.inc: .depcheck-impl
154+
155+
DEPFILES=$(shell mplabwildcard ${POSSIBLE_DEPFILES})
156+
ifneq (${DEPFILES},)
157+
include ${DEPFILES}
158+
endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#
2+
#Tue Oct 22 12:27:53 IST 2019
3+
default.Pack.dfplocation=C\:\\Program Files (x86)\\Microchip\\MPLABX\\v5.25\\packs\\Microchip\\ATmega_DFP\\2.0.12
4+
default.languagetoolchain.dir=C\:\\Program Files (x86)\\Microchip\\xc8\\v2.10\\bin
5+
configurations-xml=d86b85604254011d8efc0e157a062330
6+
com-microchip-mplab-nbide-embedded-makeproject-MakeProject.md5=6e453b0cf7f7da72a932cfdb2f655401
7+
default.languagetoolchain.version=2.10
8+
host.platform=windows
9+
conf.ids=default
10+
default.com-microchip-mplab-nbide-toolchainXC8-XC8LanguageToolchain.md5=23d12c447ed4f9462f01e2202bc2f36a

0 commit comments

Comments
 (0)