Skip to content

Commit 995d8e7

Browse files
committed
MPAE-19453 created working project, updated readme and main-meta
1 parent f4d3689 commit 995d8e7

33 files changed

+282
-508
lines changed

.main-meta/main.json

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"content": {
55
"metaDataVersion": "1.3.0",
66
"name": "com.microchip.mcu8.mplabx.project.avr128db48-i2c-proximity-sensor-callbacks-dvrt",
7-
"version": " ",
8-
"displayName": "",
7+
"version": "1.0.0",
8+
"displayName": "avr128db48-i2c-proximity-sensor-callbacks-dvrt",
99
"projectName": "avr128db48-i2c-proximity-sensor-callbacks-dvrt",
1010
"shortDescription": "Reads proximity sensor value. With DV Run Time output, sends values to MPLAB Data Visualizer via DVRT protocol every 100 ms. Uses Timer driver callbacks for sampling frequency.",
1111
"ide": {
@@ -18,13 +18,13 @@
1818
"semverRange": "^3.0.0"
1919
}
2020
],
21-
"dfp": {
22-
"name": "",
23-
"semverRange": ""
21+
"dfp": {
22+
"name": "AVR-Dx_DFP",
23+
"semverRange": "^2.7.321"
2424
},
2525
"configurator": {
26-
"name": "",
27-
"semverRange": ""
26+
"name": "MCC",
27+
"semverRange": "^5.6.2"
2828
},
2929
"device": {
3030
"metaDataVersion": "1.0.0",
@@ -37,8 +37,23 @@
3737
}
3838
},
3939
"author": "Glen Nilsen",
40-
"peripherals": [],
41-
"keywords": [],
40+
"peripherals": [
41+
"I2C",
42+
"GPIO",
43+
"UART"
44+
],
45+
"keywords": [
46+
"Data Visualizer",
47+
"MPLAB Data Visualizer",
48+
"I2C",
49+
"UART",
50+
"Getting Started",
51+
"Melody",
52+
"MCC Melody",
53+
"Curiosity Nano Explorer",
54+
"Example Components",
55+
"MCC Melody Example Components"
56+
],
4257
"additionalData": {
4358
"longDescription": {
4459
"metaDataVersion": "1.0.0",

README.md

Lines changed: 40 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,50 +10,62 @@
1010

1111
# AVR128DB48 I2C_Host Example Component for CNano Explorer: I2C Proximity Sensor (Callbacks, DVRT)
1212

13+
The [I<sup>2</sup>C Proximity Sensor example](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=I2C.HOST.EX.RUNNING.I2C.HOST.PROXIMITY.SENSOR&version=latest&redirect=true "I2C Proximity Sensor example"
14+
), of the [MCC Melody I<sup>2</sup>C Example Component (for the Curiosity Nano Explorer)](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=I2C.HOST.EXAMPLE.COMPONENT&version=latest&redirect=true "MCC Melody I<sup>2</sup>C Example Component for the Curiosity Nano Explorer"
15+
), is used here in the Callbacks implementation with the DV Run Time (DVRT) visualization.
16+
17+
![alt text](images/avr128db48-i2c-proximity-sensor-callbacks-dvrt_intro.png)
18+
19+
This example demonstrates how to read the value of the VCNL4200 proximity sensor on the Curiosity Nano Explorer, with the DV Run Time Visualization Output selected. Every 100 ms, an LED and a Debug I/O pin are toggled. Depending on the DVRT streaming tick setting (default is 100 ms), the appropriately formatted values of the variables added to the DVRT Streaming Table are sent to the [MPLAB® Data Visualizer](https://www.microchip.com/en-us/tools-resources/debug/mplab-data-visualizer "MPLAB® Data Visualizer").
20+
21+
22+
## Operation
23+
The below image of the MPLAB Data Visualizer shows the application running, where proximityValue and framecount have been added to the DVRT Streaming Table and Time Plot:
24+
1325
When running the application, using the MPLAB Data Visualizer, you should see something similar to the following:
1426
![alt text](images/avr128db48-i2c-proximity-sensor-callbacks-dvrt.png)
27+
- [Data Visualizer Debug GPIO Setup](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=I2C.HOST.EX.DV.DEBUG.IO&version=latest&redirect=true)
28+
- [Data Visualizer Setup for DV Run Time](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=I2C.HOST.EX.DVRUNTIME.CONFIG&version=latest&redirect=true)
29+
30+
## Setup
1531

16-
The following is the required MCC Melody Builder:
17-
![alt text](images/avr128db48-i2c-proximity-sensor-callbacks-dvrt_builder.png)
32+
The following outlines the complete MPLAB Code Configuration (MCC) Melody configuration, including all the selected tasks implemented in this example.
1833

1934
The following is the required MCC Melody configuration:
2035
![alt text](images/avr128db48-i2c-proximity-sensor-callbacks-dvrt_configuration.png)
21-
<!-- This is where the introduction to the example goes, including mentioning the peripherals used -->
2236

23-
## Related Documentation
37+
![alt text](images\avr128db48-i2c-proximity-sensor-callbacks-dvrt_configuration_pins.png)
2438

25-
<!-- Any information about an application note or tech brief can be linked here. Use unbreakable links!
26-
In addition a link to the device family landing page and relevant peripheral pages as well:
27-
- [AN3381 - Brushless DC Fan Speed Control Using Temperature Input and Tachometer Feedback](https://microchip.com/00003381/)
28-
- [PIC18F-Q10 Family Product Page](https://www.microchip.com/design-centers/8-bit/pic-mcus/device-selection/pic18f-q10-product-family) -->
2939

30-
## Software Used
40+
## MCC Melody Example Components
41+
Example Components integrate learning material directly into the MCC. This allows the users to conveniently place the configuration instructions side-by-side to the components they are configuring. For more information, refer to the [MCC Melody Example Components](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=MCC.MELODY.EXAMPLES&version=latest&redirect=true) introduction.
3142

32-
<!-- All software used in this example must be listed here. Use unbreakable links!
33-
- MPLAB® X IDE 5.30 or newer [(microchip.com/mplab/mplab-x-ide)](http://www.microchip.com/mplab/mplab-x-ide)
34-
- MPLAB® XC8 2.10 or a newer compiler [(microchip.com/mplab/compilers)](http://www.microchip.com/mplab/compilers)
35-
- MPLAB® Code Configurator (MCC) 3.95.0 or newer [(microchip.com/mplab/mplab-code-configurator)](https://www.microchip.com/mplab/mplab-code-configurator)
36-
- MPLAB® Code Configurator (MCC) Device Libraries PIC10 / PIC12 / PIC16 / PIC18 MCUs [(microchip.com/mplab/mplab-code-configurator)](https://www.microchip.com/mplab/mplab-code-configurator)
37-
- Microchip PIC18F-Q Series Device Support (1.4.109) or newer [(packs.download.microchip.com/)](https://packs.download.microchip.com/) -->
3843

39-
- MPLAB® X IDE 6.25.0 or newer [(MPLAB® X IDE 6.25)](https://www.microchip.com/en-us/development-tools-tools-and-software/mplab-x-ide)
40-
- MPLAB® XC8 3.0.0 or newer compiler [(MPLAB® XC8 3.0)](https://www.microchip.com/en-us/tools-resources/develop/mplab-xc-compilers/xc8)
44+
## Related Documentation
4145

42-
## Hardware Used
46+
- [MCC Melody I<sup>2</sup>C Example Component (for the Curiosity Nano Explorer)](https://onlinedocs.microchip.com/v2/keyword-lookup?keyword=I2C.HOST.EXAMPLE.COMPONENT&version=latest&redirect=true "MCC Melody I<sup>2</sup>C Example Component for the Curiosity Nano Explorer")
47+
- [MCC Melody Design Patterns for Control Flow](https://onlinedocs.microchip.com/g/GUID-7CE1AEE9-2487-4E7B-B26B-93A577BA154E "MCC Melody Design Patterns for Control Flow")
4348

44-
<!-- All hardware used in this example must be listed here. Use unbreakable links!
45-
- PIC18F47Q10 Curiosity Nano [(DM182029)](https://www.microchip.com/Developmenttools/ProductDetails/DM182029)
46-
- Curiosity Nano Base for Click boards™ [(AC164162)](https://www.microchip.com/Developmenttools/ProductDetails/AC164162)
47-
- POT Click board™ [(MIKROE-3402)](https://www.mikroe.com/pot-click) -->
49+
- [Curiosity Nano Explorer User Guide](https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/UserGuides/CNANO-Explorer-UserGuide-DS50003716.pdf "Curiosity Nano Explorer Users Guide")
4850

49-
## Setup
51+
- [AVR128DB48 Data Sheet](https://ww1.microchip.com/downloads/en/DeviceDoc/AVR128DB28-32-48-64-DataSheet-DS40002247A.pdf "AVR128DB48 Data Sheet")
5052

51-
<!-- Explain how to connect hardware and set up software. Depending on complexity, step-by-step instructions and/or tables and/or images can be used -->
53+
## Software Used
54+
- [MPLAB® X IDE](https://www.microchip.com/en-us/development-tools-tools-and-software/mplab-x-ide) v6.25 or newer
55+
- [MPLAB® XC8](https://www.microchip.com/en-us/tools-resources/develop/mplab-xc-compilers/xc8) v3.00 or newer
5256

53-
## Operation
57+
- [MPLAB® Code Configurator](https://www.microchip.com/en-us/tools-resources/configure/mplab-code-configurator) (MCC) Plug-in Version v5.6.2 or newer (*Tools>Plugins>Installed*, search: "MCC")
58+
- [MPLAB® Data Visualizer](https://www.microchip.com/en-us/tools-resources/debug/mplab-data-visualizer) Plug-in Version v1.4.1926 or newer (*Tools>Plugins>Installed*, search: "Data Visualizer")
59+
- MCC Melody I2C_Host Example Component for the Curiosity Nano Explorer 1.0.0 or newer
60+
- MCC Core v5.8.2 or newer
61+
- Single Page Application (SPA) Host v1.0.0 or newer
62+
- MCC Melody Core v2.9.1 or newer
5463

55-
<!-- Explain how to operate the example. Depending on complexity, step-by-step instructions and/or tables and/or images can be used -->
64+
Open the MCC Content Manager ![CM_icon](images/Icon-MPLAB-CM24.png) to verify the MCC Core and MCC Melody Core versions.
5665

57-
## Summary
66+
![alt text](images/MCC_Core_ContentLibrary_Versions_SPA.png)
67+
68+
## Hardware Used
69+
- AVR128DB48 Curiosity Nano [(EV35L43A)](https://www.microchip.com/en-us/development-tool/EV35L43A)
70+
- Curiosity Nano Explorer [(EV58G97A)](https://www.microchip.com/en-us/development-tool/EV58G97A)
5871

59-
<!-- Summarize what the example has shown -->

avr128db48-i2c-proximity-sensor-callbacks-dvrt.X/avr128db48-i2c-proximity-sensor-callbacks-dvrt.mc3

Lines changed: 41 additions & 45 deletions
Large diffs are not rendered by default.
Binary file not shown.

avr128db48-i2c-proximity-sensor-callbacks-dvrt.X/main.c

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/*
2+
* MAIN Generated Driver File
3+
*
4+
* @file main.c
5+
*
6+
* @defgroup main MAIN
7+
*
8+
* @brief This is the generated driver implementation file for the MAIN driver.
9+
*
10+
* @version MAIN Driver Version 1.0.2
11+
*
12+
* @version Package Version: 3.1.2
13+
*/
14+
115
/*
216
© [2025] Microchip Technology Inc. and its subsidiaries.
317
@@ -25,7 +39,7 @@
2539
*
2640
* @ingroup i2c_host example
2741
*
28-
* @version I2C_HOST EXAMPLE Example Version 1.0.0
42+
* @version I2C_HOST EXAMPLE Example Version 1.0.1
2943
*
3044
* @brief Generated file for
3145
* Example: 4. I2C Proximity Sensor
@@ -35,6 +49,7 @@
3549
*/
3650

3751
#include "mcc_generated_files/system/system.h"
52+
3853
#include <util/delay.h>
3954

4055
// Note: VCNL4200 - High Sensitivity Long Distance Proximity and Ambient Light Sensor With I2C Interface
@@ -47,14 +62,15 @@ uint8_t VCNL4200_Initialize(void);
4762
uint8_t VCNL4200_ProximityRead(uint16_t* proximityValue);
4863
void Timer_Callback_100ms(void);
4964

50-
// TODO: Replace TimerX with name of const struct TIMER_INTERFACE, from MCC Generated Files > timer > {timer_header}X
51-
static const struct TIMER_INTERFACE *Timer = &Timer0; // TODO: Replace TimerX with the timer instance number
65+
// TODO: Replace TimerX with number of Timer chosen as dependency.
66+
// Matches name of const struct TIMER_INTERFACE, from MCC Generated Files > timer > tcXX.c
67+
static const struct TIMER_INTERFACE *Timer = &Timer0;
68+
5269
static volatile bool timerTick = false; // volatile because this variable is used inside & outside the ISR.
5370
static volatile uint16_t proximityValue; // VCNL4200 sensor result, volatile so a symbol in .elf file for DVRT
5471
static volatile uint8_t frameCount; // VCNL4200 sensor result, volatile so a symbol in .elf file for DVRT
5572
static i2c_host_error_t errorState = I2C_ERROR_NONE;
5673

57-
5874
uint8_t VCNL4200_ProximityRead(uint16_t* proximityValue)
5975
{
6076
union
@@ -115,4 +131,4 @@ int main(void)
115131
timerTick = false;
116132
}
117133
}
118-
}
134+
}

avr128db48-i2c-proximity-sensor-callbacks-dvrt.X/mcc-manifest-autosave.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,33 @@
22

33
manifest_file_version: 1.0.0
44
project: avr128db48-i2c-proximity-sensor-callbacks-dvrt
5-
creation_date: 2025-04-12T17:19:24.976+02:00[Europe/Berlin]
5+
creation_date: 2025-10-21T19:23:35.327+02:00[Europe/Berlin]
66
operating_system: Windows 11
77
mcc_mode: IDE
88
mcc_mode_version: v6.25
99
device_name: AVR128DB48
10-
compiler: XC8 3.00
11-
mcc_version: 5.5.2
12-
mcc_core_version: 5.7.1
13-
content_manager_version: 5.0.1
10+
compiler: XC8 3.10
11+
mcc_version: 5.6.2
12+
mcc_core_version: 5.8.2
13+
content_manager_version: 6.0.3-rc.b
1414
is_mcc_offline: false
15-
is_using_prerelease_versions: true
16-
mcc_content_registries: https://registry.npmjs.org/,https://artifacts.microchip.com/artifactory/api/npm/npm/
17-
device_library: {library_class: com.microchip.mcc.melody.Library, name: Melody, version: 2.9.0-feat.24}
18-
packs: {name: AVR-Dx_DFP, version: 2.7.321}
15+
is_using_prerelease_versions: false
16+
mcc_content_registries: https://registry.npmjs.org/
17+
device_library: {library_class: com.microchip.mcc.melody.Library, name: Melody, version: 2.10.0}
18+
packs: {name: N/A, version: N/A}
1919
modules:
20-
- {name: '@mchp-mcc/avr-8bit', type: MELODY, version: 4.13.1-dev.4}
20+
- {name: '@mchp-mcc/avr-8bit', type: MELODY, version: 4.14.3-dev.5}
2121
- {name: '@mchp-mcc/avr8-configuration-bits-v1', type: MELODY, version: 4.3.0}
22-
- {name: '@mchp-mcc/avr8-pin-manager', type: MELODY, version: 4.6.1}
23-
- {name: '@mchp-mcc/dv-run-time', type: MELODY, version: 1.0.2-dev.1}
24-
- {name: '@mchp-mcc/example-i2c-host', type: MELODY, version: 1.0.0}
22+
- {name: '@mchp-mcc/avr8-pin-manager', type: MELODY, version: 4.6.2}
23+
- {name: '@mchp-mcc/dv-run-time', type: MELODY, version: 2.0.0}
24+
- {name: '@mchp-mcc/example-i2c-host', type: MELODY, version: 1.0.1}
2525
- {name: '@mchp-mcc/i2c-host-driver', type: MELODY, version: 1.1.0-dev.1}
2626
- {name: '@mchp-mcc/main-manager', type: MELODY, version: 3.1.2}
27-
- {name: '@mchp-mcc/pin-content-processor', type: MELODY, version: 3.9.1-feat.6}
28-
- {name: '@mchp-mcc/scf-avr8-clkctrl-v3', type: MELODY, version: 2.1.0-dev.1}
29-
- {name: '@mchp-mcc/scf-avr8-interrupt-v1', type: MELODY, version: 5.0.13-dev.1}
30-
- {name: '@mchp-mcc/scf-avr8-tca-v1', type: MELODY, version: 7.0.0}
27+
- {name: '@mchp-mcc/pin-content-processor', type: MELODY, version: 3.11.0}
28+
- {name: '@mchp-mcc/scf-avr8-clkctrl-v3', type: MELODY, version: 2.1.0-rc.1}
29+
- {name: '@mchp-mcc/scf-avr8-interrupt-v1', type: MELODY, version: 5.0.13-dev.2}
30+
- {name: '@mchp-mcc/scf-avr8-tca-v1', type: MELODY, version: 7.1.0}
3131
- {name: '@mchp-mcc/scf-avr8-twi-v1', type: MELODY, version: 8.2.0}
32-
- {name: '@mchp-mcc/scf-avr8-usart-v1', type: MELODY, version: 10.2.1}
32+
- {name: '@mchp-mcc/scf-avr8-usart-v1', type: MELODY, version: 10.3.1}
3333
- {name: '@mchp-mcc/timer', type: MELODY, version: 1.2.3}
3434
- {name: '@mchp-mcc/uart-driver', type: MELODY, version: 1.10.2}

avr128db48-i2c-proximity-sensor-callbacks-dvrt.X/mcc-manifest-generated-success.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,33 @@
22

33
manifest_file_version: 1.0.0
44
project: avr128db48-i2c-proximity-sensor-callbacks-dvrt
5-
creation_date: 2025-04-12T16:50:59.136+02:00[Europe/Berlin]
5+
creation_date: 2025-10-21T18:53:08.635+02:00[Europe/Berlin]
66
operating_system: Windows 11
77
mcc_mode: IDE
88
mcc_mode_version: v6.25
99
device_name: AVR128DB48
10-
compiler: XC8 3.00
11-
mcc_version: 5.5.2
12-
mcc_core_version: 5.7.1
13-
content_manager_version: 5.0.1
10+
compiler: XC8 3.10
11+
mcc_version: 5.6.2
12+
mcc_core_version: 5.8.2
13+
content_manager_version: 6.0.3-rc.b
1414
is_mcc_offline: false
15-
is_using_prerelease_versions: true
16-
mcc_content_registries: https://registry.npmjs.org/,https://artifacts.microchip.com/artifactory/api/npm/npm/
17-
device_library: {library_class: com.microchip.mcc.melody.Library, name: Melody, version: 2.9.0-feat.24}
18-
packs: {name: AVR-Dx_DFP, version: 2.7.321}
15+
is_using_prerelease_versions: false
16+
mcc_content_registries: https://registry.npmjs.org/
17+
device_library: {library_class: com.microchip.mcc.melody.Library, name: Melody, version: 2.10.0}
18+
packs: {name: N/A, version: N/A}
1919
modules:
20-
- {name: '@mchp-mcc/avr-8bit', type: MELODY, version: 4.13.1-dev.4}
20+
- {name: '@mchp-mcc/avr-8bit', type: MELODY, version: 4.14.3-dev.5}
2121
- {name: '@mchp-mcc/avr8-configuration-bits-v1', type: MELODY, version: 4.3.0}
22-
- {name: '@mchp-mcc/avr8-pin-manager', type: MELODY, version: 4.6.1}
23-
- {name: '@mchp-mcc/dv-run-time', type: MELODY, version: 1.0.2-dev.1}
24-
- {name: '@mchp-mcc/example-i2c-host', type: MELODY, version: 1.0.0}
22+
- {name: '@mchp-mcc/avr8-pin-manager', type: MELODY, version: 4.6.2}
23+
- {name: '@mchp-mcc/dv-run-time', type: MELODY, version: 2.0.0}
24+
- {name: '@mchp-mcc/example-i2c-host', type: MELODY, version: 1.0.1}
2525
- {name: '@mchp-mcc/i2c-host-driver', type: MELODY, version: 1.1.0-dev.1}
2626
- {name: '@mchp-mcc/main-manager', type: MELODY, version: 3.1.2}
27-
- {name: '@mchp-mcc/pin-content-processor', type: MELODY, version: 3.9.1-feat.6}
28-
- {name: '@mchp-mcc/scf-avr8-clkctrl-v3', type: MELODY, version: 2.1.0-dev.1}
29-
- {name: '@mchp-mcc/scf-avr8-interrupt-v1', type: MELODY, version: 5.0.13-dev.1}
30-
- {name: '@mchp-mcc/scf-avr8-tca-v1', type: MELODY, version: 7.0.0}
27+
- {name: '@mchp-mcc/pin-content-processor', type: MELODY, version: 3.11.0}
28+
- {name: '@mchp-mcc/scf-avr8-clkctrl-v3', type: MELODY, version: 2.1.0-rc.1}
29+
- {name: '@mchp-mcc/scf-avr8-interrupt-v1', type: MELODY, version: 5.0.13-dev.2}
30+
- {name: '@mchp-mcc/scf-avr8-tca-v1', type: MELODY, version: 7.1.0}
3131
- {name: '@mchp-mcc/scf-avr8-twi-v1', type: MELODY, version: 8.2.0}
32-
- {name: '@mchp-mcc/scf-avr8-usart-v1', type: MELODY, version: 10.2.1}
32+
- {name: '@mchp-mcc/scf-avr8-usart-v1', type: MELODY, version: 10.3.1}
3333
- {name: '@mchp-mcc/timer', type: MELODY, version: 1.2.3}
3434
- {name: '@mchp-mcc/uart-driver', type: MELODY, version: 1.10.2}

avr128db48-i2c-proximity-sensor-callbacks-dvrt.X/mcc_generated_files/DVRT/DVRunTime.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
*
88
* @brief This file contains the API prototypes for the dvruntime driver module.
99
*
10-
* @version dvruntime Version 1.0.0.
10+
* @version dvruntime Package Version 2.0.0.
11+
*
12+
* @version dvruntime Driver Version 2.0.0.
1113
*/
1214
/*
1315
© [2025] Microchip Technology Inc. and its subsidiaries.

avr128db48-i2c-proximity-sensor-callbacks-dvrt.X/mcc_generated_files/DVRT/DVRunTime_config.h

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
*
88
* @brief This file contains the macros for the configuration of the dvruntime module.
99
*
10-
* @version dvruntime Version 1.0.0.
10+
* @version dvruntime Package Version 2.0.0.
11+
*
12+
* @version dvruntime Driver Version 2.0.0.
1113
*/
1214
/*
1315
© [2025] Microchip Technology Inc. and its subsidiaries.
@@ -40,14 +42,14 @@
4042

4143
#endif
4244

43-
#define DYNAMIC_VAR_PTR_COUNT 8 /* Number of Dynamic Variables Pointers in the Monitor Table */
44-
#define DV_STREAM_TIME 20 /* Streaming time interval (time dependent on main loop tick) */
45-
#define DV_RX_CMD_TIMEOUT 200 /* Command timeout: Timeout after number of times DVRT_process() is called */
45+
#define DYNAMIC_VAR_PTR_COUNT 8U /* Number of Dynamic Variables Pointers in the Monitor Table */
46+
#define DV_STREAM_TIME 20U /* Streaming time interval (time dependent on main loop tick) */
47+
#define DV_RX_CMD_TIMEOUT 200U /* Command timeout: Timeout after number of times DVRT_process() is called */
4648
#define DV_FW_CODE (uint16_t)261 /* Project Firmware Code */
4749

48-
#define DV_START_OF_FRAME 0x03 /* Start Frame Byte */
49-
#define DV_END_OF_FRAME 0xFC /* End Frame Byte */
50-
#define DV_RX_CMD_MIN_SIZE 3 /* Minimun number of byte in a RX command */
50+
#define DV_START_OF_FRAME 0x03U /* Start Frame Byte */
51+
#define DV_END_OF_FRAME 0xFCU /* End Frame Byte */
52+
#define DV_RX_CMD_MIN_SIZE 3U /* Minimun number of byte in a RX command */
5153

5254
/** @} */
5355
#ifdef __cplusplus

avr128db48-i2c-proximity-sensor-callbacks-dvrt.X/mcc_generated_files/DVRT/DVRunTime_interface.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
*
88
* @brief Contains the function pointers to the DV Run Time library component.
99
*
10-
* @version dvruntime Version 1.0.0.
10+
* @version dvruntime Package Version 2.0.0.
11+
*
12+
* @version dvruntime Driver Version 2.0.0.
1113
*/
1214
/*
1315
© [2025] Microchip Technology Inc. and its subsidiaries.

0 commit comments

Comments
 (0)