Skip to content

Commit

Permalink
"PAI-275: Removed Sourcce Files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Microchip Technology committed Aug 7, 2020
1 parent 5e527ee commit 0c52777
Show file tree
Hide file tree
Showing 35 changed files with 1,227 additions and 608 deletions.
66 changes: 66 additions & 0 deletions .main-meta/main.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"metaDataVersion": "1.0.0",
"category": "com.microchip.ide.project",
"content": {
"metaDataVersion": "1.1.0",
"name": "com.microchip.mcu8.mplabx.project.pic-lightblue-explorer-demo",
"version": "1.0.1",
"displayName": "PIC-BLE development board",
"projectName": "pic-lightblue-explorer-demo",
"shortDescription": "PIC-BLE Development Board using Microchip RN4870 BLE Module",
"ide": {
"name": "MPLABX",
"semverRange": ">=5.40.0"
},
"compiler": {
"name": "xc8",
"semverRange": "^2.20.0"
},
"dfp": {
"name": "PIC16F1xxxx_DFP",
"semverRange": "^1.4.119"
},
"configurator": {
"name": "MCC",
"semverRange": ">=3.95.0"
},
"device": {
"metaDataVersion": "1.0.0",
"category": "com.microchip.portal.contentRef",
"content": {
"metaDataVersion": "1.0.0",
"category": "com.microchip.device",
"name": "PIC16LF18456",
"versionRange": "*"
}
},
"author": "MCU8 Library Development Team",
"subcategories": [
"MCC", "BLE",
[
"Peripherals", "UART"
]
],
"peripherals": [
"Interrupt"
],
"keywords": [
"MCC",
"RN4870",
"BLE",
"Wireless",
"Internet of Things"
],
"additionalData": {
"longDescription": {
"metaDataVersion": "1.0.0",
"category": "com.microchip.portal.fileRef",
"content": {
"metaDataVersion": "1.0.0",
"fileName": "./README.md",
"mimeType": "text/markdown"
}
}
}
}
}
7 changes: 0 additions & 7 deletions PIC_LIGHTBLUE_EXPLORER_DEMO.X/.gitignore

This file was deleted.

262 changes: 131 additions & 131 deletions PIC_LIGHTBLUE_EXPLORER_DEMO.X/MyConfig.mc3

Large diffs are not rendered by default.

22 changes: 9 additions & 13 deletions PIC_LIGHTBLUE_EXPLORER_DEMO.X/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@
main.c
Summary:
This is the main file generated using PIC10 / PIC12 / PIC16 / PIC18 MCUs
This is the main file generated for use with PIC-Explorer
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.77
Device : PIC16LF18456
Driver Version : 2.00
*/

/*
Expand All @@ -42,10 +38,10 @@
*/

#include "mcc_generated_files/mcc.h"
#include "application/LIGHTBLUE_service.h"
#include "rn4870-1-ble-module/rn487x_interface.h"
#include "rn4870-1-ble-module/rn487x.h"
#include "drivers/uart.h"
#include "mcc_generated_files/application/LIGHTBLUE_service.h"
#include "mcc_generated_files/rn4870-1-ble-module/rn487x_interface.h"
#include "mcc_generated_files/rn4870-1-ble-module/rn487x.h"
#include "mcc_generated_files/drivers/uart.h"

/** MACRO used to reference Periodic Timer overflow flag Set.
* This is used by the application to have a semi-accurate
Expand All @@ -72,19 +68,18 @@ static uint8_t serialIndex; /**< Local index value for seria
/*
Main application
*/
void main(void)
int main(void)
{
// initialize the device
SYSTEM_Initialize();

RN487X_SetAsyncMessageHandler(statusBuffer, sizeof(statusBuffer));

// Enable the Global Interrupts
INTERRUPT_GlobalInterruptEnable();

// Enable the Peripheral Interrupts
INTERRUPT_PeripheralInterruptEnable();

RN487X_Init();
LIGHTBLUE_Initialize();

Expand Down Expand Up @@ -139,7 +134,8 @@ void main(void)
}
}
}
return 0;
}
/**
End of File
*/
*/
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

#include "BMA253_accel.h"
#include "drivers/i2c_simple_master.h"
#include "../drivers/i2c_simple_master.h"

/**
\ingroup BMA253
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@
#include "LIGHTBLUE_service.h"

// APP Dependencies
#include "rn4870-1-ble-module/rn487x.h"
#include "../rn4870-1-ble-module/rn487x.h"
#include "../rn4870-1-ble-module/rn487x_interface.h"
#include "BMA253_accel.h"
#include "MCP9844_temp_sensor.h"
#include "pin_manager.h"
#include "drivers/uart.h"
#include "../pin_manager.h"
#include "../drivers/uart.h"

/**
\ingroup LIGHTBLUE
Expand Down Expand Up @@ -156,7 +157,6 @@
\return void \n
*/
#define NIBBLE_MASK (0x01)

/**
\ingroup LIGHTBLUE
*! \struct PROTOCOL_PACKET_TYPES_t
Expand Down Expand Up @@ -195,7 +195,7 @@ typedef enum

}PACKET_PARSER_STATE_t;

const char * const protocol_version_number = "1.0.0"; /**< Local Const Variable used to represent Light Blue Protocol version used by application */
const char * const protocol_version_number = "1.0.1"; /**< Local Const Variable used to represent Light Blue Protocol version used by application */
static char _hex[] = "0123456789ABCDEF"; /**< Local Variable used for Masking a Hex value result */
static uint8_t sequenceNumber = 0; /**< Local Variable used to keep track of the number of TRANSMIT packets sent from device*/
static volatile rn487x_gpio_bitmap_t bitMap; /**< Local Variable used managing stored state of GPIO pin controlled by RN487X */
Expand Down Expand Up @@ -240,6 +240,7 @@ This function is used to read PORT value read from pin connected to PUSH BUTTON
\retval Status 0 (OFF) | 1 (ON) \n
*/
static uint8_t LIGHTBLUE_GetButtonValue(void);

/**
\ingroup LIGHTBLUE
\brief Private function used to request status of DATA LED from reading the PORT value. \n
Expand All @@ -248,6 +249,7 @@ This function is used to read PORT value from pin connected to LED masked agains
\retval Status 0 (OFF) | 1 (ON) \n
*/
static uint8_t LIGHTBLUE_GetDataLedValue(void);

/**
\ingroup LIGHTBLUE
\brief Private function used to request status of ERROR LED from local maintain variable. \n
Expand All @@ -271,7 +273,7 @@ This function is used to update the state of the ERROR LED which is controlled v
* RN487X through the GPIO command on the PIC platform. On the AVR board this is MCU (LAT) controlled.
\return void \n
*/
static void LIGHTBLUE_UpdateErrorLed(void);
static void LIGHTBLUE_UpdateErrorLed(void);
/**
\ingroup LIGHTBLUE
\brief Private function used process requested actions from the Light Blue application \n
Expand Down Expand Up @@ -476,7 +478,7 @@ static void LIGHTBLUE_SplitByte(char* payload, int8_t value)

static uint8_t LIGHTBLUE_GetButtonValue(void)
{
return NOT_PRESSED_STATE - SW0_GetValue(); // This is forcing proper data for LightBlue
return NOT_PRESSED_STATE - BT_MODE_GetValue(); // This is forcing proper data for LightBlue
}

static uint8_t LIGHTBLUE_GetDataLedValue(void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

#include "MCP9844_temp_sensor.h"
#include "drivers/i2c_simple_master.h"
#include "../drivers/i2c_simple_master.h"

/* MASK DEFINITIONS */

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
(c) 2019 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 BLE_EXPLORER_CONFIG_H
#define BLE_EXPLORER_CONFIG_H

#endif // BLE_EXPLORER_CONFIG_H
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
@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.77
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.81.3
Device : PIC16LF18456
Driver Version : 2.00
The generated drivers are tested against the following:
Compiler : XC8 2.05 and above or later
MPLAB : MPLAB X 5.20
Compiler : XC8 2.20 and above or later
MPLAB : MPLAB X 5.40
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
@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.77
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.81.3
Device : PIC16LF18456
Driver Version : 2.00
The generated drivers are tested against the following:
Compiler : XC8 2.05 and above or later
MPLAB : MPLAB X 5.20
Compiler : XC8 2.20 and above or later
MPLAB : MPLAB X 5.40
*/

/*
Expand Down
6 changes: 3 additions & 3 deletions PIC_LIGHTBLUE_EXPLORER_DEMO.X/mcc_generated_files/eusart1.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
@Description
This source file provides APIs for EUSART1.
Generation Information :
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.77
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.81.3
Device : PIC16LF18456
Driver Version : 2.1.0
The generated drivers are tested against the following:
Compiler : XC8 2.05 and above
MPLAB : MPLAB X 5.20
Compiler : XC8 2.20 and above
MPLAB : MPLAB X 5.40
*/

/*
Expand Down
6 changes: 3 additions & 3 deletions PIC_LIGHTBLUE_EXPLORER_DEMO.X/mcc_generated_files/eusart1.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
@Description
This header file provides APIs for driver for EUSART1.
Generation Information :
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.77
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.81.3
Device : PIC16LF18456
Driver Version : 2.1.0
The generated drivers are tested against the following:
Compiler : XC8 2.05 and above
MPLAB : MPLAB X 5.20
Compiler : XC8 2.20 and above
MPLAB : MPLAB X 5.40
*/

/*
Expand Down
6 changes: 3 additions & 3 deletions PIC_LIGHTBLUE_EXPLORER_DEMO.X/mcc_generated_files/eusart2.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
@Description
This source file provides APIs for EUSART2.
Generation Information :
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.77
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.81.3
Device : PIC16LF18456
Driver Version : 2.1.0
The generated drivers are tested against the following:
Compiler : XC8 2.05 and above
MPLAB : MPLAB X 5.20
Compiler : XC8 2.20 and above
MPLAB : MPLAB X 5.40
*/

/*
Expand Down
6 changes: 3 additions & 3 deletions PIC_LIGHTBLUE_EXPLORER_DEMO.X/mcc_generated_files/eusart2.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
@Description
This header file provides APIs for driver for EUSART2.
Generation Information :
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.77
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.81.3
Device : PIC16LF18456
Driver Version : 2.1.0
The generated drivers are tested against the following:
Compiler : XC8 2.05 and above
MPLAB : MPLAB X 5.20
Compiler : XC8 2.20 and above
MPLAB : MPLAB X 5.40
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
For individual peripheral handlers please see the peripheral driver for
all modules selected in the GUI.
Generation Information :
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.77
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.81.3
Device : PIC16LF18456
Driver Version : 2.03
The generated drivers are tested against the following:
Compiler : XC8 2.05 and above or later
MPLAB : MPLAB X 5.20
Compiler : XC8 2.20 and above or later
MPLAB : MPLAB X 5.40
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
For individual peripheral handlers please see the peripheral driver for
all modules selected in the GUI.
Generation Information :
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.77
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.81.3
Device : PIC16LF18456
Driver Version : 2.03
The generated drivers are tested against the following:
Compiler : XC8 2.05 and above or later
MPLAB : MPLAB X 5.20
Compiler : XC8 2.20 and above or later
MPLAB : MPLAB X 5.40
*/

/*
Expand Down
6 changes: 3 additions & 3 deletions PIC_LIGHTBLUE_EXPLORER_DEMO.X/mcc_generated_files/mcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
@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.77
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.81.3
Device : PIC16LF18456
Driver Version : 2.00
The generated drivers are tested against the following:
Compiler : XC8 2.05 and above or later
MPLAB : MPLAB X 5.20
Compiler : XC8 2.20 and above or later
MPLAB : MPLAB X 5.40
*/

/*
Expand Down
Loading

0 comments on commit 0c52777

Please sign in to comment.