Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bfd0ede
Showing
47 changed files
with
16,761 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/build/ | ||
/debug/ | ||
/dist/ | ||
/nbproject/private/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# | ||
# There exist several targets which are by default empty and which can be | ||
# used for execution of your targets. These targets are usually executed | ||
# before and after some main targets. They are: | ||
# | ||
# .build-pre: called before 'build' target | ||
# .build-post: called after 'build' target | ||
# .clean-pre: called before 'clean' target | ||
# .clean-post: called after 'clean' target | ||
# .clobber-pre: called before 'clobber' target | ||
# .clobber-post: called after 'clobber' target | ||
# .all-pre: called before 'all' target | ||
# .all-post: called after 'all' target | ||
# .help-pre: called before 'help' target | ||
# .help-post: called after 'help' target | ||
# | ||
# Targets beginning with '.' are not intended to be called on their own. | ||
# | ||
# Main targets can be executed directly, and they are: | ||
# | ||
# build build a specific configuration | ||
# clean remove built files from a configuration | ||
# clobber remove all built files | ||
# all build all configurations | ||
# help print help mesage | ||
# | ||
# Targets .build-impl, .clean-impl, .clobber-impl, .all-impl, and | ||
# .help-impl are implemented in nbproject/makefile-impl.mk. | ||
# | ||
# Available make variables: | ||
# | ||
# CND_BASEDIR base directory for relative paths | ||
# CND_DISTDIR default top distribution directory (build artifacts) | ||
# CND_BUILDDIR default top build directory (object files, ...) | ||
# CONF name of current configuration | ||
# CND_ARTIFACT_DIR_${CONF} directory of build artifact (current configuration) | ||
# CND_ARTIFACT_NAME_${CONF} name of build artifact (current configuration) | ||
# CND_ARTIFACT_PATH_${CONF} path to build artifact (current configuration) | ||
# CND_PACKAGE_DIR_${CONF} directory of package (current configuration) | ||
# CND_PACKAGE_NAME_${CONF} name of package (current configuration) | ||
# CND_PACKAGE_PATH_${CONF} path to package (current configuration) | ||
# | ||
# NOCDDL | ||
|
||
|
||
# Environment | ||
MKDIR=mkdir | ||
CP=cp | ||
CCADMIN=CCadmin | ||
RANLIB=ranlib | ||
|
||
|
||
# build | ||
build: .build-post | ||
|
||
.build-pre: | ||
# Add your pre 'build' code here... | ||
|
||
.build-post: .build-impl | ||
# Add your post 'build' code here... | ||
|
||
|
||
# clean | ||
clean: .clean-post | ||
|
||
.clean-pre: | ||
# Add your pre 'clean' code here... | ||
# WARNING: the IDE does not call this target since it takes a long time to | ||
# simply run make. Instead, the IDE removes the configuration directories | ||
# under build and dist directly without calling make. | ||
# This target is left here so people can do a clean when running a clean | ||
# outside the IDE. | ||
|
||
.clean-post: .clean-impl | ||
# Add your post 'clean' code here... | ||
|
||
|
||
# clobber | ||
clobber: .clobber-post | ||
|
||
.clobber-pre: | ||
# Add your pre 'clobber' code here... | ||
|
||
.clobber-post: .clobber-impl | ||
# Add your post 'clobber' code here... | ||
|
||
|
||
# all | ||
all: .all-post | ||
|
||
.all-pre: | ||
# Add your pre 'all' code here... | ||
|
||
.all-post: .all-impl | ||
# Add your post 'all' code here... | ||
|
||
|
||
# help | ||
help: .help-post | ||
|
||
.help-pre: | ||
# Add your pre 'help' code here... | ||
|
||
.help-post: .help-impl | ||
# Add your post 'help' code here... | ||
|
||
|
||
|
||
# include project implementation makefile | ||
include nbproject/Makefile-impl.mk | ||
|
||
# include project make variables | ||
include nbproject/Makefile-variables.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef APP_BUTTON_MATRIX_H | ||
#define APP_BUTTON_MATRIX_H | ||
|
||
#include "mcc.h" | ||
|
||
#define APP_BUTTON_MATRIX_SIZE 9 | ||
|
||
int8_t APP_ButtonMatrixGetIndex(); | ||
void APP_ButtonMatrixScan(void); | ||
void APP_ButtonMatrixInit(void); | ||
|
||
#endif /* APP_BUTTON_MATRIX_H */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/******************************************************************************* | ||
Copyright 2016 Microchip Technology Inc. (www.microchip.com) | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
To request to license the code under the MLA license (www.microchip.com/mla_license), | ||
please contact mla_licensing@microchip.com | ||
*******************************************************************************/ | ||
|
||
#ifndef KEYBOARD_H | ||
#define KEYBOARD_H | ||
|
||
void APP_KeyboardInit(void); | ||
void APP_KeyboardTasks(void); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef APP_PAGE_SELECTOR_H | ||
#define APP_PAGE_SELECTOR_H | ||
|
||
#include "mcc.h" | ||
|
||
#define APP_PAGE_COUNT 4 | ||
|
||
uint8_t APP_PageSelectorGetIndex(); | ||
void APP_PageSelectorUpdate(void); | ||
void APP_PageSelectorInit(void); | ||
|
||
#endif /* APP_PAGE_SELECTOR_H */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/******************************************************************************* | ||
Copyright 2016 Microchip Technology Inc. (www.microchip.com) | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
To request to license the code under the MLA license (www.microchip.com/mla_license), | ||
please contact mla_licensing@microchip.com | ||
*******************************************************************************/ | ||
|
||
#ifndef FIXED_MEMORY_ADDRESS_H | ||
#define FIXED_MEMORY_ADDRESS_H | ||
|
||
#define FIXED_ADDRESS_MEMORY | ||
|
||
#define KEYBOARD_INPUT_REPORT_DATA_BUFFER_ADDRESS_TAG @0x240 | ||
#define KEYBOARD_OUTPUT_REPORT_DATA_BUFFER_ADDRESS_TAG @0x248 | ||
|
||
#endif //FIXED_MEMORY_ADDRESS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/******************************************************************************* | ||
Copyright 2016 Microchip Technology Inc. (www.microchip.com) | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
To request to license the code under the MLA license (www.microchip.com/mla_license), | ||
please contact mla_licensing@microchip.com | ||
*******************************************************************************/ | ||
#include "system.h" | ||
|
||
/* Demo I/O options. */ | ||
#define LED_USB_DEVICE_STATE LED_D1 | ||
#define LED_USB_DEVICE_HID_KEYBOARD_CAPS_LOCK LED_D2 | ||
|
||
#define BUTTON_USB_DEVICE_HID_KEYBOARD_KEY BUTTON_S1 | ||
#define BUTTON_USB_DEVICE_REMOTE_WAKEUP BUTTON_S1 | ||
|
||
/* USB Stack I/O options. */ | ||
#define self_power 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
/** | ||
@Generated PIC10 / PIC12 / PIC16 / PIC18 MCUs Header File | ||
@Company: | ||
Microchip Technology Inc. | ||
@File Name: | ||
mcc.h | ||
@Summary: | ||
This is the mcc.h file generated using PIC10 / PIC12 / PIC16 / PIC18 MCUs | ||
@Description: | ||
This header file provides implementations for driver APIs for all modules selected in the GUI. | ||
Generation Information : | ||
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.65.2 | ||
Device : PIC18F14K50 | ||
Driver Version : 2.00 | ||
The generated drivers are tested against the following: | ||
Compiler : XC8 1.45 or later | ||
MPLAB : MPLAB X 4.15 | ||
*/ | ||
|
||
/* | ||
(c) 2018 Microchip Technology Inc. and its subsidiaries. | ||
Subject to your compliance with these terms, you may use Microchip software and any | ||
derivatives exclusively with Microchip products. It is your responsibility to comply with third party | ||
license terms applicable to your use of third party software (including open source software) that | ||
may accompany Microchip software. | ||
THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER | ||
EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY | ||
IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS | ||
FOR A PARTICULAR PURPOSE. | ||
IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, | ||
INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND | ||
WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP | ||
HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO | ||
THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL | ||
CLAIMS IN ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT | ||
OF FEES, IF ANY, THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS | ||
SOFTWARE. | ||
*/ | ||
|
||
#ifndef MCC_H | ||
#define MCC_H | ||
#include <xc.h> | ||
#include "pin_manager.h" | ||
#include <stdint.h> | ||
#include <stdbool.h> | ||
|
||
#define _XTAL_FREQ 48000000 | ||
|
||
|
||
/** | ||
* @Param | ||
none | ||
* @Returns | ||
none | ||
* @Description | ||
Initializes the device to the default states configured in the | ||
* MCC GUI | ||
* @Example | ||
SYSTEM_Initialize(void); | ||
*/ | ||
void SYSTEM_Initialize(void); | ||
|
||
/** | ||
* @Param | ||
none | ||
* @Returns | ||
none | ||
* @Description | ||
Initializes the oscillator to the default states configured in the | ||
* MCC GUI | ||
* @Example | ||
OSCILLATOR_Initialize(void); | ||
*/ | ||
void OSCILLATOR_Initialize(void); | ||
|
||
#endif /* MCC_H */ | ||
/** | ||
End of File | ||
*/ |
Oops, something went wrong.