├── .gitignore
├── Drivers
├── CMSIS
│ ├── Device
│ │ └── ST
│ │ │ └── STM32WLxx
│ │ │ └── Include
│ │ │ ├── stm32wl54xx.h
│ │ │ ├── stm32wl55xx.h
│ │ │ ├── stm32wle4xx.h
│ │ │ ├── stm32wle5xx.h
│ │ │ └── system_stm32wlxx.h
│ └── Include
│ │ ├── cmsis_version.h
│ │ └── tz_context.h
├── BSP
│ └── STM32WLxx_LoRa_E5_mini
│ │ ├── stm32wlxx_LoRa_E5_mini_errno.h
│ │ └── stm32wlxx_LoRa_E5_mini_conf_template.h
└── STM32WLxx_HAL_Driver
│ └── Inc
│ ├── stm32wlxx_hal_spi_ex.h
│ └── stm32_assert_template.h
├── Middlewares
└── Third_Party
│ ├── SubGHz_Phy
│ ├── _htmresc
│ │ └── st_logo.png
│ ├── LICENSE.txt
│ ├── Conf
│ │ ├── subghz_template.h
│ │ ├── subghz_template.c
│ │ └── mw_log_conf_template.h
│ └── stm32_radio_driver
│ │ └── subghz_phy_version.h
│ ├── FreeRTOS
│ └── Source
│ │ ├── CMSIS_RTOS
│ │ ├── cmsis_os.c
│ │ └── cmsis_os.h
│ │ └── CMSIS_RTOS_V2
│ │ └── cmsis_os2.c
│ ├── littlefs
│ ├── scripts
│ │ ├── readblock.py
│ │ └── prefix.py
│ ├── lfs_util.c
│ ├── LICENSE.md
│ ├── bd
│ │ ├── lfs_rambd.h
│ │ └── lfs_filebd.h
│ └── Makefile
│ └── LoRaWAN
│ ├── LmHandler
│ ├── Packages
│ │ ├── LmhpRemoteMcastSetup.h
│ │ ├── LmhpClockSync.h
│ │ ├── LmhpDataDistribution.h
│ │ ├── LmhpPackagesRegistration.h
│ │ ├── LmhpFirmwareManagement.h
│ │ ├── LmhpCompliance.h
│ │ └── LmhpFragmentation.h
│ ├── NvmDataMgmt.h
│ └── lorawan_version.h
│ ├── LICENSE.txt
│ ├── Mac
│ ├── LoRaMacTest.h
│ └── LoRaMacParser.h
│ ├── Conf
│ ├── Commissioning_template.h
│ └── lora_info_template.h
│ └── Crypto
│ └── cmac.h
├── Projects
└── Applications
│ ├── LoRaWAN
│ └── LoRaWAN_End_Node
│ │ ├── .extSettings
│ │ ├── Core
│ │ ├── Inc
│ │ │ ├── adc.h
│ │ │ ├── rtc.h
│ │ │ ├── usart.h
│ │ │ ├── subghz.h
│ │ │ ├── dma.h
│ │ │ ├── stm32wlxx_it.h
│ │ │ ├── platform.h
│ │ │ ├── stm32wlxx_LoRa_E5_mini_conf.h
│ │ │ └── main.h
│ │ └── Src
│ │ │ ├── dma.c
│ │ │ ├── stm32wlxx_hal_msp.c
│ │ │ └── subghz.c
│ │ └── LoRaWAN
│ │ ├── Target
│ │ ├── systime.h
│ │ └── mw_log_conf.h
│ │ └── App
│ │ ├── app_lorawan.h
│ │ ├── Commissioning.h
│ │ ├── lora_info.h
│ │ └── CayenneLpp.h
│ ├── FreeRTOS
│ ├── FreeRTOS_LoRaWAN
│ │ ├── Core
│ │ │ ├── Inc
│ │ │ │ ├── adc.h
│ │ │ │ ├── rtc.h
│ │ │ │ ├── subghz.h
│ │ │ │ ├── dma.h
│ │ │ │ ├── usart.h
│ │ │ │ ├── stm32wlxx_it.h
│ │ │ │ ├── platform.h
│ │ │ │ └── stm32wlxx_LoRa_E5_mini_conf.h
│ │ │ └── Src
│ │ │ │ ├── dma.c
│ │ │ │ └── subghz.c
│ │ └── LoRaWAN
│ │ │ ├── Target
│ │ │ ├── systime.h
│ │ │ └── mw_log_conf.h
│ │ │ └── App
│ │ │ ├── app_lorawan.h
│ │ │ ├── Commissioning.h
│ │ │ ├── lora_info.h
│ │ │ └── CayenneLpp.h
│ ├── FreeRTOS_LoRaWAN_AT
│ │ ├── Core
│ │ │ ├── Inc
│ │ │ │ ├── adc.h
│ │ │ │ ├── rtc.h
│ │ │ │ ├── subghz.h
│ │ │ │ ├── dma.h
│ │ │ │ ├── usart.h
│ │ │ │ ├── stm32wlxx_it.h
│ │ │ │ ├── platform.h
│ │ │ │ └── stm32wlxx_LoRa_E5_mini_conf.h
│ │ │ └── Src
│ │ │ │ ├── dma.c
│ │ │ │ └── subghz.c
│ │ └── LoRaWAN
│ │ │ ├── Target
│ │ │ ├── systime.h
│ │ │ └── mw_log_conf.h
│ │ │ └── App
│ │ │ ├── app_lorawan.h
│ │ │ ├── lora_command.h
│ │ │ ├── Commissioning.h
│ │ │ ├── lora_info.h
│ │ │ └── CayenneLpp.h
│ └── FreeRTOS_LowPower
│ │ └── Core
│ │ └── Inc
│ │ ├── stm32wlxx_it.h
│ │ └── main.h
│ └── LowPower
│ └── Core
│ ├── Inc
│ ├── stm32wlxx_it.h
│ └── main.h
│ └── Src
│ └── sysmem.c
├── .github
└── workflows
│ ├── stale.yml
│ └── sync_issues.yml
└── Utilities
└── misc
├── stm32_mem.c
├── stm32_mem.h
└── stm32_tiny_vsnprintf.h
/.gitignore:
--------------------------------------------------------------------------------
1 | .settings
2 | DEBUG
3 | *.hex
4 | .mxproject
--------------------------------------------------------------------------------
/Drivers/CMSIS/Device/ST/STM32WLxx/Include/stm32wl54xx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcgdam/LoRaWan-E5-Node/main/Drivers/CMSIS/Device/ST/STM32WLxx/Include/stm32wl54xx.h
--------------------------------------------------------------------------------
/Drivers/CMSIS/Device/ST/STM32WLxx/Include/stm32wl55xx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcgdam/LoRaWan-E5-Node/main/Drivers/CMSIS/Device/ST/STM32WLxx/Include/stm32wl55xx.h
--------------------------------------------------------------------------------
/Drivers/CMSIS/Device/ST/STM32WLxx/Include/stm32wle4xx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcgdam/LoRaWan-E5-Node/main/Drivers/CMSIS/Device/ST/STM32WLxx/Include/stm32wle4xx.h
--------------------------------------------------------------------------------
/Drivers/CMSIS/Device/ST/STM32WLxx/Include/stm32wle5xx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcgdam/LoRaWan-E5-Node/main/Drivers/CMSIS/Device/ST/STM32WLxx/Include/stm32wle5xx.h
--------------------------------------------------------------------------------
/Middlewares/Third_Party/SubGHz_Phy/_htmresc/st_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcgdam/LoRaWan-E5-Node/main/Middlewares/Third_Party/SubGHz_Phy/_htmresc/st_logo.png
--------------------------------------------------------------------------------
/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcgdam/LoRaWan-E5-Node/main/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c
--------------------------------------------------------------------------------
/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcgdam/LoRaWan-E5-Node/main/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h
--------------------------------------------------------------------------------
/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcgdam/LoRaWan-E5-Node/main/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c
--------------------------------------------------------------------------------
/Projects/Applications/LoRaWAN/LoRaWAN_End_Node/.extSettings:
--------------------------------------------------------------------------------
1 | [ProjectFiles]
2 | HeaderPath=..\..\..\..\..\..\Drivers\BSP\STM32WLxx_Nucleo
3 | [Others]
4 | [Groups]
5 | Drivers/BSP/STM32WLxx_Nucleo=../../../../../../Drivers/BSP/STM32WLxx_Nucleo/stm32wlxx_nucleo.c; ../../../../../../Drivers/BSP/STM32WLxx_Nucleo/stm32wlxx_nucleo_radio.c
6 | Doc=../readme.txt;
7 |
--------------------------------------------------------------------------------
/.github/workflows/stale.yml:
--------------------------------------------------------------------------------
1 | name: 'Close stale issues and PRs'
2 |
3 | on:
4 | workflow_dispatch:
5 | schedule:
6 | - cron: '0 4 * * *'
7 |
8 | jobs:
9 | stale:
10 | runs-on: ubuntu-latest
11 |
12 | steps:
13 | - name: Checkout repository
14 | uses: actions/checkout@v4
15 |
16 | - name: Checkout script repository
17 | uses: actions/checkout@v4
18 | with:
19 | repository: Seeed-Studio/sync-github-all-issues
20 | path: ci
21 |
22 | - name: Run script
23 | run: ./ci/tools/stale.sh
24 | env:
25 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26 |
--------------------------------------------------------------------------------
/.github/workflows/sync_issues.yml:
--------------------------------------------------------------------------------
1 | name: Automate Issue Management
2 |
3 | on:
4 | issues:
5 | types:
6 | - opened
7 | - edited
8 | - assigned
9 | - unassigned
10 | - labeled
11 | - unlabeled
12 | - reopened
13 |
14 | jobs:
15 | add_issue_to_project:
16 | runs-on: ubuntu-latest
17 | steps:
18 | - name: Add issue to GitHub Project
19 | uses: actions/add-to-project@v1.0.2
20 | with:
21 | project-url: https://github.com/orgs/Seeed-Studio/projects/17
22 | github-token: ${{ secrets.ISSUE_ASSEMBLE }}
23 | labeled: bug
24 | label-operator: NOT
--------------------------------------------------------------------------------
/Middlewares/Third_Party/littlefs/scripts/readblock.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python3
2 |
3 | import subprocess as sp
4 |
5 | def main(args):
6 | with open(args.disk, 'rb') as f:
7 | f.seek(args.block * args.block_size)
8 | block = (f.read(args.block_size)
9 | .ljust(args.block_size, b'\xff'))
10 |
11 | # what did you expect?
12 | print("%-8s %-s" % ('off', 'data'))
13 | return sp.run(['xxd', '-g1', '-'], input=block).returncode
14 |
15 | if __name__ == "__main__":
16 | import argparse
17 | import sys
18 | parser = argparse.ArgumentParser(
19 | description="Hex dump a specific block in a disk.")
20 | parser.add_argument('disk',
21 | help="File representing the block device.")
22 | parser.add_argument('block_size', type=lambda x: int(x, 0),
23 | help="Size of a block in bytes.")
24 | parser.add_argument('block', type=lambda x: int(x, 0),
25 | help="Address of block to dump.")
26 | sys.exit(main(parser.parse_args()))
27 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/littlefs/lfs_util.c:
--------------------------------------------------------------------------------
1 | /*
2 | * lfs util functions
3 | *
4 | * Copyright (c) 2017, Arm Limited. All rights reserved.
5 | * SPDX-License-Identifier: BSD-3-Clause
6 | */
7 | #include "lfs_util.h"
8 |
9 | // Only compile if user does not provide custom config
10 | #ifndef LFS_CONFIG
11 |
12 |
13 | // Software CRC implementation with small lookup table
14 | uint32_t lfs_crc(uint32_t crc, const void *buffer, size_t size) {
15 | static const uint32_t rtable[16] = {
16 | 0x00000000, 0x1db71064, 0x3b6e20c8, 0x26d930ac,
17 | 0x76dc4190, 0x6b6b51f4, 0x4db26158, 0x5005713c,
18 | 0xedb88320, 0xf00f9344, 0xd6d6a3e8, 0xcb61b38c,
19 | 0x9b64c2b0, 0x86d3d2d4, 0xa00ae278, 0xbdbdf21c,
20 | };
21 |
22 | const uint8_t *data = buffer;
23 |
24 | for (size_t i = 0; i < size; i++) {
25 | crc = (crc >> 4) ^ rtable[(crc ^ (data[i] >> 0)) & 0xf];
26 | crc = (crc >> 4) ^ rtable[(crc ^ (data[i] >> 4)) & 0xf];
27 | }
28 |
29 | return crc;
30 | }
31 |
32 |
33 | #endif
34 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/LoRaWAN/LmHandler/Packages/LmhpRemoteMcastSetup.h:
--------------------------------------------------------------------------------
1 | /*!
2 | * \file LmhpRemoteMcastSetup.h
3 | *
4 | * \brief Implements the LoRa-Alliance remote multicast setup package
5 | * Specification: https://lora-alliance.org/sites/default/files/2018-09/remote_multicast_setup_v1.0.0.pdf
6 | *
7 | * \copyright Revised BSD License, see section \ref LICENSE.
8 | *
9 | * \code
10 | * ______ _
11 | * / _____) _ | |
12 | * ( (____ _____ ____ _| |_ _____ ____| |__
13 | * \____ \| ___ | (_ _) ___ |/ ___) _ \
14 | * _____) ) ____| | | || |_| ____( (___| | | |
15 | * (______/|_____)_|_|_| \__)_____)\____)_| |_|
16 | * (C)2013-2018 Semtech
17 | *
18 | * \endcode
19 | *
20 | * \author Miguel Luis ( Semtech )
21 | */
22 | #ifndef __LMHP_REMOTE_MCAST_SETUP_H__
23 | #define __LMHP_REMOTE_MCAST_SETUP_H__
24 |
25 | #include "LoRaMac.h"
26 | #include "LmHandlerTypes.h"
27 | #include "LmhPackage.h"
28 |
29 | /*!
30 | * Remote multicast setup package identifier.
31 | *
32 | * \remark This value must be unique amongst the packages
33 | */
34 | #define PACKAGE_ID_REMOTE_MCAST_SETUP 2
35 |
36 | LmhPackage_t *LmhpRemoteMcastSetupPackageFactory( void );
37 |
38 | #endif // __LMHP_REMOTE_MCAST_SETUP_H__
39 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/littlefs/LICENSE.md:
--------------------------------------------------------------------------------
1 | Copyright (c) 2017, Arm Limited. All rights reserved.
2 |
3 | Redistribution and use in source and binary forms, with or without modification,
4 | are permitted provided that the following conditions are met:
5 |
6 | - Redistributions of source code must retain the above copyright notice, this
7 | list of conditions and the following disclaimer.
8 | - Redistributions in binary form must reproduce the above copyright notice, this
9 | list of conditions and the following disclaimer in the documentation and/or
10 | other materials provided with the distribution.
11 | - Neither the name of ARM nor the names of its contributors may be used to
12 | endorse or promote products derived from this software without specific prior
13 | written permission.
14 |
15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
19 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
22 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/LoRaWAN/LmHandler/Packages/LmhpClockSync.h:
--------------------------------------------------------------------------------
1 | /*!
2 | * \file LmhpClockSync.h
3 | *
4 | * \brief Implements the LoRa-Alliance clock synchronization package
5 | * Specification: https://lora-alliance.org/sites/default/files/2018-09/application_layer_clock_synchronization_v1.0.0.pdf
6 | *
7 | * \copyright Revised BSD License, see section \ref LICENSE.
8 | *
9 | * \code
10 | * ______ _
11 | * / _____) _ | |
12 | * ( (____ _____ ____ _| |_ _____ ____| |__
13 | * \____ \| ___ | (_ _) ___ |/ ___) _ \
14 | * _____) ) ____| | | || |_| ____( (___| | | |
15 | * (______/|_____)_|_|_| \__)_____)\____)_| |_|
16 | * (C)2013-2018 Semtech
17 | *
18 | * \endcode
19 | *
20 | * \author Miguel Luis ( Semtech )
21 | */
22 | #ifndef __LMHP_CLOCK_SYNC_H__
23 | #define __LMHP_CLOCK_SYNC_H__
24 |
25 | #include "LoRaMac.h"
26 | #include "LmHandlerTypes.h"
27 | #include "LmhPackage.h"
28 |
29 | /*!
30 | * Clock sync package identifier.
31 | *
32 | * \remark This value must be unique amongst the packages
33 | */
34 | #define PACKAGE_ID_CLOCK_SYNC 1
35 |
36 | /*!
37 | * Clock sync package parameters
38 | *
39 | * This package doesn't require parameters
40 | */
41 | //typedef struct LmhpClockSyncParams_s
42 | //{
43 | //}LmhpClockSyncParams_t;
44 |
45 | LmhPackage_t *LmhpClockSyncPackageFactory( void );
46 |
47 | LmHandlerErrorStatus_t LmhpClockSyncAppTimeReq( void );
48 |
49 | #endif // __LMHP_CLOCK_SYNC_H__
50 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/LoRaWAN/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Revised BSD License
2 | Copyright Semtech Corporation 2013. All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without
5 | modification, are permitted provided that the following conditions are met:
6 | * Redistributions of source code must retain the above copyright
7 | notice, this list of conditions and the following disclaimer.
8 | * Redistributions in binary form must reproduce the above copyright
9 | notice, this list of conditions and the following disclaimer in the
10 | documentation and/or other materials provided with the distribution.
11 | * Neither the name of the Semtech corporation nor the
12 | names of its contributors may be used to endorse or promote products
13 | derived from this software without specific prior written permission.
14 |
15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 | ARE DISCLAIMED. IN NO EVENT SHALL SEMTECH CORPORATION BE LIABLE FOR ANY DIRECT,
19 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------------
/Middlewares/Third_Party/SubGHz_Phy/LICENSE.txt:
--------------------------------------------------------------------------------
1 | --- Revised BSD License ---
2 | Copyright (c) 2013, SEMTECH S.A.
3 | All rights reserved.
4 |
5 | Redistribution and use in source and binary forms, with or without
6 | modification, are permitted provided that the following conditions are met:
7 | * Redistributions of source code must retain the above copyright
8 | notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above copyright
10 | notice, this list of conditions and the following disclaimer in the
11 | documentation and/or other materials provided with the distribution.
12 | * Neither the name of the Semtech corporation nor the
13 | names of its contributors may be used to endorse or promote products
14 | derived from this software without specific prior written permission.
15 |
16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 | DISCLAIMED. IN NO EVENT SHALL SEMTECH S.A. BE LIABLE FOR ANY
20 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN/Core/Inc/adc.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file adc.h
4 | * @brief This file contains all the function prototypes for
5 | * the adc.c file
6 | ******************************************************************************
7 | * @attention
8 | *
9 | *
© Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __ADC_H__
21 | #define __ADC_H__
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Includes ------------------------------------------------------------------*/
28 | #include "main.h"
29 |
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 |
34 | extern ADC_HandleTypeDef hadc;
35 |
36 | /* USER CODE BEGIN Private defines */
37 |
38 | /* USER CODE END Private defines */
39 |
40 | void MX_ADC_Init(void);
41 |
42 | /* USER CODE BEGIN Prototypes */
43 |
44 | /* USER CODE END Prototypes */
45 |
46 | #ifdef __cplusplus
47 | }
48 | #endif
49 |
50 | #endif /* __ADC_H__ */
51 |
52 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
53 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN/Core/Inc/rtc.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file rtc.h
4 | * @brief This file contains all the function prototypes for
5 | * the rtc.c file
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __RTC_H__
21 | #define __RTC_H__
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Includes ------------------------------------------------------------------*/
28 | #include "main.h"
29 |
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 |
34 | extern RTC_HandleTypeDef hrtc;
35 |
36 | /* USER CODE BEGIN Private defines */
37 |
38 | /* USER CODE END Private defines */
39 |
40 | void MX_RTC_Init(void);
41 |
42 | /* USER CODE BEGIN Prototypes */
43 |
44 | /* USER CODE END Prototypes */
45 |
46 | #ifdef __cplusplus
47 | }
48 | #endif
49 |
50 | #endif /* __RTC_H__ */
51 |
52 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
53 |
--------------------------------------------------------------------------------
/Projects/Applications/LoRaWAN/LoRaWAN_End_Node/Core/Inc/adc.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file adc.h
4 | * @brief This file contains all the function prototypes for
5 | * the adc.c file
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __ADC_H__
21 | #define __ADC_H__
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Includes ------------------------------------------------------------------*/
28 | #include "main.h"
29 |
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 |
34 | extern ADC_HandleTypeDef hadc;
35 |
36 | /* USER CODE BEGIN Private defines */
37 |
38 | /* USER CODE END Private defines */
39 |
40 | void MX_ADC_Init(void);
41 |
42 | /* USER CODE BEGIN Prototypes */
43 |
44 | /* USER CODE END Prototypes */
45 |
46 | #ifdef __cplusplus
47 | }
48 | #endif
49 |
50 | #endif /* __ADC_H__ */
51 |
52 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
53 |
--------------------------------------------------------------------------------
/Projects/Applications/LoRaWAN/LoRaWAN_End_Node/Core/Inc/rtc.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file rtc.h
4 | * @brief This file contains all the function prototypes for
5 | * the rtc.c file
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __RTC_H__
21 | #define __RTC_H__
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Includes ------------------------------------------------------------------*/
28 | #include "main.h"
29 |
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 |
34 | extern RTC_HandleTypeDef hrtc;
35 |
36 | /* USER CODE BEGIN Private defines */
37 |
38 | /* USER CODE END Private defines */
39 |
40 | void MX_RTC_Init(void);
41 |
42 | /* USER CODE BEGIN Prototypes */
43 |
44 | /* USER CODE END Prototypes */
45 |
46 | #ifdef __cplusplus
47 | }
48 | #endif
49 |
50 | #endif /* __RTC_H__ */
51 |
52 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
53 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN_AT/Core/Inc/adc.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file adc.h
4 | * @brief This file contains all the function prototypes for
5 | * the adc.c file
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __ADC_H__
21 | #define __ADC_H__
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Includes ------------------------------------------------------------------*/
28 | #include "main.h"
29 |
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 |
34 | extern ADC_HandleTypeDef hadc;
35 |
36 | /* USER CODE BEGIN Private defines */
37 |
38 | /* USER CODE END Private defines */
39 |
40 | void MX_ADC_Init(void);
41 |
42 | /* USER CODE BEGIN Prototypes */
43 |
44 | /* USER CODE END Prototypes */
45 |
46 | #ifdef __cplusplus
47 | }
48 | #endif
49 |
50 | #endif /* __ADC_H__ */
51 |
52 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
53 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN_AT/Core/Inc/rtc.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file rtc.h
4 | * @brief This file contains all the function prototypes for
5 | * the rtc.c file
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __RTC_H__
21 | #define __RTC_H__
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Includes ------------------------------------------------------------------*/
28 | #include "main.h"
29 |
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 |
34 | extern RTC_HandleTypeDef hrtc;
35 |
36 | /* USER CODE BEGIN Private defines */
37 |
38 | /* USER CODE END Private defines */
39 |
40 | void MX_RTC_Init(void);
41 |
42 | /* USER CODE BEGIN Prototypes */
43 |
44 | /* USER CODE END Prototypes */
45 |
46 | #ifdef __cplusplus
47 | }
48 | #endif
49 |
50 | #endif /* __RTC_H__ */
51 |
52 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
53 |
--------------------------------------------------------------------------------
/Projects/Applications/LoRaWAN/LoRaWAN_End_Node/Core/Inc/usart.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file usart.h
4 | * @brief This file contains all the function prototypes for
5 | * the usart.c file
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __USART_H__
21 | #define __USART_H__
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Includes ------------------------------------------------------------------*/
28 | #include "main.h"
29 |
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 |
34 | extern UART_HandleTypeDef huart1;
35 |
36 | /* USER CODE BEGIN Private defines */
37 |
38 | /* USER CODE END Private defines */
39 |
40 | void MX_USART1_UART_Init(void);
41 |
42 | /* USER CODE BEGIN Prototypes */
43 |
44 | /* USER CODE END Prototypes */
45 |
46 | #ifdef __cplusplus
47 | }
48 | #endif
49 |
50 | #endif /* __USART_H__ */
51 |
52 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
53 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/SubGHz_Phy/Conf/subghz_template.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file subghz_template.h
4 | * @brief This file contains all the function prototypes for
5 | * the subghz.c file
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2020 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __SUBGHZ_H__
21 | #define __SUBGHZ_H__
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Includes ------------------------------------------------------------------*/
28 | #include "main.h"
29 |
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 |
34 | extern SUBGHZ_HandleTypeDef hsubghz;
35 |
36 | /* USER CODE BEGIN Private defines */
37 |
38 | /* USER CODE END Private defines */
39 |
40 | void MX_SUBGHZ_Init(void);
41 |
42 | /* USER CODE BEGIN Prototypes */
43 |
44 | /* USER CODE END Prototypes */
45 |
46 | #ifdef __cplusplus
47 | }
48 | #endif
49 |
50 | #endif /* __SUBGHZ_H__ */
51 |
52 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
53 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN/Core/Inc/subghz.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file subghz.h
4 | * @brief This file contains all the function prototypes for
5 | * the subghz.c file
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __SUBGHZ_H__
21 | #define __SUBGHZ_H__
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Includes ------------------------------------------------------------------*/
28 | #include "main.h"
29 |
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 |
34 | extern SUBGHZ_HandleTypeDef hsubghz;
35 |
36 | /* USER CODE BEGIN Private defines */
37 |
38 | /* USER CODE END Private defines */
39 |
40 | void MX_SUBGHZ_Init(void);
41 |
42 | /* USER CODE BEGIN Prototypes */
43 |
44 | /* USER CODE END Prototypes */
45 |
46 | #ifdef __cplusplus
47 | }
48 | #endif
49 |
50 | #endif /* __SUBGHZ_H__ */
51 |
52 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
53 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN_AT/Core/Inc/subghz.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file subghz.h
4 | * @brief This file contains all the function prototypes for
5 | * the subghz.c file
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __SUBGHZ_H__
21 | #define __SUBGHZ_H__
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Includes ------------------------------------------------------------------*/
28 | #include "main.h"
29 |
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 |
34 | extern SUBGHZ_HandleTypeDef hsubghz;
35 |
36 | /* USER CODE BEGIN Private defines */
37 |
38 | /* USER CODE END Private defines */
39 |
40 | void MX_SUBGHZ_Init(void);
41 |
42 | /* USER CODE BEGIN Prototypes */
43 |
44 | /* USER CODE END Prototypes */
45 |
46 | #ifdef __cplusplus
47 | }
48 | #endif
49 |
50 | #endif /* __SUBGHZ_H__ */
51 |
52 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
53 |
--------------------------------------------------------------------------------
/Projects/Applications/LoRaWAN/LoRaWAN_End_Node/Core/Inc/subghz.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file subghz.h
4 | * @brief This file contains all the function prototypes for
5 | * the subghz.c file
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __SUBGHZ_H__
21 | #define __SUBGHZ_H__
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Includes ------------------------------------------------------------------*/
28 | #include "main.h"
29 |
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 |
34 | extern SUBGHZ_HandleTypeDef hsubghz;
35 |
36 | /* USER CODE BEGIN Private defines */
37 |
38 | /* USER CODE END Private defines */
39 |
40 | void MX_SUBGHZ_Init(void);
41 |
42 | /* USER CODE BEGIN Prototypes */
43 |
44 | /* USER CODE END Prototypes */
45 |
46 | #ifdef __cplusplus
47 | }
48 | #endif
49 |
50 | #endif /* __SUBGHZ_H__ */
51 |
52 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
53 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN/Core/Inc/dma.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file dma.h
4 | * @brief This file contains all the function prototypes for
5 | * the dma.c file
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __DMA_H__
21 | #define __DMA_H__
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Includes ------------------------------------------------------------------*/
28 | #include "main.h"
29 |
30 | /* DMA memory to memory transfer handles -------------------------------------*/
31 |
32 | /* USER CODE BEGIN Includes */
33 |
34 | /* USER CODE END Includes */
35 |
36 | /* USER CODE BEGIN Private defines */
37 |
38 | /* USER CODE END Private defines */
39 |
40 | void MX_DMA_Init(void);
41 |
42 | /* USER CODE BEGIN Prototypes */
43 |
44 | /* USER CODE END Prototypes */
45 |
46 | #ifdef __cplusplus
47 | }
48 | #endif
49 |
50 | #endif /* __DMA_H__ */
51 |
52 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
53 |
--------------------------------------------------------------------------------
/Projects/Applications/LoRaWAN/LoRaWAN_End_Node/Core/Inc/dma.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file dma.h
4 | * @brief This file contains all the function prototypes for
5 | * the dma.c file
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __DMA_H__
21 | #define __DMA_H__
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Includes ------------------------------------------------------------------*/
28 | #include "main.h"
29 |
30 | /* DMA memory to memory transfer handles -------------------------------------*/
31 |
32 | /* USER CODE BEGIN Includes */
33 |
34 | /* USER CODE END Includes */
35 |
36 | /* USER CODE BEGIN Private defines */
37 |
38 | /* USER CODE END Private defines */
39 |
40 | void MX_DMA_Init(void);
41 |
42 | /* USER CODE BEGIN Prototypes */
43 |
44 | /* USER CODE END Prototypes */
45 |
46 | #ifdef __cplusplus
47 | }
48 | #endif
49 |
50 | #endif /* __DMA_H__ */
51 |
52 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
53 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN_AT/Core/Inc/dma.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file dma.h
4 | * @brief This file contains all the function prototypes for
5 | * the dma.c file
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __DMA_H__
21 | #define __DMA_H__
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Includes ------------------------------------------------------------------*/
28 | #include "main.h"
29 |
30 | /* DMA memory to memory transfer handles -------------------------------------*/
31 |
32 | /* USER CODE BEGIN Includes */
33 |
34 | /* USER CODE END Includes */
35 |
36 | /* USER CODE BEGIN Private defines */
37 |
38 | /* USER CODE END Private defines */
39 |
40 | void MX_DMA_Init(void);
41 |
42 | /* USER CODE BEGIN Prototypes */
43 |
44 | /* USER CODE END Prototypes */
45 |
46 | #ifdef __cplusplus
47 | }
48 | #endif
49 |
50 | #endif /* __DMA_H__ */
51 |
52 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
53 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN/Core/Inc/usart.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file usart.h
4 | * @brief This file contains all the function prototypes for
5 | * the usart.c file
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __USART_H__
21 | #define __USART_H__
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Includes ------------------------------------------------------------------*/
28 | #include "main.h"
29 |
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 | extern UART_HandleTypeDef huart1;
34 | extern UART_HandleTypeDef huart2;
35 |
36 | /* USER CODE BEGIN Private defines */
37 |
38 | /* USER CODE END Private defines */
39 | void MX_USART1_UART_Init(void);
40 | void MX_USART2_UART_Init(void);
41 |
42 | /* USER CODE BEGIN Prototypes */
43 |
44 | /* USER CODE END Prototypes */
45 |
46 | #ifdef __cplusplus
47 | }
48 | #endif
49 |
50 | #endif /* __USART_H__ */
51 |
52 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
53 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN_AT/Core/Inc/usart.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file usart.h
4 | * @brief This file contains all the function prototypes for
5 | * the usart.c file
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __USART_H__
21 | #define __USART_H__
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Includes ------------------------------------------------------------------*/
28 | #include "main.h"
29 |
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 | extern UART_HandleTypeDef huart1;
34 | extern UART_HandleTypeDef huart2;
35 |
36 | /* USER CODE BEGIN Private defines */
37 |
38 | /* USER CODE END Private defines */
39 | void MX_USART1_UART_Init(void);
40 | void MX_USART2_UART_Init(void);
41 |
42 | /* USER CODE BEGIN Prototypes */
43 |
44 | /* USER CODE END Prototypes */
45 |
46 | #ifdef __cplusplus
47 | }
48 | #endif
49 |
50 | #endif /* __USART_H__ */
51 |
52 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
53 |
--------------------------------------------------------------------------------
/Drivers/CMSIS/Include/cmsis_version.h:
--------------------------------------------------------------------------------
1 | /**************************************************************************//**
2 | * @file cmsis_version.h
3 | * @brief CMSIS Core(M) Version definitions
4 | * @version V5.0.3
5 | * @date 24. June 2019
6 | ******************************************************************************/
7 | /*
8 | * Copyright (c) 2009-2019 ARM Limited. All rights reserved.
9 | *
10 | * SPDX-License-Identifier: Apache-2.0
11 | *
12 | * Licensed under the Apache License, Version 2.0 (the License); you may
13 | * not use this file except in compliance with the License.
14 | * You may obtain a copy of the License at
15 | *
16 | * www.apache.org/licenses/LICENSE-2.0
17 | *
18 | * Unless required by applicable law or agreed to in writing, software
19 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT
20 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 | * See the License for the specific language governing permissions and
22 | * limitations under the License.
23 | */
24 |
25 | #if defined ( __ICCARM__ )
26 | #pragma system_include /* treat file as system include file for MISRA check */
27 | #elif defined (__clang__)
28 | #pragma clang system_header /* treat file as system include file */
29 | #endif
30 |
31 | #ifndef __CMSIS_VERSION_H
32 | #define __CMSIS_VERSION_H
33 |
34 | /* CMSIS Version definitions */
35 | #define __CM_CMSIS_VERSION_MAIN ( 5U) /*!< [31:16] CMSIS Core(M) main version */
36 | #define __CM_CMSIS_VERSION_SUB ( 3U) /*!< [15:0] CMSIS Core(M) sub version */
37 | #define __CM_CMSIS_VERSION ((__CM_CMSIS_VERSION_MAIN << 16U) | \
38 | __CM_CMSIS_VERSION_SUB ) /*!< CMSIS Core(M) version number */
39 | #endif
40 |
--------------------------------------------------------------------------------
/Drivers/BSP/STM32WLxx_LoRa_E5_mini/stm32wlxx_LoRa_E5_mini_errno.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file stm32wlxx_LoRa_E5_mini_errno.h
4 | * @author MCD Application Team
5 | * @brief Error Code.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * Copyright (c) 2020(-2021) STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software is licensed under terms that can be found in the LICENSE file
13 | * in the root directory of this software component.
14 | * If no LICENSE file comes with this software, it is provided AS-IS.
15 | *
16 | ******************************************************************************
17 | */
18 |
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef STM32WLXX_LORA_E5_MINI_ERRNO_H
21 | #define STM32WLXX_LORA_E5_MINI_ERRNO_H
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Common Error codes */
28 | #define BSP_ERROR_NONE 0
29 | #define BSP_ERROR_NO_INIT -1
30 | #define BSP_ERROR_WRONG_PARAM -2
31 | #define BSP_ERROR_BUSY -3
32 | #define BSP_ERROR_PERIPH_FAILURE -4
33 | #define BSP_ERROR_COMPONENT_FAILURE -5
34 | #define BSP_ERROR_UNKNOWN_FAILURE -6
35 | #define BSP_ERROR_UNKNOWN_COMPONENT -7
36 | #define BSP_ERROR_BUS_FAILURE -8
37 | #define BSP_ERROR_CLOCK_FAILURE -9
38 | #define BSP_ERROR_MSP_FAILURE -10
39 | #define BSP_ERROR_FEATURE_NOT_SUPPORTED -11
40 |
41 | #ifdef __cplusplus
42 | }
43 | #endif
44 |
45 | #endif /* STM32WLXX_LoRa_E5_mini_ERRNO_H */
46 |
47 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
48 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN/Core/Src/dma.c:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file dma.c
4 | * @brief This file provides code for the configuration
5 | * of all the requested memory to memory DMA transfers.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 |
20 | /* Includes ------------------------------------------------------------------*/
21 | #include "dma.h"
22 |
23 | /* USER CODE BEGIN 0 */
24 |
25 | /* USER CODE END 0 */
26 |
27 | /*----------------------------------------------------------------------------*/
28 | /* Configure DMA */
29 | /*----------------------------------------------------------------------------*/
30 |
31 | /* USER CODE BEGIN 1 */
32 |
33 | /* USER CODE END 1 */
34 |
35 | /**
36 | * Enable DMA controller clock
37 | */
38 | void MX_DMA_Init(void)
39 | {
40 |
41 | /* DMA controller clock enable */
42 | __HAL_RCC_DMAMUX1_CLK_ENABLE();
43 | __HAL_RCC_DMA1_CLK_ENABLE();
44 |
45 | /* DMA interrupt init */
46 | /* DMA1_Channel5_IRQn interrupt configuration */
47 | HAL_NVIC_SetPriority(DMA1_Channel5_IRQn, 2, 0);
48 | HAL_NVIC_EnableIRQ(DMA1_Channel5_IRQn);
49 |
50 | }
51 |
52 | /* USER CODE BEGIN 2 */
53 |
54 | /* USER CODE END 2 */
55 |
56 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
57 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN_AT/Core/Src/dma.c:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file dma.c
4 | * @brief This file provides code for the configuration
5 | * of all the requested memory to memory DMA transfers.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 |
20 | /* Includes ------------------------------------------------------------------*/
21 | #include "dma.h"
22 |
23 | /* USER CODE BEGIN 0 */
24 |
25 | /* USER CODE END 0 */
26 |
27 | /*----------------------------------------------------------------------------*/
28 | /* Configure DMA */
29 | /*----------------------------------------------------------------------------*/
30 |
31 | /* USER CODE BEGIN 1 */
32 |
33 | /* USER CODE END 1 */
34 |
35 | /**
36 | * Enable DMA controller clock
37 | */
38 | void MX_DMA_Init(void)
39 | {
40 |
41 | /* DMA controller clock enable */
42 | __HAL_RCC_DMAMUX1_CLK_ENABLE();
43 | __HAL_RCC_DMA1_CLK_ENABLE();
44 |
45 | /* DMA interrupt init */
46 | /* DMA1_Channel5_IRQn interrupt configuration */
47 | HAL_NVIC_SetPriority(DMA1_Channel5_IRQn, 2, 0);
48 | HAL_NVIC_EnableIRQ(DMA1_Channel5_IRQn);
49 |
50 | }
51 |
52 | /* USER CODE BEGIN 2 */
53 |
54 | /* USER CODE END 2 */
55 |
56 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
57 |
--------------------------------------------------------------------------------
/Projects/Applications/LoRaWAN/LoRaWAN_End_Node/Core/Src/dma.c:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file dma.c
4 | * @brief This file provides code for the configuration
5 | * of all the requested memory to memory DMA transfers.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 |
20 | /* Includes ------------------------------------------------------------------*/
21 | #include "dma.h"
22 |
23 | /* USER CODE BEGIN 0 */
24 |
25 | /* USER CODE END 0 */
26 |
27 | /*----------------------------------------------------------------------------*/
28 | /* Configure DMA */
29 | /*----------------------------------------------------------------------------*/
30 |
31 | /* USER CODE BEGIN 1 */
32 |
33 | /* USER CODE END 1 */
34 |
35 | /**
36 | * Enable DMA controller clock
37 | */
38 | void MX_DMA_Init(void)
39 | {
40 |
41 | /* DMA controller clock enable */
42 | __HAL_RCC_DMAMUX1_CLK_ENABLE();
43 | __HAL_RCC_DMA1_CLK_ENABLE();
44 |
45 | /* DMA interrupt init */
46 | /* DMA1_Channel5_IRQn interrupt configuration */
47 | HAL_NVIC_SetPriority(DMA1_Channel5_IRQn, 2, 0);
48 | HAL_NVIC_EnableIRQ(DMA1_Channel5_IRQn);
49 |
50 | }
51 |
52 | /* USER CODE BEGIN 2 */
53 |
54 | /* USER CODE END 2 */
55 |
56 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
57 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/LoRaWAN/LmHandler/Packages/LmhpDataDistribution.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file LmhpDataDistribution.h
4 | * @author MCD Application Team
5 | * @brief Function prototypes for LoRaMac Data distribution agent
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2020 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 | #ifndef __LMHP_DATA_DISTRIBUTION_H__
20 | #define __LMHP_DATA_DISTRIBUTION_H__
21 |
22 | #ifdef __cplusplus
23 | extern "C" {
24 | #endif
25 |
26 | /* Includes ------------------------------------------------------------------*/
27 | #include "LmhPackage.h"
28 |
29 | /* Exported defines ----------------------------------------------------------*/
30 | /* Exported constants --------------------------------------------------------*/
31 | /* Exported types ------------------------------------------------------------*/
32 | /* External variables --------------------------------------------------------*/
33 | /* Exported macros -----------------------------------------------------------*/
34 | /* Exported functions ------------------------------------------------------- */
35 | LmHandlerErrorStatus_t LmhpDataDistributionInit(void);
36 |
37 | LmHandlerErrorStatus_t LmhpDataDistributionPackageRegister(uint8_t id, LmhPackage_t **package);
38 |
39 | #ifdef __cplusplus
40 | }
41 | #endif
42 |
43 | #endif /* __LMHP_DATA_DISTRIBUTION_H__ */
44 |
45 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
46 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/LoRaWAN/LmHandler/Packages/LmhpPackagesRegistration.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file LmhpPackagesRegistration.h
4 | * @author MCD Application Team
5 | * @brief Function prototypes for LoRaMac Packages Registration agent
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2020 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 | #ifndef __LMHP_PACKAGES_REGISTRATION_H__
20 | #define __LMHP_PACKAGES_REGISTRATION_H__
21 |
22 | #ifdef __cplusplus
23 | extern "C" {
24 | #endif
25 |
26 | /* Includes ------------------------------------------------------------------*/
27 | #include "LmhPackage.h"
28 |
29 | /* Exported defines ----------------------------------------------------------*/
30 | /* Exported constants --------------------------------------------------------*/
31 | /* Exported types ------------------------------------------------------------*/
32 | /* External variables --------------------------------------------------------*/
33 | /* Exported macros -----------------------------------------------------------*/
34 | /* Exported functions ------------------------------------------------------- */
35 | LmHandlerErrorStatus_t LmhpPackagesRegistrationInit(void);
36 |
37 | LmHandlerErrorStatus_t LmhpPackagesRegister(uint8_t id, LmhPackage_t **package);
38 |
39 | #ifdef __cplusplus
40 | }
41 | #endif
42 |
43 | #endif /* __LMHP_PACKAGES_REGISTRATION_H__ */
44 |
45 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
46 |
--------------------------------------------------------------------------------
/Drivers/BSP/STM32WLxx_LoRa_E5_mini/stm32wlxx_LoRa_E5_mini_conf_template.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file stm32wlxx_LoRa_E5_mini_conf.h
4 | * @author MCD Application Team
5 | * @brief STM32WLxx_LoRa_E5_mini board configuration file.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * Copyright (c) 2020(-2021) STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software is licensed under terms that can be found in the LICENSE file
13 | * in the root directory of this software component.
14 | * If no LICENSE file comes with this software, it is provided AS-IS.
15 | *
16 | ******************************************************************************
17 | */
18 |
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef STM32WLXX_LORA_E5_MINI_CONF_H
21 | #define STM32WLXX_LORA_E5_MINI_CONF_H
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Includes ------------------------------------------------------------------*/
28 | #include "stm32wlxx_hal.h"
29 |
30 | /** @addtogroup BSP
31 | * @{
32 | */
33 |
34 | /** @addtogroup STM32WLXX_LoRa_E5_mini
35 | * @{
36 | */
37 |
38 | /** @defgroup STM32WLXX_LoRa_E5_mini_CONFIG CONFIG
39 | * @{
40 | */
41 |
42 | /** @defgroup STM32WLXX_LoRa_E5_mini_CONFIG_Exported_Constants Exported Constants
43 | * @{
44 | */
45 | /* COM usage define */
46 | #define USE_BSP_COM_FEATURE 0U
47 |
48 | /* COM log define */
49 | #define USE_COM_LOG 0U
50 |
51 | /* IRQ priorities */
52 | #define BSP_BUTTON_SWx_IT_PRIORITY 15U
53 |
54 | /**
55 | * @}
56 | */
57 |
58 | /**
59 | * @}
60 | */
61 |
62 | /**
63 | * @}
64 | */
65 |
66 | /**
67 | * @}
68 | */
69 |
70 | #ifdef __cplusplus
71 | }
72 | #endif
73 |
74 | #endif /* STM32WLXX_LoRa_E5_mini_CONF_H */
75 |
76 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
77 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/LoRaWAN/Mac/LoRaMacTest.h:
--------------------------------------------------------------------------------
1 | /*!
2 | * \file LoRaMacTest.h
3 | *
4 | * \brief LoRa MAC layer test function implementation
5 | *
6 | * \copyright Revised BSD License, see section \ref LICENSE.
7 | *
8 | * \code
9 | * ______ _
10 | * / _____) _ | |
11 | * ( (____ _____ ____ _| |_ _____ ____| |__
12 | * \____ \| ___ | (_ _) ___ |/ ___) _ \
13 | * _____) ) ____| | | || |_| ____( (___| | | |
14 | * (______/|_____)_|_|_| \__)_____)\____)_| |_|
15 | * (C)2013-2017 Semtech
16 | *
17 | * ___ _____ _ ___ _ _____ ___ ___ ___ ___
18 | * / __|_ _/_\ / __| |/ / __/ _ \| _ \/ __| __|
19 | * \__ \ | |/ _ \ (__| ' <| _| (_) | / (__| _|
20 | * |___/ |_/_/ \_\___|_|\_\_| \___/|_|_\\___|___|
21 | * embedded.connectivity.solutions===============
22 | *
23 | * \endcode
24 | *
25 | * \author Miguel Luis ( Semtech )
26 | *
27 | * \author Gregory Cristian ( Semtech )
28 | *
29 | * \author Daniel Jaeckle ( STACKFORCE )
30 | *
31 | * \defgroup LORAMACTEST LoRa MAC layer test function implementation
32 | * This module specifies the API implementation of test function of the LoRaMAC layer.
33 | * The functions in this file are only for testing purposes only.
34 | * \{
35 | */
36 | #ifndef __LORAMACTEST_H__
37 | #define __LORAMACTEST_H__
38 |
39 | #ifdef __cplusplus
40 | extern "C"
41 | {
42 | #endif
43 |
44 | #include
45 |
46 | /*!
47 | * \brief Enabled or disables the duty cycle
48 | *
49 | * \details This is a test function. It shall be used for testing purposes only.
50 | * Changing this attribute may lead to a non-conformance LoRaMac operation.
51 | *
52 | * \param [IN] enable - Enabled or disables the duty cycle
53 | */
54 | void LoRaMacTestSetDutyCycleOn( bool enable );
55 |
56 | /*! \} defgroup LORAMACTEST */
57 |
58 | #ifdef __cplusplus
59 | }
60 | #endif
61 |
62 | #endif // __LORAMACTEST_H__
63 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/LoRaWAN/LmHandler/Packages/LmhpFirmwareManagement.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file LmhpFirmwareManagement.h
4 | * @author MCD Application Team
5 | * @brief Implements the LoRa-Alliance Firmware Management package
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2020 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 | #ifndef __LMHP_FIRMWARE_MANAGEMENT_H__
20 | #define __LMHP_FIRMWARE_MANAGEMENT_H__
21 |
22 | #ifdef __cplusplus
23 | extern "C" {
24 | #endif
25 |
26 | /* Includes ------------------------------------------------------------------*/
27 | #include "LmhPackage.h"
28 |
29 | /* Exported defines ----------------------------------------------------------*/
30 | /*!
31 | * Remote multicast setup package identifier.
32 | *
33 | * \remark This value must be unique amongst the packages
34 | */
35 | #define PACKAGE_ID_FIRMWARE_MANAGEMENT 4
36 |
37 | /* Exported constants --------------------------------------------------------*/
38 | /* Exported types ------------------------------------------------------------*/
39 | /* External variables --------------------------------------------------------*/
40 | /* Exported macros -----------------------------------------------------------*/
41 | /* Exported functions ------------------------------------------------------- */
42 | LmhPackage_t *LmhpFirmwareManagementPackageFactory(void);
43 |
44 |
45 | #ifdef __cplusplus
46 | }
47 | #endif
48 |
49 | #endif /* __LMHP_FIRMWARE_MANAGEMENT_H__ */
50 |
51 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
52 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/littlefs/scripts/prefix.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python2
2 |
3 | # This script replaces prefixes of files, and symbols in that file.
4 | # Useful for creating different versions of the codebase that don't
5 | # conflict at compile time.
6 | #
7 | # example:
8 | # $ ./scripts/prefix.py lfs2
9 |
10 | import os
11 | import os.path
12 | import re
13 | import glob
14 | import itertools
15 | import tempfile
16 | import shutil
17 | import subprocess
18 |
19 | DEFAULT_PREFIX = "lfs"
20 |
21 | def subn(from_prefix, to_prefix, name):
22 | name, count1 = re.subn('\\b'+from_prefix, to_prefix, name)
23 | name, count2 = re.subn('\\b'+from_prefix.upper(), to_prefix.upper(), name)
24 | name, count3 = re.subn('\\B-D'+from_prefix.upper(),
25 | '-D'+to_prefix.upper(), name)
26 | return name, count1+count2+count3
27 |
28 | def main(from_prefix, to_prefix=None, files=None):
29 | if not to_prefix:
30 | from_prefix, to_prefix = DEFAULT_PREFIX, from_prefix
31 |
32 | if not files:
33 | files = subprocess.check_output([
34 | 'git', 'ls-tree', '-r', '--name-only', 'HEAD']).split()
35 |
36 | for oldname in files:
37 | # Rename any matching file names
38 | newname, namecount = subn(from_prefix, to_prefix, oldname)
39 | if namecount:
40 | subprocess.check_call(['git', 'mv', oldname, newname])
41 |
42 | # Rename any prefixes in file
43 | count = 0
44 | with open(newname+'~', 'w') as tempf:
45 | with open(newname) as newf:
46 | for line in newf:
47 | line, n = subn(from_prefix, to_prefix, line)
48 | count += n
49 | tempf.write(line)
50 | shutil.copystat(newname, newname+'~')
51 | os.rename(newname+'~', newname)
52 | subprocess.check_call(['git', 'add', newname])
53 |
54 | # Summary
55 | print '%s: %d replacements' % (
56 | '%s -> %s' % (oldname, newname) if namecount else oldname,
57 | count)
58 |
59 | if __name__ == "__main__":
60 | import sys
61 | sys.exit(main(*sys.argv[1:]))
62 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/littlefs/bd/lfs_rambd.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Block device emulated in RAM
3 | *
4 | * Copyright (c) 2017, Arm Limited. All rights reserved.
5 | * SPDX-License-Identifier: BSD-3-Clause
6 | */
7 | #ifndef LFS_RAMBD_H
8 | #define LFS_RAMBD_H
9 |
10 | #include "lfs.h"
11 | #include "lfs_util.h"
12 |
13 | #ifdef __cplusplus
14 | extern "C"
15 | {
16 | #endif
17 |
18 |
19 | // Block device specific tracing
20 | #ifdef LFS_RAMBD_YES_TRACE
21 | #define LFS_RAMBD_TRACE(...) LFS_TRACE(__VA_ARGS__)
22 | #else
23 | #define LFS_RAMBD_TRACE(...)
24 | #endif
25 |
26 | // rambd config (optional)
27 | struct lfs_rambd_config {
28 | // 8-bit erase value to simulate erasing with. -1 indicates no erase
29 | // occurs, which is still a valid block device
30 | int32_t erase_value;
31 |
32 | // Optional statically allocated buffer for the block device.
33 | void *buffer;
34 | };
35 |
36 | // rambd state
37 | typedef struct lfs_rambd {
38 | uint8_t *buffer;
39 | const struct lfs_rambd_config *cfg;
40 | } lfs_rambd_t;
41 |
42 |
43 | // Create a RAM block device using the geometry in lfs_config
44 | int lfs_rambd_create(const struct lfs_config *cfg);
45 | int lfs_rambd_createcfg(const struct lfs_config *cfg,
46 | const struct lfs_rambd_config *bdcfg);
47 |
48 | // Clean up memory associated with block device
49 | int lfs_rambd_destroy(const struct lfs_config *cfg);
50 |
51 | // Read a block
52 | int lfs_rambd_read(const struct lfs_config *cfg, lfs_block_t block,
53 | lfs_off_t off, void *buffer, lfs_size_t size);
54 |
55 | // Program a block
56 | //
57 | // The block must have previously been erased.
58 | int lfs_rambd_prog(const struct lfs_config *cfg, lfs_block_t block,
59 | lfs_off_t off, const void *buffer, lfs_size_t size);
60 |
61 | // Erase a block
62 | //
63 | // A block must be erased before being programmed. The
64 | // state of an erased block is undefined.
65 | int lfs_rambd_erase(const struct lfs_config *cfg, lfs_block_t block);
66 |
67 | // Sync the block device
68 | int lfs_rambd_sync(const struct lfs_config *cfg);
69 |
70 |
71 | #ifdef __cplusplus
72 | } /* extern "C" */
73 | #endif
74 |
75 | #endif
76 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/LoRaWAN/LmHandler/Packages/LmhpCompliance.h:
--------------------------------------------------------------------------------
1 | /*!
2 | * \file LmhpCompliance.h
3 | *
4 | * \brief Implements the LoRa-Alliance certification protocol handling
5 | *
6 | * \copyright Revised BSD License, see section \ref LICENSE.
7 | *
8 | * \code
9 | * ______ _
10 | * / _____) _ | |
11 | * ( (____ _____ ____ _| |_ _____ ____| |__
12 | * \____ \| ___ | (_ _) ___ |/ ___) _ \
13 | * _____) ) ____| | | || |_| ____( (___| | | |
14 | * (______/|_____)_|_|_| \__)_____)\____)_| |_|
15 | * (C)2013-2018 Semtech
16 | *
17 | * \endcode
18 | *
19 | * \author Miguel Luis ( Semtech )
20 | */
21 | #ifndef __LMHP_COMPLIANCE__
22 | #define __LMHP_COMPLIANCE__
23 |
24 | #include "LoRaMac.h"
25 | #include "LmHandlerTypes.h"
26 | #include "LmhPackage.h"
27 |
28 | /*!
29 | * Compliance package identifier.
30 | *
31 | * \remark This value must be unique amongst the packages
32 | */
33 | #define PACKAGE_ID_COMPLIANCE 0
34 |
35 | /*!
36 | * Compliance test protocol handler parameters
37 | */
38 | typedef struct LmhpComplianceParams_s
39 | {
40 | /*!
41 | * Holds the ADR state
42 | */
43 | bool AdrEnabled;
44 | /*!
45 | * LoRaWAN ETSI duty cycle control enable/disable
46 | *
47 | * \remark Please note that ETSI mandates duty cycled transmissions. Use only for test purposes
48 | */
49 | bool DutyCycleEnabled;
50 | /*!
51 | * Stops unnecessary peripherals.
52 | *
53 | * \remark Use for the compliance tests protocol handling in order to
54 | * reduce the power consumption.
55 | */
56 | void ( *StopPeripherals )( void );
57 | /*!
58 | * Starts previously stopped peripherals.
59 | *
60 | * \remark Use for the compliance tests protocol handling in order to
61 | * reduce the power consumption.
62 | */
63 | void ( *StartPeripherals )( void );
64 | }LmhpComplianceParams_t;
65 |
66 | LmhPackage_t *LmhpCompliancePackageFactory( void );
67 |
68 | #endif // __LMHP_COMPLIANCE__
69 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/littlefs/bd/lfs_filebd.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Block device emulated in a file
3 | *
4 | * Copyright (c) 2017, Arm Limited. All rights reserved.
5 | * SPDX-License-Identifier: BSD-3-Clause
6 | */
7 | #ifndef LFS_FILEBD_H
8 | #define LFS_FILEBD_H
9 |
10 | #include "lfs.h"
11 | #include "lfs_util.h"
12 |
13 | #ifdef __cplusplus
14 | extern "C"
15 | {
16 | #endif
17 |
18 |
19 | // Block device specific tracing
20 | #ifdef LFS_FILEBD_YES_TRACE
21 | #define LFS_FILEBD_TRACE(...) LFS_TRACE(__VA_ARGS__)
22 | #else
23 | #define LFS_FILEBD_TRACE(...)
24 | #endif
25 |
26 | // filebd config (optional)
27 | struct lfs_filebd_config {
28 | // 8-bit erase value to use for simulating erases. -1 does not simulate
29 | // erases, which can speed up testing by avoiding all the extra block-device
30 | // operations to store the erase value.
31 | int32_t erase_value;
32 | };
33 |
34 | // filebd state
35 | typedef struct lfs_filebd {
36 | int fd;
37 | const struct lfs_filebd_config *cfg;
38 | } lfs_filebd_t;
39 |
40 |
41 | // Create a file block device using the geometry in lfs_config
42 | int lfs_filebd_create(const struct lfs_config *cfg, const char *path);
43 | int lfs_filebd_createcfg(const struct lfs_config *cfg, const char *path,
44 | const struct lfs_filebd_config *bdcfg);
45 |
46 | // Clean up memory associated with block device
47 | int lfs_filebd_destroy(const struct lfs_config *cfg);
48 |
49 | // Read a block
50 | int lfs_filebd_read(const struct lfs_config *cfg, lfs_block_t block,
51 | lfs_off_t off, void *buffer, lfs_size_t size);
52 |
53 | // Program a block
54 | //
55 | // The block must have previously been erased.
56 | int lfs_filebd_prog(const struct lfs_config *cfg, lfs_block_t block,
57 | lfs_off_t off, const void *buffer, lfs_size_t size);
58 |
59 | // Erase a block
60 | //
61 | // A block must be erased before being programmed. The
62 | // state of an erased block is undefined.
63 | int lfs_filebd_erase(const struct lfs_config *cfg, lfs_block_t block);
64 |
65 | // Sync the block device
66 | int lfs_filebd_sync(const struct lfs_config *cfg);
67 |
68 |
69 | #ifdef __cplusplus
70 | } /* extern "C" */
71 | #endif
72 |
73 | #endif
74 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN/LoRaWAN/Target/systime.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file systime.h
5 | * @author MCD Application Team
6 | * @brief Map middleware systime
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2020 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under Ultimate Liberty license
14 | * SLA0044, the "License"; You may not use this file except in compliance with
15 | * the License. You may obtain a copy of the License at:
16 | * www.st.com/SLA0044
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __SYSTIME_H__
24 | #define __SYSTIME_H__
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 | /* Includes ------------------------------------------------------------------*/
31 | #include "stm32_systime.h"
32 | /* USER CODE BEGIN Includes */
33 |
34 | /* USER CODE END Includes */
35 |
36 | /* Exported types ------------------------------------------------------------*/
37 | /* USER CODE BEGIN ET */
38 |
39 | /* USER CODE END ET */
40 |
41 | /* Exported constants --------------------------------------------------------*/
42 | /* USER CODE BEGIN EC */
43 |
44 | /* USER CODE END EC */
45 |
46 | /* External variables --------------------------------------------------------*/
47 | /* USER CODE BEGIN EV */
48 |
49 | /* USER CODE END EV */
50 |
51 | /* Exported macro ------------------------------------------------------------*/
52 | /* USER CODE BEGIN EM */
53 |
54 | /* USER CODE END EM */
55 |
56 | /* Exported functions prototypes ---------------------------------------------*/
57 | /* USER CODE BEGIN EFP */
58 |
59 | /* USER CODE END EFP */
60 |
61 | #ifdef __cplusplus
62 | }
63 | #endif
64 |
65 | #endif /*__SYSTIME_H__*/
66 |
67 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
68 |
--------------------------------------------------------------------------------
/Projects/Applications/LoRaWAN/LoRaWAN_End_Node/LoRaWAN/Target/systime.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file systime.h
5 | * @author MCD Application Team
6 | * @brief Map middleware systime
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2020 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under Ultimate Liberty license
14 | * SLA0044, the "License"; You may not use this file except in compliance with
15 | * the License. You may obtain a copy of the License at:
16 | * www.st.com/SLA0044
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __SYSTIME_H__
24 | #define __SYSTIME_H__
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 | /* Includes ------------------------------------------------------------------*/
31 | #include "stm32_systime.h"
32 | /* USER CODE BEGIN Includes */
33 |
34 | /* USER CODE END Includes */
35 |
36 | /* Exported types ------------------------------------------------------------*/
37 | /* USER CODE BEGIN ET */
38 |
39 | /* USER CODE END ET */
40 |
41 | /* Exported constants --------------------------------------------------------*/
42 | /* USER CODE BEGIN EC */
43 |
44 | /* USER CODE END EC */
45 |
46 | /* External variables --------------------------------------------------------*/
47 | /* USER CODE BEGIN EV */
48 |
49 | /* USER CODE END EV */
50 |
51 | /* Exported macro ------------------------------------------------------------*/
52 | /* USER CODE BEGIN EM */
53 |
54 | /* USER CODE END EM */
55 |
56 | /* Exported functions prototypes ---------------------------------------------*/
57 | /* USER CODE BEGIN EFP */
58 |
59 | /* USER CODE END EFP */
60 |
61 | #ifdef __cplusplus
62 | }
63 | #endif
64 |
65 | #endif /*__SYSTIME_H__*/
66 |
67 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
68 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN_AT/LoRaWAN/Target/systime.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file systime.h
5 | * @author MCD Application Team
6 | * @brief Map middleware systime
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2020 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under Ultimate Liberty license
14 | * SLA0044, the "License"; You may not use this file except in compliance with
15 | * the License. You may obtain a copy of the License at:
16 | * www.st.com/SLA0044
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __SYSTIME_H__
24 | #define __SYSTIME_H__
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 | /* Includes ------------------------------------------------------------------*/
31 | #include "stm32_systime.h"
32 | /* USER CODE BEGIN Includes */
33 |
34 | /* USER CODE END Includes */
35 |
36 | /* Exported types ------------------------------------------------------------*/
37 | /* USER CODE BEGIN ET */
38 |
39 | /* USER CODE END ET */
40 |
41 | /* Exported constants --------------------------------------------------------*/
42 | /* USER CODE BEGIN EC */
43 |
44 | /* USER CODE END EC */
45 |
46 | /* External variables --------------------------------------------------------*/
47 | /* USER CODE BEGIN EV */
48 |
49 | /* USER CODE END EV */
50 |
51 | /* Exported macro ------------------------------------------------------------*/
52 | /* USER CODE BEGIN EM */
53 |
54 | /* USER CODE END EM */
55 |
56 | /* Exported functions prototypes ---------------------------------------------*/
57 | /* USER CODE BEGIN EFP */
58 |
59 | /* USER CODE END EFP */
60 |
61 | #ifdef __cplusplus
62 | }
63 | #endif
64 |
65 | #endif /*__SYSTIME_H__*/
66 |
67 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
68 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/LoRaWAN/LmHandler/NvmDataMgmt.h:
--------------------------------------------------------------------------------
1 | /*!
2 | * \file NvmDataMgmt.h
3 | *
4 | * \brief NVM context management implementation
5 | *
6 | * \copyright Revised BSD License, see section \ref LICENSE.
7 | *
8 | * \code
9 | * ______ _
10 | * / _____) _ | |
11 | * ( (____ _____ ____ _| |_ _____ ____| |__
12 | * \____ \| ___ | (_ _) ___ |/ ___) _ \
13 | * _____) ) ____| | | || |_| ____( (___| | | |
14 | * (______/|_____)_|_|_| \__)_____)\____)_| |_|
15 | * (C)2013-2017 Semtech
16 | *
17 | * ___ _____ _ ___ _ _____ ___ ___ ___ ___
18 | * / __|_ _/_\ / __| |/ / __/ _ \| _ \/ __| __|
19 | * \__ \ | |/ _ \ (__| ' <| _| (_) | / (__| _|
20 | * |___/ |_/_/ \_\___|_|\_\_| \___/|_|_\\___|___|
21 | * embedded.connectivity.solutions===============
22 | *
23 | * \endcode
24 | *
25 | * \author Miguel Luis ( Semtech )
26 | *
27 | * \author Gregory Cristian ( Semtech )
28 | *
29 | * \author Daniel Jaeckle ( STACKFORCE )
30 | *
31 | * \author Johannes Bruder ( STACKFORCE )
32 | *
33 | * \defgroup NVMDATAMGMT NVM context management implementation
34 | * This module implements the NVM context handling
35 | * \{
36 | */
37 | #ifndef __NVMDATAMGMT_H__
38 | #define __NVMDATAMGMT_H__
39 |
40 | /*!
41 | * \brief NVM Management event.
42 | *
43 | * \param [IN] notifyFlags Bitmap which contains the information about modules that
44 | * changed.
45 | */
46 | void NvmDataMgmtEvent( uint16_t notifyFlags );
47 |
48 | /*!
49 | * \brief Function which stores the MAC data into NVM, if required.
50 | *
51 | * \retval Number of bytes which were stored.
52 | */
53 | uint16_t NvmDataMgmtStore( void );
54 |
55 | /*!
56 | * \brief Function which restores the MAC data from NVM, if required.
57 | *
58 | * \retval Number of bytes which were restored.
59 | */
60 | uint16_t NvmDataMgmtRestore(void );
61 |
62 | /*!
63 | * \brief Resets the NVM data.
64 | *
65 | * \retval Returns true, if successful.
66 | */
67 | bool NvmDataMgmtFactoryReset( void );
68 |
69 | /* \} */
70 |
71 | #endif // __NVMDATAMGMT_H__
72 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LowPower/Core/Inc/stm32wlxx_it.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file stm32wlxx_it.h
5 | * @brief This file contains the headers of the interrupt handlers.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 | /* USER CODE END Header */
20 |
21 | /* Define to prevent recursive inclusion -------------------------------------*/
22 | #ifndef __STM32WLxx_IT_H
23 | #define __STM32WLxx_IT_H
24 |
25 | #ifdef __cplusplus
26 | extern "C" {
27 | #endif
28 |
29 | /* Private includes ----------------------------------------------------------*/
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 |
34 | /* Exported types ------------------------------------------------------------*/
35 | /* USER CODE BEGIN ET */
36 |
37 | /* USER CODE END ET */
38 |
39 | /* Exported constants --------------------------------------------------------*/
40 | /* USER CODE BEGIN EC */
41 |
42 | /* USER CODE END EC */
43 |
44 | /* Exported macro ------------------------------------------------------------*/
45 | /* USER CODE BEGIN EM */
46 |
47 | /* USER CODE END EM */
48 |
49 | /* Exported functions prototypes ---------------------------------------------*/
50 | void NMI_Handler(void);
51 | void HardFault_Handler(void);
52 | void MemManage_Handler(void);
53 | void BusFault_Handler(void);
54 | void UsageFault_Handler(void);
55 | void DebugMon_Handler(void);
56 | void SysTick_Handler(void);
57 | void LPTIM1_IRQHandler(void);
58 | /* USER CODE BEGIN EFP */
59 |
60 | /* USER CODE END EFP */
61 |
62 | #ifdef __cplusplus
63 | }
64 | #endif
65 |
66 | #endif /* __STM32WLxx_IT_H */
67 |
68 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
69 |
--------------------------------------------------------------------------------
/Utilities/misc/stm32_mem.c:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file stm32_mem.c
4 | * @author MCD Application Team
5 | * @brief standard memory operation
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2019 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 |
20 | /* Includes ------------------------------------------------------------------*/
21 | #include "stdint.h"
22 | #include "stm32_mem.h"
23 |
24 | /* Private typedef -----------------------------------------------------------*/
25 | /* Private defines -----------------------------------------------------------*/
26 | /* Private macros ------------------------------------------------------------*/
27 | /* Private variables ---------------------------------------------------------*/
28 | /* Global variables ----------------------------------------------------------*/
29 | /* Private function prototypes -----------------------------------------------*/
30 | /* Functions Definition ------------------------------------------------------*/
31 |
32 | void UTIL_MEM_cpy_8( void *dst, const void *src, uint16_t size )
33 | {
34 | uint8_t* dst8= (uint8_t *) dst;
35 | uint8_t* src8= (uint8_t *) src;
36 |
37 | while( size-- )
38 | {
39 | *dst8++ = *src8++;
40 | }
41 | }
42 |
43 | void UTIL_MEM_cpyr_8( void *dst, const void *src, uint16_t size )
44 | {
45 | uint8_t* dst8= (uint8_t *) dst;
46 | uint8_t* src8= (uint8_t *) src;
47 |
48 | dst8 = dst8 + ( size - 1 );
49 | while( size-- )
50 | {
51 | *dst8-- = *src8++;
52 | }
53 | }
54 |
55 | void UTIL_MEM_set_8( void *dst, uint8_t value, uint16_t size )
56 | {
57 | uint8_t* dst8= (uint8_t *) dst;
58 | while( size-- )
59 | {
60 | *dst8++ = value;
61 | }
62 | }
63 |
64 |
65 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
66 |
--------------------------------------------------------------------------------
/Drivers/STM32WLxx_HAL_Driver/Inc/stm32wlxx_hal_spi_ex.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file stm32wlxx_hal_spi_ex.h
4 | * @author MCD Application Team
5 | * @brief Header file of SPI HAL Extended module.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2020 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 |
20 | /* Define to prevent recursive inclusion -------------------------------------*/
21 | #ifndef STM32WLxx_HAL_SPI_EX_H
22 | #define STM32WLxx_HAL_SPI_EX_H
23 |
24 | #ifdef __cplusplus
25 | extern "C" {
26 | #endif
27 |
28 | /* Includes ------------------------------------------------------------------*/
29 | #include "stm32wlxx_hal_def.h"
30 |
31 | /** @addtogroup STM32WLxx_HAL_Driver
32 | * @{
33 | */
34 |
35 | /** @addtogroup SPIEx
36 | * @{
37 | */
38 |
39 | /* Exported types ------------------------------------------------------------*/
40 | /* Exported constants --------------------------------------------------------*/
41 | /* Exported macros -----------------------------------------------------------*/
42 | /* Exported functions --------------------------------------------------------*/
43 | /** @addtogroup SPIEx_Exported_Functions
44 | * @{
45 | */
46 |
47 | /* Initialization and de-initialization functions ****************************/
48 | /* IO operation functions *****************************************************/
49 | /** @addtogroup SPIEx_Exported_Functions_Group1
50 | * @{
51 | */
52 | HAL_StatusTypeDef HAL_SPIEx_FlushRxFifo(SPI_HandleTypeDef *hspi);
53 | /**
54 | * @}
55 | */
56 |
57 | /**
58 | * @}
59 | */
60 |
61 | /**
62 | * @}
63 | */
64 |
65 | /**
66 | * @}
67 | */
68 |
69 | #ifdef __cplusplus
70 | }
71 | #endif
72 |
73 | #endif /* STM32WLxx_HAL_SPI_EX_H */
74 |
75 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
76 |
--------------------------------------------------------------------------------
/Projects/Applications/LowPower/Core/Inc/stm32wlxx_it.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file stm32wlxx_it.h
5 | * @brief This file contains the headers of the interrupt handlers.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 | /* USER CODE END Header */
20 |
21 | /* Define to prevent recursive inclusion -------------------------------------*/
22 | #ifndef __STM32WLxx_IT_H
23 | #define __STM32WLxx_IT_H
24 |
25 | #ifdef __cplusplus
26 | extern "C" {
27 | #endif
28 |
29 | /* Private includes ----------------------------------------------------------*/
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 |
34 | /* Exported types ------------------------------------------------------------*/
35 | /* USER CODE BEGIN ET */
36 |
37 | /* USER CODE END ET */
38 |
39 | /* Exported constants --------------------------------------------------------*/
40 | /* USER CODE BEGIN EC */
41 |
42 | /* USER CODE END EC */
43 |
44 | /* Exported macro ------------------------------------------------------------*/
45 | /* USER CODE BEGIN EM */
46 |
47 | /* USER CODE END EM */
48 |
49 | /* Exported functions prototypes ---------------------------------------------*/
50 | void NMI_Handler(void);
51 | void HardFault_Handler(void);
52 | void MemManage_Handler(void);
53 | void BusFault_Handler(void);
54 | void UsageFault_Handler(void);
55 | void SVC_Handler(void);
56 | void DebugMon_Handler(void);
57 | void PendSV_Handler(void);
58 | void SysTick_Handler(void);
59 | void LPTIM1_IRQHandler(void);
60 | /* USER CODE BEGIN EFP */
61 |
62 | /* USER CODE END EFP */
63 |
64 | #ifdef __cplusplus
65 | }
66 | #endif
67 |
68 | #endif /* __STM32WLxx_IT_H */
69 |
70 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
71 |
--------------------------------------------------------------------------------
/Drivers/STM32WLxx_HAL_Driver/Inc/stm32_assert_template.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file stm32_assert.h
4 | * @author MCD Application Team
5 | * @brief STM32 assert template file.
6 | * This file should be copied to the application folder and renamed
7 | * to stm32_assert.h.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © Copyright (c) 2020 STMicroelectronics.
12 | * All rights reserved.
13 | *
14 | * This software component is licensed by ST under BSD 3-Clause license,
15 | * the "License"; You may not use this file except in compliance with the
16 | * License. You may obtain a copy of the License at:
17 | * opensource.org/licenses/BSD-3-Clause
18 | *
19 | ******************************************************************************
20 | */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __STM32_ASSERT_H
24 | #define __STM32_ASSERT_H
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 | /* Exported types ------------------------------------------------------------*/
31 | /* Exported constants --------------------------------------------------------*/
32 | /* Includes ------------------------------------------------------------------*/
33 | /* Exported macro ------------------------------------------------------------*/
34 | #ifdef USE_FULL_ASSERT
35 | /**
36 | * @brief The assert_param macro is used for function's parameters check.
37 | * @param expr If expr is false, it calls assert_failed function
38 | * which reports the name of the source file and the source
39 | * line number of the call that failed.
40 | * If expr is true, it returns no value.
41 | * @retval None
42 | */
43 | #define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
44 | /* Exported functions ------------------------------------------------------- */
45 | void assert_failed(uint8_t* file, uint32_t line);
46 | #else
47 | #define assert_param(expr) ((void)0U)
48 | #endif /* USE_FULL_ASSERT */
49 |
50 | #ifdef __cplusplus
51 | }
52 | #endif
53 |
54 | #endif /* __STM32_ASSERT_H */
55 |
56 |
57 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
58 |
--------------------------------------------------------------------------------
/Projects/Applications/LowPower/Core/Inc/main.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file : main.h
5 | * @brief : Header for main.c file.
6 | * This file contains the common defines of the application.
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2021 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under BSD 3-Clause license,
14 | * the "License"; You may not use this file except in compliance with the
15 | * License. You may obtain a copy of the License at:
16 | * opensource.org/licenses/BSD-3-Clause
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __MAIN_H
24 | #define __MAIN_H
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 | /* Includes ------------------------------------------------------------------*/
31 | #include "stm32wlxx_hal.h"
32 |
33 | /* Private includes ----------------------------------------------------------*/
34 | /* USER CODE BEGIN Includes */
35 |
36 | /* USER CODE END Includes */
37 |
38 | /* Exported types ------------------------------------------------------------*/
39 | /* USER CODE BEGIN ET */
40 |
41 | /* USER CODE END ET */
42 |
43 | /* Exported constants --------------------------------------------------------*/
44 | /* USER CODE BEGIN EC */
45 |
46 | /* USER CODE END EC */
47 |
48 | /* Exported macro ------------------------------------------------------------*/
49 | /* USER CODE BEGIN EM */
50 |
51 | /* USER CODE END EM */
52 |
53 | /* Exported functions prototypes ---------------------------------------------*/
54 | void Error_Handler(void);
55 |
56 | /* USER CODE BEGIN EFP */
57 |
58 | /* USER CODE END EFP */
59 |
60 | /* Private defines -----------------------------------------------------------*/
61 | /* USER CODE BEGIN Private defines */
62 |
63 | /* USER CODE END Private defines */
64 |
65 | #ifdef __cplusplus
66 | }
67 | #endif
68 |
69 | #endif /* __MAIN_H */
70 |
71 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
72 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LowPower/Core/Inc/main.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file : main.h
5 | * @brief : Header for main.c file.
6 | * This file contains the common defines of the application.
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2021 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under BSD 3-Clause license,
14 | * the "License"; You may not use this file except in compliance with the
15 | * License. You may obtain a copy of the License at:
16 | * opensource.org/licenses/BSD-3-Clause
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __MAIN_H
24 | #define __MAIN_H
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 | /* Includes ------------------------------------------------------------------*/
31 | #include "stm32wlxx_hal.h"
32 |
33 | /* Private includes ----------------------------------------------------------*/
34 | /* USER CODE BEGIN Includes */
35 |
36 | /* USER CODE END Includes */
37 |
38 | /* Exported types ------------------------------------------------------------*/
39 | /* USER CODE BEGIN ET */
40 |
41 | /* USER CODE END ET */
42 |
43 | /* Exported constants --------------------------------------------------------*/
44 | /* USER CODE BEGIN EC */
45 |
46 | /* USER CODE END EC */
47 |
48 | /* Exported macro ------------------------------------------------------------*/
49 | /* USER CODE BEGIN EM */
50 |
51 | /* USER CODE END EM */
52 |
53 | /* Exported functions prototypes ---------------------------------------------*/
54 | void Error_Handler(void);
55 |
56 | /* USER CODE BEGIN EFP */
57 |
58 | /* USER CODE END EFP */
59 |
60 | /* Private defines -----------------------------------------------------------*/
61 | /* USER CODE BEGIN Private defines */
62 | /* USER CODE END Private defines */
63 |
64 | #ifdef __cplusplus
65 | }
66 | #endif
67 |
68 | #endif /* __MAIN_H */
69 |
70 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
71 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/SubGHz_Phy/Conf/subghz_template.c:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file subghz_template.c
4 | * @brief This file provides code for the configuration
5 | * of the SUBGHZ instances.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2020 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 |
20 | /* Includes ------------------------------------------------------------------*/
21 | #include "subghz.h"
22 |
23 | /* USER CODE BEGIN 0 */
24 |
25 | /* USER CODE END 0 */
26 |
27 | SUBGHZ_HandleTypeDef hsubghz;
28 |
29 | /* SUBGHZ init function */
30 | void MX_SUBGHZ_Init(void)
31 | {
32 |
33 | hsubghz.Init.BaudratePrescaler = SUBGHZSPI_BAUDRATEPRESCALER_4;
34 | if (HAL_SUBGHZ_Init(&hsubghz) != HAL_OK)
35 | {
36 | Error_Handler();
37 | }
38 |
39 | }
40 |
41 | void HAL_SUBGHZ_MspInit(SUBGHZ_HandleTypeDef* subghzHandle)
42 | {
43 |
44 | /* USER CODE BEGIN SUBGHZ_MspInit 0 */
45 |
46 | /* USER CODE END SUBGHZ_MspInit 0 */
47 | /* SUBGHZ clock enable */
48 | __HAL_RCC_SUBGHZSPI_CLK_ENABLE();
49 |
50 | /* SUBGHZ interrupt Init */
51 | HAL_NVIC_SetPriority(SUBGHZ_Radio_IRQn, 0, 0);
52 | HAL_NVIC_EnableIRQ(SUBGHZ_Radio_IRQn);
53 | /* USER CODE BEGIN SUBGHZ_MspInit 1 */
54 |
55 | /* USER CODE END SUBGHZ_MspInit 1 */
56 | }
57 |
58 | void HAL_SUBGHZ_MspDeInit(SUBGHZ_HandleTypeDef* subghzHandle)
59 | {
60 |
61 | /* USER CODE BEGIN SUBGHZ_MspDeInit 0 */
62 |
63 | /* USER CODE END SUBGHZ_MspDeInit 0 */
64 | /* Peripheral clock disable */
65 | __HAL_RCC_SUBGHZSPI_CLK_DISABLE();
66 |
67 | /* SUBGHZ interrupt Deinit */
68 | HAL_NVIC_DisableIRQ(SUBGHZ_Radio_IRQn);
69 | /* USER CODE BEGIN SUBGHZ_MspDeInit 1 */
70 |
71 | /* USER CODE END SUBGHZ_MspDeInit 1 */
72 | }
73 |
74 | /* USER CODE BEGIN 1 */
75 |
76 | /* USER CODE END 1 */
77 |
78 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
79 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN/LoRaWAN/App/app_lorawan.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file app_lorawan.h
5 | * @author MCD Application Team
6 | * @brief Header of application of the LRWAN Middleware
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2020 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under Ultimate Liberty license
14 | * SLA0044, the "License"; You may not use this file except in compliance with
15 | * the License. You may obtain a copy of the License at:
16 | * www.st.com/SLA0044
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __APP_LORAWAN_H__
24 | #define __APP_LORAWAN_H__
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 | /* Includes ------------------------------------------------------------------*/
31 | /* USER CODE BEGIN Includes */
32 |
33 | /* USER CODE END Includes */
34 |
35 | /* Exported types ------------------------------------------------------------*/
36 | /* USER CODE BEGIN ET */
37 |
38 | /* USER CODE END ET */
39 |
40 | /* Exported constants --------------------------------------------------------*/
41 | /* USER CODE BEGIN EC */
42 |
43 | /* USER CODE END EC */
44 |
45 | /* External variables --------------------------------------------------------*/
46 | /* USER CODE BEGIN EV */
47 |
48 | /* USER CODE END EV */
49 |
50 | /* Exported macro ------------------------------------------------------------*/
51 | /* USER CODE BEGIN EM */
52 |
53 | /* USER CODE END EM */
54 |
55 | /* Exported Functions Prototypes------------------------------------------------------- */
56 | /**
57 | * @brief Init Lora Application
58 | */
59 | void MX_LoRaWAN_Init(void);
60 |
61 | /**
62 | * @brief Entry Lora Process or scheduling
63 | */
64 | void MX_LoRaWAN_Process(void);
65 |
66 | /* USER CODE BEGIN EFP */
67 |
68 | /* USER CODE END EFP */
69 |
70 | #ifdef __cplusplus
71 | }
72 | #endif
73 |
74 | #endif /*__APP_LORAWAN_H__*/
75 |
76 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
77 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN_AT/LoRaWAN/App/app_lorawan.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file app_lorawan.h
5 | * @author MCD Application Team
6 | * @brief Header of application of the LRWAN Middleware
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2020 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under Ultimate Liberty license
14 | * SLA0044, the "License"; You may not use this file except in compliance with
15 | * the License. You may obtain a copy of the License at:
16 | * www.st.com/SLA0044
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __APP_LORAWAN_H__
24 | #define __APP_LORAWAN_H__
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 | /* Includes ------------------------------------------------------------------*/
31 | /* USER CODE BEGIN Includes */
32 |
33 | /* USER CODE END Includes */
34 |
35 | /* Exported types ------------------------------------------------------------*/
36 | /* USER CODE BEGIN ET */
37 |
38 | /* USER CODE END ET */
39 |
40 | /* Exported constants --------------------------------------------------------*/
41 | /* USER CODE BEGIN EC */
42 |
43 | /* USER CODE END EC */
44 |
45 | /* External variables --------------------------------------------------------*/
46 | /* USER CODE BEGIN EV */
47 |
48 | /* USER CODE END EV */
49 |
50 | /* Exported macro ------------------------------------------------------------*/
51 | /* USER CODE BEGIN EM */
52 |
53 | /* USER CODE END EM */
54 |
55 | /* Exported Functions Prototypes------------------------------------------------------- */
56 | /**
57 | * @brief Init Lora Application
58 | */
59 | void MX_LoRaWAN_Init(void);
60 |
61 | /**
62 | * @brief Entry Lora Process or scheduling
63 | */
64 | void MX_LoRaWAN_Process(void);
65 |
66 | /* USER CODE BEGIN EFP */
67 |
68 | /* USER CODE END EFP */
69 |
70 | #ifdef __cplusplus
71 | }
72 | #endif
73 |
74 | #endif /*__APP_LORAWAN_H__*/
75 |
76 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
77 |
--------------------------------------------------------------------------------
/Projects/Applications/LoRaWAN/LoRaWAN_End_Node/LoRaWAN/App/app_lorawan.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file app_lorawan.h
5 | * @author MCD Application Team
6 | * @brief Header of application of the LRWAN Middleware
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2020 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under Ultimate Liberty license
14 | * SLA0044, the "License"; You may not use this file except in compliance with
15 | * the License. You may obtain a copy of the License at:
16 | * www.st.com/SLA0044
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __APP_LORAWAN_H__
24 | #define __APP_LORAWAN_H__
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 | /* Includes ------------------------------------------------------------------*/
31 | /* USER CODE BEGIN Includes */
32 |
33 | /* USER CODE END Includes */
34 |
35 | /* Exported types ------------------------------------------------------------*/
36 | /* USER CODE BEGIN ET */
37 |
38 | /* USER CODE END ET */
39 |
40 | /* Exported constants --------------------------------------------------------*/
41 | /* USER CODE BEGIN EC */
42 |
43 | /* USER CODE END EC */
44 |
45 | /* External variables --------------------------------------------------------*/
46 | /* USER CODE BEGIN EV */
47 |
48 | /* USER CODE END EV */
49 |
50 | /* Exported macro ------------------------------------------------------------*/
51 | /* USER CODE BEGIN EM */
52 |
53 | /* USER CODE END EM */
54 |
55 | /* Exported Functions Prototypes------------------------------------------------------- */
56 | /**
57 | * @brief Init Lora Application
58 | */
59 | void MX_LoRaWAN_Init(void);
60 |
61 | /**
62 | * @brief Entry Lora Process or scheduling
63 | */
64 | void MX_LoRaWAN_Process(void);
65 |
66 | /* USER CODE BEGIN EFP */
67 |
68 | /* USER CODE END EFP */
69 |
70 | #ifdef __cplusplus
71 | }
72 | #endif
73 |
74 | #endif /*__APP_LORAWAN_H__*/
75 |
76 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
77 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN/LoRaWAN/Target/mw_log_conf.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file mw_log_conf.h
5 | * @author MCD Application Team
6 | * @brief Configure (enable/disable) traces for CM0
7 | *******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2020 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under Ultimate Liberty license
14 | * SLA0044, the "License"; You may not use this file except in compliance with
15 | * the License. You may obtain a copy of the License at:
16 | * www.st.com/SLA0044
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __MW_LOG_CONF_H__
24 | #define __MW_LOG_CONF_H__
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 | /* Includes ------------------------------------------------------------------*/
31 | #include "stm32_adv_trace.h"
32 |
33 | /* USER CODE BEGIN Includes */
34 |
35 | /* USER CODE END Includes */
36 |
37 | /* Exported types ------------------------------------------------------------*/
38 | /* USER CODE BEGIN ET */
39 |
40 | /* USER CODE END ET */
41 |
42 | /* Exported constants --------------------------------------------------------*/
43 | #define MW_LOG_ENABLED
44 |
45 | /* USER CODE BEGIN EC */
46 |
47 | /* USER CODE END EC */
48 |
49 | /* External variables --------------------------------------------------------*/
50 | /* USER CODE BEGIN EV */
51 |
52 | /* USER CODE END EV */
53 |
54 | /* Exported macro ------------------------------------------------------------*/
55 | #ifdef MW_LOG_ENABLED
56 | #define MW_LOG(TS,VL, ...) do{ {UTIL_ADV_TRACE_COND_FSend(VL, T_REG_OFF, TS, __VA_ARGS__);} }while(0)
57 | #else /* MW_LOG_ENABLED */
58 | #define MW_LOG(TS,VL, ...)
59 | #endif /* MW_LOG_ENABLED */
60 | /* USER CODE BEGIN EM */
61 |
62 | /* USER CODE END EM */
63 |
64 | /* Exported functions prototypes ---------------------------------------------*/
65 | /* USER CODE BEGIN EFP */
66 |
67 | /* USER CODE END EFP */
68 |
69 | #ifdef __cplusplus
70 | }
71 | #endif
72 |
73 | #endif /*__MW_LOG_CONF_H__ */
74 |
75 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
76 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN_AT/LoRaWAN/Target/mw_log_conf.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file mw_log_conf.h
5 | * @author MCD Application Team
6 | * @brief Configure (enable/disable) traces for CM0
7 | *******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2020 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under Ultimate Liberty license
14 | * SLA0044, the "License"; You may not use this file except in compliance with
15 | * the License. You may obtain a copy of the License at:
16 | * www.st.com/SLA0044
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __MW_LOG_CONF_H__
24 | #define __MW_LOG_CONF_H__
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 | /* Includes ------------------------------------------------------------------*/
31 | #include "stm32_adv_trace.h"
32 |
33 | /* USER CODE BEGIN Includes */
34 |
35 | /* USER CODE END Includes */
36 |
37 | /* Exported types ------------------------------------------------------------*/
38 | /* USER CODE BEGIN ET */
39 |
40 | /* USER CODE END ET */
41 |
42 | /* Exported constants --------------------------------------------------------*/
43 | #define MW_LOG_ENABLED
44 |
45 | /* USER CODE BEGIN EC */
46 |
47 | /* USER CODE END EC */
48 |
49 | /* External variables --------------------------------------------------------*/
50 | /* USER CODE BEGIN EV */
51 |
52 | /* USER CODE END EV */
53 |
54 | /* Exported macro ------------------------------------------------------------*/
55 | #ifdef MW_LOG_ENABLED
56 | #define MW_LOG(TS,VL, ...) do{ {UTIL_ADV_TRACE_COND_FSend(VL, T_REG_OFF, TS, __VA_ARGS__);} }while(0)
57 | #else /* MW_LOG_ENABLED */
58 | #define MW_LOG(TS,VL, ...)
59 | #endif /* MW_LOG_ENABLED */
60 | /* USER CODE BEGIN EM */
61 |
62 | /* USER CODE END EM */
63 |
64 | /* Exported functions prototypes ---------------------------------------------*/
65 | /* USER CODE BEGIN EFP */
66 |
67 | /* USER CODE END EFP */
68 |
69 | #ifdef __cplusplus
70 | }
71 | #endif
72 |
73 | #endif /*__MW_LOG_CONF_H__ */
74 |
75 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
76 |
--------------------------------------------------------------------------------
/Projects/Applications/LoRaWAN/LoRaWAN_End_Node/LoRaWAN/Target/mw_log_conf.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file mw_log_conf.h
5 | * @author MCD Application Team
6 | * @brief Configure (enable/disable) traces for CM0
7 | *******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2020 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under Ultimate Liberty license
14 | * SLA0044, the "License"; You may not use this file except in compliance with
15 | * the License. You may obtain a copy of the License at:
16 | * www.st.com/SLA0044
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __MW_LOG_CONF_H__
24 | #define __MW_LOG_CONF_H__
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 | /* Includes ------------------------------------------------------------------*/
31 | #include "stm32_adv_trace.h"
32 |
33 | /* USER CODE BEGIN Includes */
34 |
35 | /* USER CODE END Includes */
36 |
37 | /* Exported types ------------------------------------------------------------*/
38 | /* USER CODE BEGIN ET */
39 |
40 | /* USER CODE END ET */
41 |
42 | /* Exported constants --------------------------------------------------------*/
43 | #define MW_LOG_ENABLED
44 |
45 | /* USER CODE BEGIN EC */
46 |
47 | /* USER CODE END EC */
48 |
49 | /* External variables --------------------------------------------------------*/
50 | /* USER CODE BEGIN EV */
51 |
52 | /* USER CODE END EV */
53 |
54 | /* Exported macro ------------------------------------------------------------*/
55 | #ifdef MW_LOG_ENABLED
56 | #define MW_LOG(TS,VL, ...) do{ {UTIL_ADV_TRACE_COND_FSend(VL, T_REG_OFF, TS, __VA_ARGS__);} }while(0)
57 | #else /* MW_LOG_ENABLED */
58 | #define MW_LOG(TS,VL, ...)
59 | #endif /* MW_LOG_ENABLED */
60 | /* USER CODE BEGIN EM */
61 |
62 | /* USER CODE END EM */
63 |
64 | /* Exported functions prototypes ---------------------------------------------*/
65 | /* USER CODE BEGIN EFP */
66 |
67 | /* USER CODE END EFP */
68 |
69 | #ifdef __cplusplus
70 | }
71 | #endif
72 |
73 | #endif /*__MW_LOG_CONF_H__ */
74 |
75 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
76 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/subghz_phy_version.h:
--------------------------------------------------------------------------------
1 | /******************************************************************************
2 | * @file subghz_phy_version.h
3 | * @author MCD Application Team
4 | * @brief defines the radio driver version
5 | ******************************************************************************
6 | * @attention
7 | *
8 | * © Copyright (c) 2020 STMicroelectronics.
9 | * All rights reserved.
10 | *
11 | * This software component is licensed by ST under BSD 3-Clause license,
12 | * the "License"; You may not use this file except in compliance with the
13 | * License. You may obtain a copy of the License at:
14 | * opensource.org/licenses/BSD-3-Clause
15 | *
16 | ******************************************************************************
17 | */
18 |
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 |
21 | #ifndef __SUBGHZ_PHY_VERSION_H__
22 | #define __SUBGHZ_PHY_VERSION_H__
23 |
24 | #ifdef __cplusplus
25 | extern "C" {
26 | #endif
27 |
28 | /* Includes ------------------------------------------------------------------*/
29 | /* Exported constants --------------------------------------------------------*/
30 |
31 | /* __SUBGHZ_PHY_TYPE: 0x01 STM32WL
32 | 0x61 SX126X
33 | 0x72 SX1272
34 | 0x76 SX1276 */
35 |
36 | #define __SUBGHZ_PHY_TYPE (0x01U) /*!< [31:24] main version */
37 | #define __SUBGHZ_PHY_VERSION_MAIN (0x01U) /*!< [23:16] main version */
38 | #define __SUBGHZ_PHY_VERSION_SUB1 (0x01U) /*!< [15:8] sub1 version */
39 | #define __SUBGHZ_PHY_VERSION_SUB2 (0x00U) /*!< [7:0] sub2 version */
40 | #define __SUBGHZ_PHY_VERSION ((__SUBGHZ_PHY_VERSION_MAIN << 24) \
41 | |(__SUBGHZ_PHY_VERSION_SUB1 << 16) \
42 | |(__SUBGHZ_PHY_VERSION_SUB2 << 8 ) \
43 | |(__SUBGHZ_PHY_TYPE))
44 |
45 | /* Exported types ------------------------------------------------------------*/
46 | /* External variables --------------------------------------------------------*/
47 | /* Exported macros -----------------------------------------------------------*/
48 | /* Exported functions ------------------------------------------------------- */
49 |
50 | #ifdef __cplusplus
51 | }
52 | #endif
53 |
54 | #endif /*__SUBGHZ_PHY_VERSION_H__*/
55 |
56 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
57 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/LoRaWAN/LmHandler/lorawan_version.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file lorawan_version.h
4 | * @author MCD Application Team
5 | * @brief Identifies the version of LoRaWAN
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2020 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 |
20 | /* Define to prevent recursive inclusion -------------------------------------*/
21 |
22 | #ifndef __LORAWAN_VERSION_H__
23 | #define __LORAWAN_VERSION_H__
24 |
25 | #ifdef __cplusplus
26 | extern "C" {
27 | #endif
28 |
29 | /* Includes ------------------------------------------------------------------*/
30 | /* Exported constants --------------------------------------------------------*/
31 |
32 | #define __LORAWAN_VERSION_MAIN (0x02U) /*!< [31:24] main version */
33 | #define __LORAWAN_VERSION_SUB1 (0x03U) /*!< [23:16] sub1 version */
34 | #define __LORAWAN_VERSION_SUB2 (0x00U) /*!< [15:8] sub2 version */
35 | #define __LORAWAN_VERSION_RC (0x00U) /*!< [7:0] release candidate */
36 |
37 | #define __LORAWAN_MAIN_SHIFT 24
38 | #define __LORAWAN_SUB1_SHIFT 16
39 | #define __LORAWAN_SUB2_SHIFT 8
40 | #define __LORAWAN_RC_SHIFT 0
41 |
42 | /* Exported types ------------------------------------------------------------*/
43 | /* External variables --------------------------------------------------------*/
44 | /* Exported macros -----------------------------------------------------------*/
45 | #define __LORAWAN_VERSION ((__LORAWAN_VERSION_MAIN <<__LORAWAN_MAIN_SHIFT) \
46 | |(__LORAWAN_VERSION_SUB1 << __LORAWAN_SUB1_SHIFT) \
47 | |(__LORAWAN_VERSION_SUB2 << __LORAWAN_SUB2_SHIFT )\
48 | |(__LORAWAN_VERSION_RC << __LORAWAN_RC_SHIFT))
49 | /* Exported functions ------------------------------------------------------- */
50 |
51 | #ifdef __cplusplus
52 | }
53 | #endif
54 |
55 | #endif /*__LORAWAN_VERSION_H__*/
56 |
57 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
58 |
--------------------------------------------------------------------------------
/Projects/Applications/LoRaWAN/LoRaWAN_End_Node/Core/Inc/stm32wlxx_it.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file stm32wlxx_it.h
5 | * @brief This file contains the headers of the interrupt handlers.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2020 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 | /* USER CODE END Header */
20 |
21 | /* Define to prevent recursive inclusion -------------------------------------*/
22 | #ifndef __STM32WLxx_IT_H
23 | #define __STM32WLxx_IT_H
24 |
25 | #ifdef __cplusplus
26 | extern "C" {
27 | #endif
28 |
29 | /* Private includes ----------------------------------------------------------*/
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 |
34 | /* Exported types ------------------------------------------------------------*/
35 | /* USER CODE BEGIN ET */
36 |
37 | /* USER CODE END ET */
38 |
39 | /* Exported constants --------------------------------------------------------*/
40 | /* USER CODE BEGIN EC */
41 |
42 | /* USER CODE END EC */
43 |
44 | /* Exported macro ------------------------------------------------------------*/
45 | /* USER CODE BEGIN EM */
46 |
47 | /* USER CODE END EM */
48 |
49 | /* Exported functions prototypes ---------------------------------------------*/
50 | void NMI_Handler(void);
51 | void HardFault_Handler(void);
52 | void MemManage_Handler(void);
53 | void BusFault_Handler(void);
54 | void UsageFault_Handler(void);
55 | void SVC_Handler(void);
56 | void DebugMon_Handler(void);
57 | void PendSV_Handler(void);
58 | void SysTick_Handler(void);
59 | void TAMP_STAMP_LSECSS_SSRU_IRQHandler(void);
60 | void EXTI0_IRQHandler(void);
61 | void EXTI1_IRQHandler(void);
62 | void DMA1_Channel5_IRQHandler(void);
63 | void USART2_IRQHandler(void);
64 | void RTC_Alarm_IRQHandler(void);
65 | void SUBGHZ_Radio_IRQHandler(void);
66 | /* USER CODE BEGIN EFP */
67 |
68 | /* USER CODE END EFP */
69 |
70 | #ifdef __cplusplus
71 | }
72 | #endif
73 |
74 | #endif /* __STM32WLxx_IT_H */
75 |
76 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
77 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/LoRaWAN/LmHandler/Packages/LmhpFragmentation.h:
--------------------------------------------------------------------------------
1 | /*!
2 | * \file LmhpFragmentation.h
3 | *
4 | * \brief Implements the LoRa-Alliance fragmented data block transport package
5 | * Specification: https://lora-alliance.org/sites/default/files/2018-09/fragmented_data_block_transport_v1.0.0.pdf
6 | *
7 | * \copyright Revised BSD License, see section \ref LICENSE.
8 | *
9 | * \code
10 | * ______ _
11 | * / _____) _ | |
12 | * ( (____ _____ ____ _| |_ _____ ____| |__
13 | * \____ \| ___ | (_ _) ___ |/ ___) _ \
14 | * _____) ) ____| | | || |_| ____( (___| | | |
15 | * (______/|_____)_|_|_| \__)_____)\____)_| |_|
16 | * (C)2013-2018 Semtech
17 | *
18 | * \endcode
19 | *
20 | * \author Miguel Luis ( Semtech )
21 | */
22 | #ifndef __LMHP_FRAGMENTATION_H__
23 | #define __LMHP_FRAGMENTATION_H__
24 |
25 | #include "LoRaMac.h"
26 | #include "LmHandlerTypes.h"
27 | #include "LmhPackage.h"
28 | #include "FragDecoder.h"
29 |
30 | /*!
31 | * Fragmentation data block transport package identifier.
32 | *
33 | * \remark This value must be unique amongst the packages
34 | */
35 | #define PACKAGE_ID_FRAGMENTATION 3
36 |
37 | /*!
38 | * Fragmentation package parameters
39 | */
40 | typedef struct LmhpFragmentationParams_s
41 | {
42 | /*!
43 | * FragDecoder Write/Read function callbacks
44 | */
45 | FragDecoderCallbacks_t DecoderCallbacks;
46 | /*!
47 | * Notifies the progress of the current fragmentation session
48 | *
49 | * \param [IN] fragCounter Fragment counter
50 | * \param [IN] fragNb Number of fragments
51 | * \param [IN] fragSize Size of fragments
52 | * \param [IN] fragNbLost Number of lost fragments
53 | */
54 | void ( *OnProgress )( uint16_t fragCounter, uint16_t fragNb, uint8_t fragSize, uint16_t fragNbLost );
55 | /*!
56 | * Notifies that the fragmentation session is finished
57 | *
58 | * \param [IN] status Fragmentation session status [FRAG_SESSION_ONGOING,
59 | * FRAG_SESSION_FINISHED or
60 | * FragDecoder.Status.FragNbLost]
61 | * \param [IN] size Received file size
62 | */
63 | void ( *OnDone )( int32_t status, uint32_t size );
64 | }LmhpFragmentationParams_t;
65 |
66 | LmhPackage_t *LmhpFragmentationPackageFactory( void );
67 |
68 | uint8_t LmhpFragmentationGetPackageVersion(void);
69 |
70 | #endif // __LMHP_FRAGMENTATION_H__
71 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN_AT/LoRaWAN/App/lora_command.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file lora_command.h
5 | * @author MCD Application Team
6 | * @brief Header for driver command.c module
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2020 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under Ultimate Liberty license
14 | * SLA0044, the "License"; You may not use this file except in compliance with
15 | * the License. You may obtain a copy of the License at:
16 | * www.st.com/SLA0044
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __LORA_COMMAND_H__
24 | #define __LORA_COMMAND_H__
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 | /* Includes ------------------------------------------------------------------*/
31 | /* USER CODE BEGIN Includes */
32 |
33 | /* USER CODE END Includes */
34 |
35 | /* Exported types ------------------------------------------------------------*/
36 | /* USER CODE BEGIN ET */
37 |
38 | /* USER CODE END ET */
39 |
40 | /* Exported constants --------------------------------------------------------*/
41 | /* Character added when a RX error has been detected */
42 | #define AT_ERROR_RX_CHAR 0x01
43 |
44 | /* USER CODE BEGIN EC */
45 |
46 | /* USER CODE END EC */
47 |
48 | /* External variables --------------------------------------------------------*/
49 | /* USER CODE BEGIN EV */
50 |
51 | /* USER CODE END EV */
52 |
53 | /* Exported macro ------------------------------------------------------------*/
54 | /* USER CODE BEGIN EM */
55 |
56 | /* USER CODE END EM */
57 |
58 | /* Exported functions prototypes ---------------------------------------------*/
59 | /**
60 | * @brief Initializes command module
61 | * @param CmdProcessNotify cb to signal application that character has been received
62 | */
63 | void CMD_Init(void (*CmdProcessNotify)(void));
64 |
65 | /**
66 | * @brief Process the command
67 | */
68 | void CMD_Process(void);
69 |
70 | /* USER CODE BEGIN EFP */
71 |
72 | /* USER CODE END EFP */
73 |
74 | #ifdef __cplusplus
75 | }
76 | #endif
77 |
78 | #endif /* __LORA_COMMAND_H__*/
79 |
80 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
81 |
--------------------------------------------------------------------------------
/Projects/Applications/LoRaWAN/LoRaWAN_End_Node/Core/Src/stm32wlxx_hal_msp.c:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file stm32wlxx_hal_msp.c
5 | * @brief This file provides code for the MSP Initialization
6 | * and de-Initialization codes.
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2020 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under Ultimate Liberty license
14 | * SLA0044, the "License"; You may not use this file except in compliance with
15 | * the License. You may obtain a copy of the License at:
16 | * www.st.com/SLA0044
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | /* Includes ------------------------------------------------------------------*/
23 | #include "main.h"
24 | /* USER CODE BEGIN Includes */
25 |
26 | /* USER CODE END Includes */
27 |
28 | /* Private typedef -----------------------------------------------------------*/
29 | /* USER CODE BEGIN TD */
30 |
31 | /* USER CODE END TD */
32 |
33 | /* Private define ------------------------------------------------------------*/
34 | /* USER CODE BEGIN Define */
35 |
36 | /* USER CODE END Define */
37 |
38 | /* Private macro -------------------------------------------------------------*/
39 | /* USER CODE BEGIN Macro */
40 |
41 | /* USER CODE END Macro */
42 |
43 | /* Private variables ---------------------------------------------------------*/
44 | /* USER CODE BEGIN PV */
45 |
46 | /* USER CODE END PV */
47 |
48 | /* Private function prototypes -----------------------------------------------*/
49 | /* USER CODE BEGIN PFP */
50 |
51 | /* USER CODE END PFP */
52 |
53 | /* External functions --------------------------------------------------------*/
54 | /* USER CODE BEGIN ExternalFunctions */
55 |
56 | /* USER CODE END ExternalFunctions */
57 |
58 | /* USER CODE BEGIN 0 */
59 |
60 | /* USER CODE END 0 */
61 | /**
62 | * Initializes the Global MSP.
63 | */
64 | void HAL_MspInit(void)
65 | {
66 | /* USER CODE BEGIN MspInit 0 */
67 |
68 | /* USER CODE END MspInit 0 */
69 |
70 | /* System interrupt init*/
71 |
72 | /* USER CODE BEGIN MspInit 1 */
73 |
74 | /* USER CODE END MspInit 1 */
75 | }
76 |
77 | /* USER CODE BEGIN 1 */
78 |
79 | /* USER CODE END 1 */
80 |
81 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
82 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/SubGHz_Phy/Conf/mw_log_conf_template.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file mw_log_conf_template.h
4 | * @author MCD Application Team
5 | * @brief Configure (enable/disable) traces for CM0
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2020 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 |
20 | /* Define to prevent recursive inclusion -------------------------------------*/
21 | #ifndef __MW_LOG_CONF_H__
22 | #define __MW_LOG_CONF_H__
23 |
24 | #ifdef __cplusplus
25 | extern "C" {
26 | #endif
27 |
28 | /* Includes ------------------------------------------------------------------*/
29 | #include "stm32_adv_trace.h"
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 |
34 | /* Exported types ------------------------------------------------------------*/
35 | /* USER CODE BEGIN ET */
36 |
37 | /* USER CODE END ET */
38 |
39 | /* Exported constants --------------------------------------------------------*/
40 | #define MW_LOG_ENABLED
41 |
42 | /* USER CODE BEGIN EC */
43 |
44 | /* USER CODE END EC */
45 |
46 | /* External variables --------------------------------------------------------*/
47 | /* USER CODE BEGIN EV */
48 |
49 | /* USER CODE END EV */
50 |
51 | /* Exported macro ------------------------------------------------------------*/
52 | #ifdef MW_LOG_ENABLED
53 | #define MW_LOG(TS,VL, ...) do{ {UTIL_ADV_TRACE_COND_FSend(VL, T_REG_OFF, TS, __VA_ARGS__);} }while(0)
54 | #else /* MW_LOG_ENABLED */
55 | #define VLEVEL_ABOVE_H 4 /* this level will be always filtered because too High */
56 | #define MW_LOG(TS,VL, ...) do{ {UTIL_ADV_TRACE_COND_FSend(VLEVEL_ABOVE_H, T_REG_OFF, TS, __VA_ARGS__);} }while(0)
57 | #endif /* MW_LOG_ENABLED */
58 | /* USER CODE BEGIN EM */
59 |
60 | /* USER CODE END EM */
61 |
62 | /* Exported functions prototypes ---------------------------------------------*/
63 | /* USER CODE BEGIN EFP */
64 |
65 | /* USER CODE END EFP */
66 |
67 | #ifdef __cplusplus
68 | }
69 | #endif
70 |
71 | #endif /*__MW_LOG_CONF_H__ */
72 |
73 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
74 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN/Core/Inc/stm32wlxx_it.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file stm32wlxx_it.h
5 | * @brief This file contains the headers of the interrupt handlers.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2020 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 | /* USER CODE END Header */
20 |
21 | /* Define to prevent recursive inclusion -------------------------------------*/
22 | #ifndef __STM32WLxx_IT_H
23 | #define __STM32WLxx_IT_H
24 |
25 | #ifdef __cplusplus
26 | extern "C" {
27 | #endif
28 |
29 | /* Private includes ----------------------------------------------------------*/
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 |
34 | /* Exported types ------------------------------------------------------------*/
35 | /* USER CODE BEGIN ET */
36 |
37 | /* USER CODE END ET */
38 |
39 | /* Exported constants --------------------------------------------------------*/
40 | /* USER CODE BEGIN EC */
41 |
42 | /* USER CODE END EC */
43 |
44 | /* Exported macro ------------------------------------------------------------*/
45 | /* USER CODE BEGIN EM */
46 |
47 | /* USER CODE END EM */
48 |
49 | /* Exported functions prototypes ---------------------------------------------*/
50 | void NMI_Handler(void);
51 | void HardFault_Handler(void);
52 | void MemManage_Handler(void);
53 | void BusFault_Handler(void);
54 | void UsageFault_Handler(void);
55 | //void SVC_Handler(void);
56 | void DebugMon_Handler(void);
57 | //void PendSV_Handler(void);
58 | void SysTick_Handler(void);
59 | //void TAMP_STAMP_LSECSS_SSRU_IRQHandler(void);
60 | //void EXTI0_IRQHandler(void);
61 | //void EXTI1_IRQHandler(void);
62 | //void DMA1_Channel5_IRQHandler(void);
63 | //void USART2_IRQHandler(void);
64 | //void RTC_Alarm_IRQHandler(void);
65 | //void SUBGHZ_Radio_IRQHandler(void);
66 | void LPTIM1_IRQHandler(void);
67 |
68 | /* USER CODE BEGIN EFP */
69 |
70 | /* USER CODE END EFP */
71 |
72 | #ifdef __cplusplus
73 | }
74 | #endif
75 |
76 | #endif /* __STM32WLxx_IT_H */
77 |
78 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
79 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN_AT/Core/Inc/stm32wlxx_it.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file stm32wlxx_it.h
5 | * @brief This file contains the headers of the interrupt handlers.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2020 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 | /* USER CODE END Header */
20 |
21 | /* Define to prevent recursive inclusion -------------------------------------*/
22 | #ifndef __STM32WLxx_IT_H
23 | #define __STM32WLxx_IT_H
24 |
25 | #ifdef __cplusplus
26 | extern "C" {
27 | #endif
28 |
29 | /* Private includes ----------------------------------------------------------*/
30 | /* USER CODE BEGIN Includes */
31 |
32 | /* USER CODE END Includes */
33 |
34 | /* Exported types ------------------------------------------------------------*/
35 | /* USER CODE BEGIN ET */
36 |
37 | /* USER CODE END ET */
38 |
39 | /* Exported constants --------------------------------------------------------*/
40 | /* USER CODE BEGIN EC */
41 |
42 | /* USER CODE END EC */
43 |
44 | /* Exported macro ------------------------------------------------------------*/
45 | /* USER CODE BEGIN EM */
46 |
47 | /* USER CODE END EM */
48 |
49 | /* Exported functions prototypes ---------------------------------------------*/
50 | void NMI_Handler(void);
51 | void HardFault_Handler(void);
52 | void MemManage_Handler(void);
53 | void BusFault_Handler(void);
54 | void UsageFault_Handler(void);
55 | //void SVC_Handler(void);
56 | void DebugMon_Handler(void);
57 | //void PendSV_Handler(void);
58 | void SysTick_Handler(void);
59 | //void TAMP_STAMP_LSECSS_SSRU_IRQHandler(void);
60 | //void EXTI0_IRQHandler(void);
61 | //void EXTI1_IRQHandler(void);
62 | //void DMA1_Channel5_IRQHandler(void);
63 | //void USART2_IRQHandler(void);
64 | //void RTC_Alarm_IRQHandler(void);
65 | //void SUBGHZ_Radio_IRQHandler(void);
66 | void LPTIM1_IRQHandler(void);
67 |
68 | /* USER CODE BEGIN EFP */
69 |
70 | /* USER CODE END EFP */
71 |
72 | #ifdef __cplusplus
73 | }
74 | #endif
75 |
76 | #endif /* __STM32WLxx_IT_H */
77 |
78 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
79 |
--------------------------------------------------------------------------------
/Utilities/misc/stm32_mem.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file stm32_mem.h
4 | * @author MCD Application Team
5 | * @brief standard memory operation
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2019 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 |
20 | /* Define to prevent recursive inclusion -------------------------------------*/
21 | #ifndef __STM32_MEM_H__
22 | #define __STM32_MEM_H__
23 |
24 | #ifdef __cplusplus
25 | extern "C"
26 | {
27 | #endif
28 | /* Includes ------------------------------------------------------------------*/
29 | #include
30 | #include "utilities_conf.h"
31 |
32 | /* Exported types ------------------------------------------------------------*/
33 | /* Exported constants --------------------------------------------------------*/
34 | /* Exported macro ------------------------------------------------------------*/
35 | /* ---- Memory mapping macros ----------------------------------------------- */
36 | #define UTIL_MEM_PLACE_IN_SECTION( __x__ ) UTIL_PLACE_IN_SECTION( __x__ )
37 | #define UTIL_MEM_ALIGN ALIGN
38 |
39 | /* Exported functions ------------------------------------------------------- */
40 | /**
41 | * @brief This API copies one buffer to another
42 | * @param dst: output buffer to be filled
43 | * @param src: input buffer
44 | * @param size: size of 8b data
45 | * @retval None
46 | */
47 | void UTIL_MEM_cpy_8( void *dst, const void *src, uint16_t size );
48 |
49 | /**
50 | * @brief This API copies one buffer to another in reverse
51 | * @param dst: output buffer to be filled
52 | * @param src: input buffer
53 | * @param size: size of 8b data
54 | * @retval None
55 | */
56 | void UTIL_MEM_cpyr_8( void *dst, const void *src, uint16_t size );
57 |
58 | /**
59 | * @brief This API fills a buffer with value
60 | * @param dst: output buffer to be filled
61 | * @param value: value
62 | * @param size: size of 8b data
63 | * @retval None
64 | */
65 | void UTIL_MEM_set_8( void *dst, uint8_t value, uint16_t size );
66 |
67 |
68 | #ifdef __cplusplus
69 | }
70 | #endif
71 |
72 | #endif // __STM32_MEM_H__
73 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
74 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN/Core/Src/subghz.c:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file subghz.c
4 | * @brief This file provides code for the configuration
5 | * of the SUBGHZ instances.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 |
20 | /* Includes ------------------------------------------------------------------*/
21 | #include "subghz.h"
22 |
23 | /* USER CODE BEGIN 0 */
24 |
25 | /* USER CODE END 0 */
26 |
27 | SUBGHZ_HandleTypeDef hsubghz;
28 |
29 | /* SUBGHZ init function */
30 | void MX_SUBGHZ_Init(void)
31 | {
32 |
33 | /* USER CODE BEGIN SUBGHZ_Init 0 */
34 |
35 | /* USER CODE END SUBGHZ_Init 0 */
36 |
37 | /* USER CODE BEGIN SUBGHZ_Init 1 */
38 |
39 | /* USER CODE END SUBGHZ_Init 1 */
40 | hsubghz.Init.BaudratePrescaler = SUBGHZSPI_BAUDRATEPRESCALER_4;
41 | if (HAL_SUBGHZ_Init(&hsubghz) != HAL_OK)
42 | {
43 | Error_Handler();
44 | }
45 | /* USER CODE BEGIN SUBGHZ_Init 2 */
46 |
47 | /* USER CODE END SUBGHZ_Init 2 */
48 |
49 | }
50 |
51 | void HAL_SUBGHZ_MspInit(SUBGHZ_HandleTypeDef* subghzHandle)
52 | {
53 |
54 | /* USER CODE BEGIN SUBGHZ_MspInit 0 */
55 |
56 | /* USER CODE END SUBGHZ_MspInit 0 */
57 | /* SUBGHZ clock enable */
58 | __HAL_RCC_SUBGHZSPI_CLK_ENABLE();
59 |
60 | /* SUBGHZ interrupt Init */
61 | HAL_NVIC_SetPriority(SUBGHZ_Radio_IRQn, 0, 0);
62 | HAL_NVIC_EnableIRQ(SUBGHZ_Radio_IRQn);
63 | /* USER CODE BEGIN SUBGHZ_MspInit 1 */
64 |
65 | /* USER CODE END SUBGHZ_MspInit 1 */
66 | }
67 |
68 | void HAL_SUBGHZ_MspDeInit(SUBGHZ_HandleTypeDef* subghzHandle)
69 | {
70 |
71 | /* USER CODE BEGIN SUBGHZ_MspDeInit 0 */
72 |
73 | /* USER CODE END SUBGHZ_MspDeInit 0 */
74 | /* Peripheral clock disable */
75 | __HAL_RCC_SUBGHZSPI_CLK_DISABLE();
76 |
77 | /* SUBGHZ interrupt Deinit */
78 | HAL_NVIC_DisableIRQ(SUBGHZ_Radio_IRQn);
79 | /* USER CODE BEGIN SUBGHZ_MspDeInit 1 */
80 |
81 | /* USER CODE END SUBGHZ_MspDeInit 1 */
82 | }
83 |
84 | /* USER CODE BEGIN 1 */
85 |
86 | /* USER CODE END 1 */
87 |
88 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
89 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN_AT/Core/Src/subghz.c:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file subghz.c
4 | * @brief This file provides code for the configuration
5 | * of the SUBGHZ instances.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 |
20 | /* Includes ------------------------------------------------------------------*/
21 | #include "subghz.h"
22 |
23 | /* USER CODE BEGIN 0 */
24 |
25 | /* USER CODE END 0 */
26 |
27 | SUBGHZ_HandleTypeDef hsubghz;
28 |
29 | /* SUBGHZ init function */
30 | void MX_SUBGHZ_Init(void)
31 | {
32 |
33 | /* USER CODE BEGIN SUBGHZ_Init 0 */
34 |
35 | /* USER CODE END SUBGHZ_Init 0 */
36 |
37 | /* USER CODE BEGIN SUBGHZ_Init 1 */
38 |
39 | /* USER CODE END SUBGHZ_Init 1 */
40 | hsubghz.Init.BaudratePrescaler = SUBGHZSPI_BAUDRATEPRESCALER_4;
41 | if (HAL_SUBGHZ_Init(&hsubghz) != HAL_OK)
42 | {
43 | Error_Handler();
44 | }
45 | /* USER CODE BEGIN SUBGHZ_Init 2 */
46 |
47 | /* USER CODE END SUBGHZ_Init 2 */
48 |
49 | }
50 |
51 | void HAL_SUBGHZ_MspInit(SUBGHZ_HandleTypeDef* subghzHandle)
52 | {
53 |
54 | /* USER CODE BEGIN SUBGHZ_MspInit 0 */
55 |
56 | /* USER CODE END SUBGHZ_MspInit 0 */
57 | /* SUBGHZ clock enable */
58 | __HAL_RCC_SUBGHZSPI_CLK_ENABLE();
59 |
60 | /* SUBGHZ interrupt Init */
61 | HAL_NVIC_SetPriority(SUBGHZ_Radio_IRQn, 0, 0);
62 | HAL_NVIC_EnableIRQ(SUBGHZ_Radio_IRQn);
63 | /* USER CODE BEGIN SUBGHZ_MspInit 1 */
64 |
65 | /* USER CODE END SUBGHZ_MspInit 1 */
66 | }
67 |
68 | void HAL_SUBGHZ_MspDeInit(SUBGHZ_HandleTypeDef* subghzHandle)
69 | {
70 |
71 | /* USER CODE BEGIN SUBGHZ_MspDeInit 0 */
72 |
73 | /* USER CODE END SUBGHZ_MspDeInit 0 */
74 | /* Peripheral clock disable */
75 | __HAL_RCC_SUBGHZSPI_CLK_DISABLE();
76 |
77 | /* SUBGHZ interrupt Deinit */
78 | HAL_NVIC_DisableIRQ(SUBGHZ_Radio_IRQn);
79 | /* USER CODE BEGIN SUBGHZ_MspDeInit 1 */
80 |
81 | /* USER CODE END SUBGHZ_MspDeInit 1 */
82 | }
83 |
84 | /* USER CODE BEGIN 1 */
85 |
86 | /* USER CODE END 1 */
87 |
88 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
89 |
--------------------------------------------------------------------------------
/Projects/Applications/LoRaWAN/LoRaWAN_End_Node/Core/Src/subghz.c:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file subghz.c
4 | * @brief This file provides code for the configuration
5 | * of the SUBGHZ instances.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2021 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under Ultimate Liberty license
13 | * SLA0044, the "License"; You may not use this file except in compliance with
14 | * the License. You may obtain a copy of the License at:
15 | * www.st.com/SLA0044
16 | *
17 | ******************************************************************************
18 | */
19 |
20 | /* Includes ------------------------------------------------------------------*/
21 | #include "subghz.h"
22 |
23 | /* USER CODE BEGIN 0 */
24 |
25 | /* USER CODE END 0 */
26 |
27 | SUBGHZ_HandleTypeDef hsubghz;
28 |
29 | /* SUBGHZ init function */
30 | void MX_SUBGHZ_Init(void)
31 | {
32 |
33 | /* USER CODE BEGIN SUBGHZ_Init 0 */
34 |
35 | /* USER CODE END SUBGHZ_Init 0 */
36 |
37 | /* USER CODE BEGIN SUBGHZ_Init 1 */
38 |
39 | /* USER CODE END SUBGHZ_Init 1 */
40 | hsubghz.Init.BaudratePrescaler = SUBGHZSPI_BAUDRATEPRESCALER_4;
41 | if (HAL_SUBGHZ_Init(&hsubghz) != HAL_OK)
42 | {
43 | Error_Handler();
44 | }
45 | /* USER CODE BEGIN SUBGHZ_Init 2 */
46 |
47 | /* USER CODE END SUBGHZ_Init 2 */
48 |
49 | }
50 |
51 | void HAL_SUBGHZ_MspInit(SUBGHZ_HandleTypeDef* subghzHandle)
52 | {
53 |
54 | /* USER CODE BEGIN SUBGHZ_MspInit 0 */
55 |
56 | /* USER CODE END SUBGHZ_MspInit 0 */
57 | /* SUBGHZ clock enable */
58 | __HAL_RCC_SUBGHZSPI_CLK_ENABLE();
59 |
60 | /* SUBGHZ interrupt Init */
61 | HAL_NVIC_SetPriority(SUBGHZ_Radio_IRQn, 0, 0);
62 | HAL_NVIC_EnableIRQ(SUBGHZ_Radio_IRQn);
63 | /* USER CODE BEGIN SUBGHZ_MspInit 1 */
64 |
65 | /* USER CODE END SUBGHZ_MspInit 1 */
66 | }
67 |
68 | void HAL_SUBGHZ_MspDeInit(SUBGHZ_HandleTypeDef* subghzHandle)
69 | {
70 |
71 | /* USER CODE BEGIN SUBGHZ_MspDeInit 0 */
72 |
73 | /* USER CODE END SUBGHZ_MspDeInit 0 */
74 | /* Peripheral clock disable */
75 | __HAL_RCC_SUBGHZSPI_CLK_DISABLE();
76 |
77 | /* SUBGHZ interrupt Deinit */
78 | HAL_NVIC_DisableIRQ(SUBGHZ_Radio_IRQn);
79 | /* USER CODE BEGIN SUBGHZ_MspDeInit 1 */
80 |
81 | /* USER CODE END SUBGHZ_MspDeInit 1 */
82 | }
83 |
84 | /* USER CODE BEGIN 1 */
85 |
86 | /* USER CODE END 1 */
87 |
88 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
89 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/LoRaWAN/Mac/LoRaMacParser.h:
--------------------------------------------------------------------------------
1 | /*!
2 | * \file LoRaMacParser.h
3 | *
4 | * \brief LoRa MAC layer message parser functionality implementation
5 | *
6 | * \copyright Revised BSD License, see section \ref LICENSE.
7 | *
8 | * \code
9 | * ______ _
10 | * / _____) _ | |
11 | * ( (____ _____ ____ _| |_ _____ ____| |__
12 | * \____ \| ___ | (_ _) ___ |/ ___) _ \
13 | * _____) ) ____| | | || |_| ____( (___| | | |
14 | * (______/|_____)_|_|_| \__)_____)\____)_| |_|
15 | * (C)2013 Semtech
16 | *
17 | * ___ _____ _ ___ _ _____ ___ ___ ___ ___
18 | * / __|_ _/_\ / __| |/ / __/ _ \| _ \/ __| __|
19 | * \__ \ | |/ _ \ (__| ' <| _| (_) | / (__| _|
20 | * |___/ |_/_/ \_\___|_|\_\_| \___/|_|_\\___|___|
21 | * embedded.connectivity.solutions===============
22 | *
23 | * \endcode
24 | *
25 | * \author Miguel Luis ( Semtech )
26 | *
27 | * \author Gregory Cristian ( Semtech )
28 | *
29 | * \author Daniel Jaeckle ( STACKFORCE )
30 | *
31 | * \author Johannes Bruder ( STACKFORCE )
32 | *
33 | * addtogroup LORAMAC
34 | * \{
35 | *
36 | */
37 | #ifndef __LORAMAC_PARSER_H__
38 | #define __LORAMAC_PARSER_H__
39 |
40 | #ifdef __cplusplus
41 | extern "C"
42 | {
43 | #endif
44 |
45 | #include
46 | #include "LoRaMacMessageTypes.h"
47 |
48 | /*!
49 | * LoRaMac Parser Status
50 | */
51 | typedef enum eLoRaMacParserStatus
52 | {
53 | /*!
54 | * No error occurred
55 | */
56 | LORAMAC_PARSER_SUCCESS = 0,
57 | /*!
58 | * Failure during parsing occurred
59 | */
60 | LORAMAC_PARSER_FAIL,
61 | /*!
62 | * Null pointer exception
63 | */
64 | LORAMAC_PARSER_ERROR_NPE,
65 | /*!
66 | * Undefined Error occurred
67 | */
68 | LORAMAC_PARSER_ERROR,
69 | }LoRaMacParserStatus_t;
70 |
71 |
72 | /*!
73 | * Parse a serialized join-accept message and fills the structured object.
74 | *
75 | * \param[IN/OUT] macMsg - Join-accept message object
76 | * \retval - Status of the operation
77 | */
78 | LoRaMacParserStatus_t LoRaMacParserJoinAccept( LoRaMacMessageJoinAccept_t *macMsg );
79 |
80 | /*!
81 | * Parse a serialized data message and fills the structured object.
82 | *
83 | * \param[IN/OUT] macMsg - Data message object
84 | * \retval - Status of the operation
85 | */
86 | LoRaMacParserStatus_t LoRaMacParserData( LoRaMacMessageData_t *macMsg );
87 |
88 | /*! \} addtogroup LORAMAC */
89 |
90 | #ifdef __cplusplus
91 | }
92 | #endif
93 |
94 | #endif // __LORAMAC_PARSER_H__
95 |
96 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN/Core/Inc/platform.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file platform.h
5 | * @author MCD Application Team
6 | * @brief Header for General HW instances configuration
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2020 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under Ultimate Liberty license
14 | * SLA0044, the "License"; You may not use this file except in compliance with
15 | * the License. You may obtain a copy of the License at:
16 | * www.st.com/SLA0044
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __PLATFORM_H__
24 | #define __PLATFORM_H__
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 | /* Exported constants --------------------------------------------------------*/
31 |
32 | #define USE_BSP_DRIVER
33 | /* USER CODE BEGIN EC */
34 |
35 | /* USER CODE END EC */
36 |
37 | /* Includes ------------------------------------------------------------------*/
38 | #include
39 | #include "stm32wlxx.h"
40 | #include "main.h"
41 | #include "stm32wlxx_ll_gpio.h"
42 | #if defined(USE_BSP_DRIVER)
43 | /* code generated by STM32CubeMX does not support BSP. */
44 | /* In order to use BSP, users can add the BSP files in the IDE project space */
45 | /* and define USE_BSP_DRIVER in the preprocessor definitions */
46 | #include "stm32wlxx_LoRa_E5_mini.h"
47 | #include "stm32wlxx_LoRa_E5_mini_radio.h"
48 | #endif /* defined(USE_BSP_DRIVER) */
49 |
50 | /* USER CODE BEGIN include */
51 |
52 | /* USER CODE END include */
53 |
54 | /* Exported types ------------------------------------------------------------*/
55 | /* USER CODE BEGIN ET */
56 |
57 | /* USER CODE END ET */
58 |
59 | /* External variables --------------------------------------------------------*/
60 | /* USER CODE BEGIN EV */
61 |
62 | /* USER CODE END EV */
63 |
64 | /* Exported macro ------------------------------------------------------------*/
65 | /* USER CODE BEGIN EM */
66 |
67 | /* USER CODE END EM */
68 |
69 | /* Exported functions prototypes ---------------------------------------------*/
70 | /* USER CODE BEGIN EFP */
71 |
72 | /* USER CODE END EFP */
73 |
74 | #ifdef __cplusplus
75 | }
76 | #endif
77 |
78 | #endif /* __PLATFORM_H__ */
79 |
80 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
81 |
--------------------------------------------------------------------------------
/Projects/Applications/LoRaWAN/LoRaWAN_End_Node/Core/Inc/platform.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file platform.h
5 | * @author MCD Application Team
6 | * @brief Header for General HW instances configuration
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2020 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under Ultimate Liberty license
14 | * SLA0044, the "License"; You may not use this file except in compliance with
15 | * the License. You may obtain a copy of the License at:
16 | * www.st.com/SLA0044
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __PLATFORM_H__
24 | #define __PLATFORM_H__
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 | /* Exported constants --------------------------------------------------------*/
31 |
32 | #define USE_BSP_DRIVER
33 | /* USER CODE BEGIN EC */
34 |
35 | /* USER CODE END EC */
36 |
37 | /* Includes ------------------------------------------------------------------*/
38 | #include
39 | #include "stm32wlxx.h"
40 | #include "main.h"
41 | #include "stm32wlxx_ll_gpio.h"
42 | #if defined(USE_BSP_DRIVER)
43 | /* code generated by STM32CubeMX does not support BSP. */
44 | /* In order to use BSP, users can add the BSP files in the IDE project space */
45 | /* and define USE_BSP_DRIVER in the preprocessor definitions */
46 | #include "stm32wlxx_LoRa_E5_mini.h"
47 | #include "stm32wlxx_LoRa_E5_mini_radio.h"
48 | #endif /* defined(USE_BSP_DRIVER) */
49 |
50 | /* USER CODE BEGIN include */
51 |
52 | /* USER CODE END include */
53 |
54 | /* Exported types ------------------------------------------------------------*/
55 | /* USER CODE BEGIN ET */
56 |
57 | /* USER CODE END ET */
58 |
59 | /* External variables --------------------------------------------------------*/
60 | /* USER CODE BEGIN EV */
61 |
62 | /* USER CODE END EV */
63 |
64 | /* Exported macro ------------------------------------------------------------*/
65 | /* USER CODE BEGIN EM */
66 |
67 | /* USER CODE END EM */
68 |
69 | /* Exported functions prototypes ---------------------------------------------*/
70 | /* USER CODE BEGIN EFP */
71 |
72 | /* USER CODE END EFP */
73 |
74 | #ifdef __cplusplus
75 | }
76 | #endif
77 |
78 | #endif /* __PLATFORM_H__ */
79 |
80 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
81 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN_AT/Core/Inc/platform.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file platform.h
5 | * @author MCD Application Team
6 | * @brief Header for General HW instances configuration
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2020 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under Ultimate Liberty license
14 | * SLA0044, the "License"; You may not use this file except in compliance with
15 | * the License. You may obtain a copy of the License at:
16 | * www.st.com/SLA0044
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __PLATFORM_H__
24 | #define __PLATFORM_H__
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 | /* Exported constants --------------------------------------------------------*/
31 |
32 | #define USE_BSP_DRIVER
33 | /* USER CODE BEGIN EC */
34 |
35 | /* USER CODE END EC */
36 |
37 | /* Includes ------------------------------------------------------------------*/
38 | #include
39 | #include "stm32wlxx.h"
40 | #include "main.h"
41 | #include "stm32wlxx_ll_gpio.h"
42 | #if defined(USE_BSP_DRIVER)
43 | /* code generated by STM32CubeMX does not support BSP. */
44 | /* In order to use BSP, users can add the BSP files in the IDE project space */
45 | /* and define USE_BSP_DRIVER in the preprocessor definitions */
46 | #include "stm32wlxx_LoRa_E5_mini.h"
47 | #include "stm32wlxx_LoRa_E5_mini_radio.h"
48 | #endif /* defined(USE_BSP_DRIVER) */
49 |
50 | /* USER CODE BEGIN include */
51 |
52 | /* USER CODE END include */
53 |
54 | /* Exported types ------------------------------------------------------------*/
55 | /* USER CODE BEGIN ET */
56 |
57 | /* USER CODE END ET */
58 |
59 | /* External variables --------------------------------------------------------*/
60 | /* USER CODE BEGIN EV */
61 |
62 | /* USER CODE END EV */
63 |
64 | /* Exported macro ------------------------------------------------------------*/
65 | /* USER CODE BEGIN EM */
66 |
67 | /* USER CODE END EM */
68 |
69 | /* Exported functions prototypes ---------------------------------------------*/
70 | /* USER CODE BEGIN EFP */
71 |
72 | /* USER CODE END EFP */
73 |
74 | #ifdef __cplusplus
75 | }
76 | #endif
77 |
78 | #endif /* __PLATFORM_H__ */
79 |
80 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
81 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/littlefs/Makefile:
--------------------------------------------------------------------------------
1 | ifdef BUILDDIR
2 | # make sure BUILDDIR ends with a slash
3 | override BUILDDIR := $(BUILDDIR)/
4 | # bit of a hack, but we want to make sure BUILDDIR directory structure
5 | # is correct before any commands
6 | $(if $(findstring n,$(MAKEFLAGS)),, $(shell mkdir -p \
7 | $(BUILDDIR) \
8 | $(BUILDDIR)bd \
9 | $(BUILDDIR)tests))
10 | endif
11 |
12 | # overridable target/src/tools/flags/etc
13 | ifneq ($(wildcard test.c main.c),)
14 | TARGET ?= $(BUILDDIR)lfs
15 | else
16 | TARGET ?= $(BUILDDIR)lfs.a
17 | endif
18 |
19 |
20 | CC ?= gcc
21 | AR ?= ar
22 | SIZE ?= size
23 | CTAGS ?= ctags
24 | NM ?= nm
25 | LCOV ?= lcov
26 |
27 | SRC ?= $(wildcard *.c)
28 | OBJ := $(SRC:%.c=$(BUILDDIR)%.o)
29 | DEP := $(SRC:%.c=$(BUILDDIR)%.d)
30 | ASM := $(SRC:%.c=$(BUILDDIR)%.s)
31 |
32 | ifdef DEBUG
33 | override CFLAGS += -O0 -g3
34 | else
35 | override CFLAGS += -Os
36 | endif
37 | ifdef TRACE
38 | override CFLAGS += -DLFS_YES_TRACE
39 | endif
40 | override CFLAGS += -I.
41 | override CFLAGS += -std=c99 -Wall -pedantic
42 | override CFLAGS += -Wextra -Wshadow -Wjump-misses-init -Wundef
43 |
44 | ifdef VERBOSE
45 | override TESTFLAGS += -v
46 | override CODEFLAGS += -v
47 | override COVERAGEFLAGS += -v
48 | endif
49 | ifdef EXEC
50 | override TESTFLAGS += --exec="$(EXEC)"
51 | endif
52 | ifdef BUILDDIR
53 | override TESTFLAGS += --build-dir="$(BUILDDIR:/=)"
54 | override CODEFLAGS += --build-dir="$(BUILDDIR:/=)"
55 | endif
56 | ifneq ($(NM),nm)
57 | override CODEFLAGS += --nm-tool="$(NM)"
58 | endif
59 |
60 |
61 | # commands
62 | .PHONY: all build
63 | all build: $(TARGET)
64 |
65 | .PHONY: asm
66 | asm: $(ASM)
67 |
68 | .PHONY: size
69 | size: $(OBJ)
70 | $(SIZE) -t $^
71 |
72 | .PHONY: tags
73 | tags:
74 | $(CTAGS) --totals --c-types=+p $(shell find -H -name '*.h') $(SRC)
75 |
76 | .PHONY: code
77 | code: $(OBJ)
78 | ./scripts/code.py $^ $(CODEFLAGS)
79 |
80 | .PHONY: test
81 | test:
82 | ./scripts/test.py $(TESTFLAGS)
83 | .SECONDEXPANSION:
84 | test%: tests/test$$(firstword $$(subst \#, ,%)).toml
85 | ./scripts/test.py $@ $(TESTFLAGS)
86 |
87 | .PHONY: coverage
88 | coverage:
89 | ./scripts/coverage.py $(BUILDDIR)tests/*.toml.info $(COVERAGEFLAGS)
90 |
91 | # rules
92 | -include $(DEP)
93 | .SUFFIXES:
94 |
95 | $(BUILDDIR)lfs: $(OBJ)
96 | $(CC) $(CFLAGS) $^ $(LFLAGS) -o $@
97 |
98 | $(BUILDDIR)%.a: $(OBJ)
99 | $(AR) rcs $@ $^
100 |
101 | $(BUILDDIR)%.o: %.c
102 | $(CC) -c -MMD $(CFLAGS) $< -o $@
103 |
104 | $(BUILDDIR)%.s: %.c
105 | $(CC) -S $(CFLAGS) $< -o $@
106 |
107 | # clean everything
108 | .PHONY: clean
109 | clean:
110 | rm -f $(TARGET)
111 | rm -f $(OBJ)
112 | rm -f $(DEP)
113 | rm -f $(ASM)
114 | rm -f $(BUILDDIR)tests/*.toml.*
115 |
--------------------------------------------------------------------------------
/Drivers/CMSIS/Device/ST/STM32WLxx/Include/system_stm32wlxx.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file system_stm32wlxx.h
4 | * @author MCD Application Team
5 | * @brief CMSIS Cortex Device System Source File for STM32WLxx devices.
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * Copyright (c) 2020(-2021) STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software is licensed under terms that can be found in the LICENSE file
13 | * in the root directory of this software component.
14 | * If no LICENSE file comes with this software, it is provided AS-IS.
15 | *
16 | ******************************************************************************
17 | */
18 |
19 | /** @addtogroup CMSIS
20 | * @{
21 | */
22 |
23 | /** @addtogroup stm32wlxx_system
24 | * @{
25 | */
26 |
27 | /**
28 | * @brief Define to prevent recursive inclusion
29 | */
30 | #ifndef __SYSTEM_STM32WLXX_H
31 | #define __SYSTEM_STM32WLXX_H
32 |
33 | #ifdef __cplusplus
34 | extern "C" {
35 | #endif
36 |
37 | #include
38 |
39 | /** @addtogroup STM32WLxx_System_Includes
40 | * @{
41 | */
42 |
43 | /**
44 | * @}
45 | */
46 |
47 |
48 | /** @addtogroup STM32WLxx_System_Exported_types
49 | * @{
50 | */
51 | /* The SystemCoreClock variable is updated in three ways:
52 | 1) from within HAL_Init()
53 | 2) by calling CMSIS function SystemCoreClockUpdate()
54 | 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
55 | */
56 |
57 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency */
58 |
59 | extern const uint32_t AHBPrescTable[16]; /*!< AHB prescalers table values */
60 | extern const uint32_t APBPrescTable[8]; /*!< APB prescalers table values */
61 | extern const uint32_t MSIRangeTable[16]; /*!< MSI ranges table values */
62 |
63 | /**
64 | * @}
65 | */
66 |
67 | /** @addtogroup STM32WLxx_System_Exported_Constants
68 | * @{
69 | */
70 |
71 | /**
72 | * @}
73 | */
74 |
75 | /** @addtogroup STM32WLxx_System_Exported_Macros
76 | * @{
77 | */
78 |
79 | /**
80 | * @}
81 | */
82 |
83 | /** @addtogroup STM32WLxx_System_Exported_Functions
84 | * @{
85 | */
86 |
87 | extern void SystemInit(void);
88 | extern void SystemCoreClockUpdate(void);
89 | /**
90 | * @}
91 | */
92 |
93 | #ifdef __cplusplus
94 | }
95 | #endif
96 |
97 | #endif /*__SYSTEM_STM32WLXX_H */
98 |
99 | /**
100 | * @}
101 | */
102 |
103 | /**
104 | * @}
105 | */
106 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
107 |
--------------------------------------------------------------------------------
/Drivers/CMSIS/Include/tz_context.h:
--------------------------------------------------------------------------------
1 | /******************************************************************************
2 | * @file tz_context.h
3 | * @brief Context Management for Armv8-M TrustZone
4 | * @version V1.0.1
5 | * @date 10. January 2018
6 | ******************************************************************************/
7 | /*
8 | * Copyright (c) 2017-2018 Arm Limited. All rights reserved.
9 | *
10 | * SPDX-License-Identifier: Apache-2.0
11 | *
12 | * Licensed under the Apache License, Version 2.0 (the License); you may
13 | * not use this file except in compliance with the License.
14 | * You may obtain a copy of the License at
15 | *
16 | * www.apache.org/licenses/LICENSE-2.0
17 | *
18 | * Unless required by applicable law or agreed to in writing, software
19 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT
20 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 | * See the License for the specific language governing permissions and
22 | * limitations under the License.
23 | */
24 |
25 | #if defined ( __ICCARM__ )
26 | #pragma system_include /* treat file as system include file for MISRA check */
27 | #elif defined (__clang__)
28 | #pragma clang system_header /* treat file as system include file */
29 | #endif
30 |
31 | #ifndef TZ_CONTEXT_H
32 | #define TZ_CONTEXT_H
33 |
34 | #include
35 |
36 | #ifndef TZ_MODULEID_T
37 | #define TZ_MODULEID_T
38 | /// \details Data type that identifies secure software modules called by a process.
39 | typedef uint32_t TZ_ModuleId_t;
40 | #endif
41 |
42 | /// \details TZ Memory ID identifies an allocated memory slot.
43 | typedef uint32_t TZ_MemoryId_t;
44 |
45 | /// Initialize secure context memory system
46 | /// \return execution status (1: success, 0: error)
47 | uint32_t TZ_InitContextSystem_S (void);
48 |
49 | /// Allocate context memory for calling secure software modules in TrustZone
50 | /// \param[in] module identifies software modules called from non-secure mode
51 | /// \return value != 0 id TrustZone memory slot identifier
52 | /// \return value 0 no memory available or internal error
53 | TZ_MemoryId_t TZ_AllocModuleContext_S (TZ_ModuleId_t module);
54 |
55 | /// Free context memory that was previously allocated with \ref TZ_AllocModuleContext_S
56 | /// \param[in] id TrustZone memory slot identifier
57 | /// \return execution status (1: success, 0: error)
58 | uint32_t TZ_FreeModuleContext_S (TZ_MemoryId_t id);
59 |
60 | /// Load secure context (called on RTOS thread context switch)
61 | /// \param[in] id TrustZone memory slot identifier
62 | /// \return execution status (1: success, 0: error)
63 | uint32_t TZ_LoadContext_S (TZ_MemoryId_t id);
64 |
65 | /// Store secure context (called on RTOS thread context switch)
66 | /// \param[in] id TrustZone memory slot identifier
67 | /// \return execution status (1: success, 0: error)
68 | uint32_t TZ_StoreContext_S (TZ_MemoryId_t id);
69 |
70 | #endif // TZ_CONTEXT_H
71 |
--------------------------------------------------------------------------------
/Projects/Applications/LoRaWAN/LoRaWAN_End_Node/LoRaWAN/App/Commissioning.h:
--------------------------------------------------------------------------------
1 | /*!
2 | * \file Commissioning.h
3 | *
4 | * \brief End-device commissioning parameters
5 | *
6 | * \copyright Revised BSD License, see section \ref LICENSE.
7 | *
8 | * \code
9 | * ______ _
10 | * / _____) _ | |
11 | * ( (____ _____ ____ _| |_ _____ ____| |__
12 | * \____ \| ___ | (_ _) ___ |/ ___) _ \
13 | * _____) ) ____| | | || |_| ____( (___| | | |
14 | * (______/|_____)_|_|_| \__)_____)\____)_| |_|
15 | * (C)2013-2020 Semtech
16 | *
17 | * \endcode
18 | */
19 | /**
20 | ******************************************************************************
21 | *
22 | * Portions COPYRIGHT 2020 STMicroelectronics
23 | *
24 | * @file Commissioning.h
25 | * @author MCD Application Team
26 | * @brief End-device commissioning parameters
27 | ******************************************************************************
28 | */
29 |
30 | /* Define to prevent recursive inclusion -------------------------------------*/
31 | #ifndef __COMMISSIONING_H__
32 | #define __COMMISSIONING_H__
33 |
34 | /*!
35 | ******************************************************************************
36 | ********************************** WARNING ***********************************
37 | ******************************************************************************
38 |
39 | The LoRaWAN AES128 keys are stored and provisioned on secure-elements.
40 |
41 | This project provides a software emulated secure-element.
42 | The LoRaWAN AES128 keys SHALL be updated under
43 | src/peripherals/-se\se-identity.h file.
44 |
45 | ******************************************************************************
46 | ******************************************************************************
47 | ******************************************************************************
48 | */
49 | #include "se-identity.h"
50 |
51 | /* USER CODE BEGIN EC1 */
52 |
53 | /* USER CODE END EC1 */
54 |
55 | /*!
56 | * When using ABP activation the MAC layer must know in advance to which server
57 | * version it will be connected.
58 | */
59 | #define ABP_ACTIVATION_LRWAN_VERSION_V10x 0x01000300 /* 1.0.3.0 */
60 |
61 | #define ABP_ACTIVATION_LRWAN_VERSION ABP_ACTIVATION_LRWAN_VERSION_V10x
62 |
63 | /*!
64 | * Indicates if the end-device support the operation with repeaters
65 | */
66 | #define LORAWAN_REPEATER_SUPPORT false
67 |
68 | /*!
69 | * Indicates if the end-device is to be connected to a private or public network
70 | */
71 | #define LORAWAN_PUBLIC_NETWORK true
72 |
73 | /*!
74 | * Current network ID
75 | */
76 | #define LORAWAN_NETWORK_ID ( uint32_t )0
77 |
78 | /* USER CODE BEGIN EC2 */
79 |
80 | /* USER CODE END EC2 */
81 |
82 | #endif /* __COMMISSIONING_H__ */
83 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN/LoRaWAN/App/Commissioning.h:
--------------------------------------------------------------------------------
1 | /*!
2 | * \file Commissioning.h
3 | *
4 | * \brief End-device commissioning parameters
5 | *
6 | * \copyright Revised BSD License, see section \ref LICENSE.
7 | *
8 | * \code
9 | * ______ _
10 | * / _____) _ | |
11 | * ( (____ _____ ____ _| |_ _____ ____| |__
12 | * \____ \| ___ | (_ _) ___ |/ ___) _ \
13 | * _____) ) ____| | | || |_| ____( (___| | | |
14 | * (______/|_____)_|_|_| \__)_____)\____)_| |_|
15 | * (C)2013-2020 Semtech
16 | *
17 | * \endcode
18 | */
19 | /**
20 | ******************************************************************************
21 | *
22 | * Portions COPYRIGHT 2020 STMicroelectronics
23 | *
24 | * @file Commissioning.h
25 | * @author MCD Application Team
26 | * @brief End-device commissioning parameters
27 | ******************************************************************************
28 | */
29 |
30 | /* Define to prevent recursive inclusion -------------------------------------*/
31 | #ifndef __COMMISSIONING_H__
32 | #define __COMMISSIONING_H__
33 |
34 | /*!
35 | ******************************************************************************
36 | ********************************** WARNING ***********************************
37 | ******************************************************************************
38 |
39 | The LoRaWAN AES128 keys are stored and provisioned on secure-elements.
40 |
41 | This project provides a software emulated secure-element.
42 | The LoRaWAN AES128 keys SHALL be updated under
43 | src/peripherals/-se\se-identity.h file.
44 |
45 | ******************************************************************************
46 | ******************************************************************************
47 | ******************************************************************************
48 | */
49 | #include "se-identity.h"
50 |
51 | /* USER CODE BEGIN EC1 */
52 |
53 | /* USER CODE END EC1 */
54 |
55 | /*!
56 | * When using ABP activation the MAC layer must know in advance to which server
57 | * version it will be connected.
58 | */
59 | #define ABP_ACTIVATION_LRWAN_VERSION_V10x 0x01000300 /* 1.0.3.0 */
60 |
61 | #define ABP_ACTIVATION_LRWAN_VERSION ABP_ACTIVATION_LRWAN_VERSION_V10x
62 |
63 | /*!
64 | * Indicates if the end-device support the operation with repeaters
65 | */
66 | #define LORAWAN_REPEATER_SUPPORT false
67 |
68 | /*!
69 | * Indicates if the end-device is to be connected to a private or public network
70 | */
71 | #define LORAWAN_PUBLIC_NETWORK true
72 |
73 | /*!
74 | * Current network ID
75 | */
76 | #define LORAWAN_NETWORK_ID ( uint32_t )0
77 |
78 | /* USER CODE BEGIN EC2 */
79 |
80 | /* USER CODE END EC2 */
81 |
82 | #endif /* __COMMISSIONING_H__ */
83 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN_AT/LoRaWAN/App/Commissioning.h:
--------------------------------------------------------------------------------
1 | /*!
2 | * \file Commissioning.h
3 | *
4 | * \brief End-device commissioning parameters
5 | *
6 | * \copyright Revised BSD License, see section \ref LICENSE.
7 | *
8 | * \code
9 | * ______ _
10 | * / _____) _ | |
11 | * ( (____ _____ ____ _| |_ _____ ____| |__
12 | * \____ \| ___ | (_ _) ___ |/ ___) _ \
13 | * _____) ) ____| | | || |_| ____( (___| | | |
14 | * (______/|_____)_|_|_| \__)_____)\____)_| |_|
15 | * (C)2013-2020 Semtech
16 | *
17 | * \endcode
18 | */
19 | /**
20 | ******************************************************************************
21 | *
22 | * Portions COPYRIGHT 2020 STMicroelectronics
23 | *
24 | * @file Commissioning.h
25 | * @author MCD Application Team
26 | * @brief End-device commissioning parameters
27 | ******************************************************************************
28 | */
29 |
30 | /* Define to prevent recursive inclusion -------------------------------------*/
31 | #ifndef __COMMISSIONING_H__
32 | #define __COMMISSIONING_H__
33 |
34 | /*!
35 | ******************************************************************************
36 | ********************************** WARNING ***********************************
37 | ******************************************************************************
38 |
39 | The LoRaWAN AES128 keys are stored and provisioned on secure-elements.
40 |
41 | This project provides a software emulated secure-element.
42 | The LoRaWAN AES128 keys SHALL be updated under
43 | src/peripherals/-se\se-identity.h file.
44 |
45 | ******************************************************************************
46 | ******************************************************************************
47 | ******************************************************************************
48 | */
49 | #include "se-identity.h"
50 |
51 | /* USER CODE BEGIN EC1 */
52 |
53 | /* USER CODE END EC1 */
54 |
55 | /*!
56 | * When using ABP activation the MAC layer must know in advance to which server
57 | * version it will be connected.
58 | */
59 | #define ABP_ACTIVATION_LRWAN_VERSION_V10x 0x01000300 /* 1.0.3.0 */
60 |
61 | #define ABP_ACTIVATION_LRWAN_VERSION ABP_ACTIVATION_LRWAN_VERSION_V10x
62 |
63 | /*!
64 | * Indicates if the end-device support the operation with repeaters
65 | */
66 | #define LORAWAN_REPEATER_SUPPORT false
67 |
68 | /*!
69 | * Indicates if the end-device is to be connected to a private or public network
70 | */
71 | #define LORAWAN_PUBLIC_NETWORK true
72 |
73 | /*!
74 | * Current network ID
75 | */
76 | #define LORAWAN_NETWORK_ID ( uint32_t )0
77 |
78 | /* USER CODE BEGIN EC2 */
79 |
80 | /* USER CODE END EC2 */
81 |
82 | #endif /* __COMMISSIONING_H__ */
83 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/LoRaWAN/Conf/Commissioning_template.h:
--------------------------------------------------------------------------------
1 | /*!
2 | * \file Commissioning_template.h
3 | *
4 | * \brief End-device commissioning parameters
5 | *
6 | * \copyright Revised BSD License, see section \ref LICENSE.
7 | *
8 | * \code
9 | * ______ _
10 | * / _____) _ | |
11 | * ( (____ _____ ____ _| |_ _____ ____| |__
12 | * \____ \| ___ | (_ _) ___ |/ ___) _ \
13 | * _____) ) ____| | | || |_| ____( (___| | | |
14 | * (______/|_____)_|_|_| \__)_____)\____)_| |_|
15 | * (C)2013-2020 Semtech
16 | *
17 | * \endcode
18 | */
19 | /**
20 | ******************************************************************************
21 | *
22 | * Portions COPYRIGHT 2020 STMicroelectronics
23 | *
24 | * @file Commissioning_template.h
25 | * @author MCD Application Team
26 | * @brief End-device commissioning parameters
27 | ******************************************************************************
28 | */
29 |
30 | /* Define to prevent recursive inclusion -------------------------------------*/
31 | #ifndef __COMMISSIONING_H__
32 | #define __COMMISSIONING_H__
33 |
34 | /*!
35 | ******************************************************************************
36 | ********************************** WARNING ***********************************
37 | ******************************************************************************
38 |
39 | The LoRaWAN AES128 keys are stored and provisionned on secure-elements.
40 |
41 | This project providdes a software emulated secure-element.
42 | The LoRaWAN AES128 keys SHALL be updated under
43 | src/peripherals/-se\se-identity.h file.
44 |
45 | ******************************************************************************
46 | ******************************************************************************
47 | ******************************************************************************
48 | */
49 | #include "se-identity.h"
50 |
51 | /* USER CODE BEGIN EC1 */
52 |
53 | /* USER CODE END EC1 */
54 |
55 | /*!
56 | * When using ABP activation the MAC layer must know in advance to which server
57 | * version it will be connected.
58 | */
59 | #define ABP_ACTIVATION_LRWAN_VERSION_V10x 0x01000300 /* 1.0.3.0 */
60 |
61 | #define ABP_ACTIVATION_LRWAN_VERSION ABP_ACTIVATION_LRWAN_VERSION_V10x
62 |
63 | /*!
64 | * Indicates if the end-device support the operation with repeaters
65 | */
66 | #define LORAWAN_REPEATER_SUPPORT false
67 |
68 | /*!
69 | * Indicates if the end-device is to be connected to a private or public network
70 | */
71 | #define LORAWAN_PUBLIC_NETWORK true
72 |
73 | /*!
74 | * Current network ID
75 | */
76 | #define LORAWAN_NETWORK_ID ( uint32_t )0
77 |
78 | /* USER CODE BEGIN EC2 */
79 |
80 | /* USER CODE END EC2 */
81 |
82 | #endif /* __COMMISSIONING_H__ */
83 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/LoRaWAN/Conf/lora_info_template.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file lora_info_template.h
4 | * @author MCD Application Team
5 | * @brief To give info to the application about LoRaWAN configuration
6 | ******************************************************************************
7 | * @attention
8 | *
9 | * © Copyright (c) 2020 STMicroelectronics.
10 | * All rights reserved.
11 | *
12 | * This software component is licensed by ST under BSD 3-Clause license,
13 | * the "License"; You may not use this file except in compliance with the
14 | * License. You may obtain a copy of the License at:
15 | * opensource.org/licenses/BSD-3-Clause
16 | *
17 | ******************************************************************************
18 | */
19 | #ifndef __LORA_INFO_H__
20 | #define __LORA_INFO_H__
21 |
22 | #ifdef __cplusplus
23 | extern "C" {
24 | #endif
25 |
26 | /* Includes ------------------------------------------------------------------*/
27 | #include
28 |
29 | /* USER CODE BEGIN Includes */
30 |
31 | /* USER CODE END Includes */
32 |
33 | /* Exported constants --------------------------------------------------------*/
34 |
35 | /* USER CODE BEGIN EC */
36 |
37 | /* USER CODE END EC */
38 |
39 | /* Exported types ------------------------------------------------------------*/
40 | /*!
41 | * To give info to the application about LoraWAN capability
42 | * it can depend how it has been compiled (e.g. compiled regions ...)
43 | * Params should be better uint32_t foe easier alignment with info_table concept
44 | */
45 | typedef struct
46 | {
47 | uint32_t ActivationMode; /*!< 1: ABP, 2 : OTAA, 3: ABP & OTAA */
48 | uint32_t Region; /*!< Combination of regions compiled on MW */
49 | uint32_t ClassB; /*!< 0: not compiled in Mw, 1 : compiled in MW */
50 | uint32_t Kms; /*!< 0: not compiled in Mw, 1 : compiled in MW */
51 | } LoraInfo_t;
52 |
53 | /* USER CODE BEGIN ET */
54 |
55 | /* USER CODE END ET */
56 |
57 | /* External variables --------------------------------------------------------*/
58 |
59 | /* USER CODE BEGIN EV */
60 |
61 | /* USER CODE END EV */
62 |
63 | /* Exported macros -----------------------------------------------------------*/
64 |
65 | /* USER CODE BEGIN EM */
66 |
67 | /* USER CODE END EM */
68 |
69 | /* Exported functions ------------------------------------------------------- */
70 | /**
71 | * @brief initialises the LoraInfo table
72 | * @param none
73 | * @retval none
74 | */
75 | void LoraInfo_Init(void);
76 |
77 | /**
78 | * @brief returns the pointer to the LoraInfo capabilities table
79 | * @param none
80 | * @retval LoraInfo pointer
81 | */
82 | LoraInfo_t *LoraInfo_GetPtr(void);
83 |
84 | /* USER CODE BEGIN EF */
85 |
86 | /* USER CODE END EF */
87 |
88 | #ifdef __cplusplus
89 | }
90 | #endif
91 |
92 | #endif /* __LORA_INFO_H__ */
93 |
94 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
95 |
--------------------------------------------------------------------------------
/Projects/Applications/LoRaWAN/LoRaWAN_End_Node/LoRaWAN/App/lora_info.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file lora_info.h
5 | * @author MCD Application Team
6 | * @brief To give info to the application about LoRaWAN configuration
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2020 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under BSD 3-Clause license,
14 | * the "License"; You may not use this file except in compliance with the
15 | * License. You may obtain a copy of the License at:
16 | * opensource.org/licenses/BSD-3-Clause
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | #ifndef __LORA_INFO_H__
23 | #define __LORA_INFO_H__
24 |
25 | #ifdef __cplusplus
26 | extern "C" {
27 | #endif
28 |
29 | /* Includes ------------------------------------------------------------------*/
30 | #include
31 |
32 | /* USER CODE BEGIN Includes */
33 |
34 | /* USER CODE END Includes */
35 |
36 | /* Exported constants --------------------------------------------------------*/
37 |
38 | /* USER CODE BEGIN EC */
39 |
40 | /* USER CODE END EC */
41 |
42 | /* Exported types ------------------------------------------------------------*/
43 | /*!
44 | * To give info to the application about LoraWAN capability
45 | * it can depend how it has been compiled (e.g. compiled regions ...)
46 | * Params should be better uint32_t foe easier alignment with info_table concept
47 | */
48 | typedef struct
49 | {
50 | uint32_t ActivationMode; /*!< 1: ABP, 2 : OTAA, 3: ABP & OTAA */
51 | uint32_t Region; /*!< Combination of regions compiled on MW */
52 | uint32_t ClassB; /*!< 0: not compiled in Mw, 1 : compiled in MW */
53 | uint32_t Kms; /*!< 0: not compiled in Mw, 1 : compiled in MW */
54 | } LoraInfo_t;
55 |
56 | /* USER CODE BEGIN ET */
57 |
58 | /* USER CODE END ET */
59 |
60 | /* External variables --------------------------------------------------------*/
61 |
62 | /* USER CODE BEGIN EV */
63 |
64 | /* USER CODE END EV */
65 |
66 | /* Exported macros -----------------------------------------------------------*/
67 |
68 | /* USER CODE BEGIN EM */
69 |
70 | /* USER CODE END EM */
71 |
72 | /* Exported functions ------------------------------------------------------- */
73 | /**
74 | * @brief initialize the LoraInfo table
75 | */
76 | void LoraInfo_Init(void);
77 |
78 | /**
79 | * @brief returns the pointer to the LoraInfo capabilities table
80 | * @retval LoraInfo pointer
81 | */
82 | LoraInfo_t *LoraInfo_GetPtr(void);
83 |
84 | /* USER CODE BEGIN EF */
85 |
86 | /* USER CODE END EF */
87 |
88 | #ifdef __cplusplus
89 | }
90 | #endif
91 |
92 | #endif /* __LORA_INFO_H__ */
93 |
94 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
95 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN/Core/Inc/stm32wlxx_LoRa_E5_mini_conf.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file stm32wlxx_LoRa_E5_mini_conf.h
5 | * @author MCD Application Team
6 | * @brief STM32WLxx_LoRa_E5_mini board configuration file.
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * Copyright (c) 2020(-2021) STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software is licensed under terms that can be found in the LICENSE file
14 | * in the root directory of this software component.
15 | * If no LICENSE file comes with this software, it is provided AS-IS.
16 | *
17 | ******************************************************************************
18 | */
19 | /* USER CODE END Header */
20 |
21 | /* Define to prevent recursive inclusion -------------------------------------*/
22 | #ifndef STM32WLXX_LORA_E5_MINI_CONF_H
23 | #define STM32WLXX_LORA_E5_MINI_CONF_H
24 |
25 | #ifdef __cplusplus
26 | extern "C" {
27 | #endif
28 |
29 | /* Includes ------------------------------------------------------------------*/
30 | #include "stm32wlxx_hal.h"
31 |
32 | /* USER CODE BEGIN Includes */
33 |
34 | /* USER CODE END Includes */
35 |
36 | /* Exported types ------------------------------------------------------------*/
37 | /* USER CODE BEGIN ET */
38 |
39 | /* USER CODE END ET */
40 |
41 | /* Exported constants --------------------------------------------------------*/
42 | /** @addtogroup BSP
43 | * @{
44 | */
45 |
46 | /** @addtogroup STM32WLXX_LoRa_E5_mini
47 | * @{
48 | */
49 |
50 | /** @defgroup STM32WLXX_LoRa_E5_mini_CONFIG CONFIG
51 | * @{
52 | */
53 |
54 | /** @defgroup STM32WLXX_LoRa_E5_mini_CONFIG_Exported_Constants Exported Constants
55 | * @{
56 | */
57 | /* COM usage define */
58 | #define USE_BSP_COM_FEATURE 0U
59 |
60 | /* COM log define */
61 | #define USE_COM_LOG 0U
62 |
63 | /* IRQ priorities */
64 | #define BSP_BUTTON_SWx_IT_PRIORITY 15U
65 |
66 | /**
67 | * @}
68 | */
69 |
70 | /**
71 | * @}
72 | */
73 |
74 | /**
75 | * @}
76 | */
77 |
78 | /**
79 | * @}
80 | */
81 |
82 | /* USER CODE BEGIN EC */
83 |
84 | /* USER CODE END EC */
85 |
86 | /* External variables --------------------------------------------------------*/
87 | /* USER CODE BEGIN EV */
88 |
89 | /* USER CODE END EV */
90 |
91 | /* Exported macro ------------------------------------------------------------*/
92 | /* USER CODE BEGIN EM */
93 |
94 | /* USER CODE END EM */
95 |
96 | /* Exported functions prototypes ---------------------------------------------*/
97 | /* USER CODE BEGIN EFP */
98 |
99 | /* USER CODE END EFP */
100 |
101 | #ifdef __cplusplus
102 | }
103 | #endif
104 |
105 | #endif /* STM32WLXX_NUCLEO_CONF_H */
106 |
107 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
108 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN/LoRaWAN/App/lora_info.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file lora_info.h
5 | * @author MCD Application Team
6 | * @brief To give info to the application about LoRaWAN configuration
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2020 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under BSD 3-Clause license,
14 | * the "License"; You may not use this file except in compliance with the
15 | * License. You may obtain a copy of the License at:
16 | * opensource.org/licenses/BSD-3-Clause
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | #ifndef __LORA_INFO_H__
23 | #define __LORA_INFO_H__
24 |
25 | #ifdef __cplusplus
26 | extern "C" {
27 | #endif
28 |
29 | /* Includes ------------------------------------------------------------------*/
30 | #include
31 |
32 | /* USER CODE BEGIN Includes */
33 |
34 | /* USER CODE END Includes */
35 |
36 | /* Exported constants --------------------------------------------------------*/
37 |
38 | /* USER CODE BEGIN EC */
39 |
40 | /* USER CODE END EC */
41 |
42 | /* Exported types ------------------------------------------------------------*/
43 | /*!
44 | * To give info to the application about LoraWAN capability
45 | * it can depend how it has been compiled (e.g. compiled regions ...)
46 | * Params should be better uint32_t foe easier alignment with info_table concept
47 | */
48 | typedef struct
49 | {
50 | uint32_t ActivationMode; /*!< 1: ABP, 2 : OTAA, 3: ABP & OTAA */
51 | uint32_t Region; /*!< Combination of regions compiled on MW */
52 | uint32_t ClassB; /*!< 0: not compiled in Mw, 1 : compiled in MW */
53 | uint32_t Kms; /*!< 0: not compiled in Mw, 1 : compiled in MW */
54 | } LoraInfo_t;
55 |
56 | /* USER CODE BEGIN ET */
57 |
58 | /* USER CODE END ET */
59 |
60 | /* External variables --------------------------------------------------------*/
61 |
62 | /* USER CODE BEGIN EV */
63 |
64 | /* USER CODE END EV */
65 |
66 | /* Exported macros -----------------------------------------------------------*/
67 |
68 | /* USER CODE BEGIN EM */
69 |
70 | /* USER CODE END EM */
71 |
72 | /* Exported functions ------------------------------------------------------- */
73 | /**
74 | * @brief initialize the LoraInfo table
75 | */
76 | void LoraInfo_Init(void);
77 |
78 | /**
79 | * @brief returns the pointer to the LoraInfo capabilities table
80 | * @retval LoraInfo pointer
81 | */
82 | LoraInfo_t *LoraInfo_GetPtr(void);
83 |
84 | /* USER CODE BEGIN EF */
85 |
86 | /* USER CODE END EF */
87 |
88 | #ifdef __cplusplus
89 | }
90 | #endif
91 |
92 | #endif /* __LORA_INFO_H__ */
93 |
94 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
95 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN_AT/Core/Inc/stm32wlxx_LoRa_E5_mini_conf.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file stm32wlxx_LoRa_E5_mini_conf.h
5 | * @author MCD Application Team
6 | * @brief STM32WLxx_LoRa_E5_mini board configuration file.
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * Copyright (c) 2020(-2021) STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software is licensed under terms that can be found in the LICENSE file
14 | * in the root directory of this software component.
15 | * If no LICENSE file comes with this software, it is provided AS-IS.
16 | *
17 | ******************************************************************************
18 | */
19 | /* USER CODE END Header */
20 |
21 | /* Define to prevent recursive inclusion -------------------------------------*/
22 | #ifndef STM32WLXX_LORA_E5_MINI_CONF_H
23 | #define STM32WLXX_LORA_E5_MINI_CONF_H
24 |
25 | #ifdef __cplusplus
26 | extern "C" {
27 | #endif
28 |
29 | /* Includes ------------------------------------------------------------------*/
30 | #include "stm32wlxx_hal.h"
31 |
32 | /* USER CODE BEGIN Includes */
33 |
34 | /* USER CODE END Includes */
35 |
36 | /* Exported types ------------------------------------------------------------*/
37 | /* USER CODE BEGIN ET */
38 |
39 | /* USER CODE END ET */
40 |
41 | /* Exported constants --------------------------------------------------------*/
42 | /** @addtogroup BSP
43 | * @{
44 | */
45 |
46 | /** @addtogroup STM32WLXX_LoRa_E5_mini
47 | * @{
48 | */
49 |
50 | /** @defgroup STM32WLXX_LoRa_E5_mini_CONFIG CONFIG
51 | * @{
52 | */
53 |
54 | /** @defgroup STM32WLXX_LoRa_E5_mini_CONFIG_Exported_Constants Exported Constants
55 | * @{
56 | */
57 | /* COM usage define */
58 | #define USE_BSP_COM_FEATURE 0U
59 |
60 | /* COM log define */
61 | #define USE_COM_LOG 0U
62 |
63 | /* IRQ priorities */
64 | #define BSP_BUTTON_SWx_IT_PRIORITY 15U
65 |
66 | /**
67 | * @}
68 | */
69 |
70 | /**
71 | * @}
72 | */
73 |
74 | /**
75 | * @}
76 | */
77 |
78 | /**
79 | * @}
80 | */
81 |
82 | /* USER CODE BEGIN EC */
83 |
84 | /* USER CODE END EC */
85 |
86 | /* External variables --------------------------------------------------------*/
87 | /* USER CODE BEGIN EV */
88 |
89 | /* USER CODE END EV */
90 |
91 | /* Exported macro ------------------------------------------------------------*/
92 | /* USER CODE BEGIN EM */
93 |
94 | /* USER CODE END EM */
95 |
96 | /* Exported functions prototypes ---------------------------------------------*/
97 | /* USER CODE BEGIN EFP */
98 |
99 | /* USER CODE END EFP */
100 |
101 | #ifdef __cplusplus
102 | }
103 | #endif
104 |
105 | #endif /* STM32WLXX_NUCLEO_CONF_H */
106 |
107 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
108 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN_AT/LoRaWAN/App/lora_info.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file lora_info.h
5 | * @author MCD Application Team
6 | * @brief To give info to the application about LoRaWAN configuration
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2020 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under BSD 3-Clause license,
14 | * the "License"; You may not use this file except in compliance with the
15 | * License. You may obtain a copy of the License at:
16 | * opensource.org/licenses/BSD-3-Clause
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | #ifndef __LORA_INFO_H__
23 | #define __LORA_INFO_H__
24 |
25 | #ifdef __cplusplus
26 | extern "C" {
27 | #endif
28 |
29 | /* Includes ------------------------------------------------------------------*/
30 | #include
31 |
32 | /* USER CODE BEGIN Includes */
33 |
34 | /* USER CODE END Includes */
35 |
36 | /* Exported constants --------------------------------------------------------*/
37 |
38 | /* USER CODE BEGIN EC */
39 |
40 | /* USER CODE END EC */
41 |
42 | /* Exported types ------------------------------------------------------------*/
43 | /*!
44 | * To give info to the application about LoraWAN capability
45 | * it can depend how it has been compiled (e.g. compiled regions ...)
46 | * Params should be better uint32_t foe easier alignment with info_table concept
47 | */
48 | typedef struct
49 | {
50 | uint32_t ActivationMode; /*!< 1: ABP, 2 : OTAA, 3: ABP & OTAA */
51 | uint32_t Region; /*!< Combination of regions compiled on MW */
52 | uint32_t ClassB; /*!< 0: not compiled in Mw, 1 : compiled in MW */
53 | uint32_t Kms; /*!< 0: not compiled in Mw, 1 : compiled in MW */
54 | } LoraInfo_t;
55 |
56 | /* USER CODE BEGIN ET */
57 |
58 | /* USER CODE END ET */
59 |
60 | /* External variables --------------------------------------------------------*/
61 |
62 | /* USER CODE BEGIN EV */
63 |
64 | /* USER CODE END EV */
65 |
66 | /* Exported macros -----------------------------------------------------------*/
67 |
68 | /* USER CODE BEGIN EM */
69 |
70 | /* USER CODE END EM */
71 |
72 | /* Exported functions ------------------------------------------------------- */
73 | /**
74 | * @brief initialize the LoraInfo table
75 | */
76 | void LoraInfo_Init(void);
77 |
78 | /**
79 | * @brief returns the pointer to the LoraInfo capabilities table
80 | * @retval LoraInfo pointer
81 | */
82 | LoraInfo_t *LoraInfo_GetPtr(void);
83 |
84 | /* USER CODE BEGIN EF */
85 |
86 | /* USER CODE END EF */
87 |
88 | #ifdef __cplusplus
89 | }
90 | #endif
91 |
92 | #endif /* __LORA_INFO_H__ */
93 |
94 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
95 |
--------------------------------------------------------------------------------
/Projects/Applications/LoRaWAN/LoRaWAN_End_Node/Core/Inc/stm32wlxx_LoRa_E5_mini_conf.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file stm32wlxx_LoRa_E5_mini_conf.h
5 | * @author MCD Application Team
6 | * @brief STM32WLxx_LoRa_E5_mini board configuration file.
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * Copyright (c) 2020(-2021) STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software is licensed under terms that can be found in the LICENSE file
14 | * in the root directory of this software component.
15 | * If no LICENSE file comes with this software, it is provided AS-IS.
16 | *
17 | ******************************************************************************
18 | */
19 | /* USER CODE END Header */
20 |
21 | /* Define to prevent recursive inclusion -------------------------------------*/
22 | #ifndef STM32WLXX_LORA_E5_MINI_CONF_H
23 | #define STM32WLXX_LORA_E5_MINI_CONF_H
24 |
25 | #ifdef __cplusplus
26 | extern "C" {
27 | #endif
28 |
29 | /* Includes ------------------------------------------------------------------*/
30 | #include "stm32wlxx_hal.h"
31 |
32 | /* USER CODE BEGIN Includes */
33 |
34 | /* USER CODE END Includes */
35 |
36 | /* Exported types ------------------------------------------------------------*/
37 | /* USER CODE BEGIN ET */
38 |
39 | /* USER CODE END ET */
40 |
41 | /* Exported constants --------------------------------------------------------*/
42 | /** @addtogroup BSP
43 | * @{
44 | */
45 |
46 | /** @addtogroup STM32WLXX_LoRa_E5_mini
47 | * @{
48 | */
49 |
50 | /** @defgroup STM32WLXX_LoRa_E5_mini_CONFIG CONFIG
51 | * @{
52 | */
53 |
54 | /** @defgroup STM32WLXX_LoRa_E5_mini_CONFIG_Exported_Constants Exported Constants
55 | * @{
56 | */
57 | /* COM usage define */
58 | #define USE_BSP_COM_FEATURE 0U
59 |
60 | /* COM log define */
61 | #define USE_COM_LOG 0U
62 |
63 | /* IRQ priorities */
64 | #define BSP_BUTTON_SWx_IT_PRIORITY 15U
65 |
66 | /**
67 | * @}
68 | */
69 |
70 | /**
71 | * @}
72 | */
73 |
74 | /**
75 | * @}
76 | */
77 |
78 | /**
79 | * @}
80 | */
81 |
82 | /* USER CODE BEGIN EC */
83 |
84 | /* USER CODE END EC */
85 |
86 | /* External variables --------------------------------------------------------*/
87 | /* USER CODE BEGIN EV */
88 |
89 | /* USER CODE END EV */
90 |
91 | /* Exported macro ------------------------------------------------------------*/
92 | /* USER CODE BEGIN EM */
93 |
94 | /* USER CODE END EM */
95 |
96 | /* Exported functions prototypes ---------------------------------------------*/
97 | /* USER CODE BEGIN EFP */
98 |
99 | /* USER CODE END EFP */
100 |
101 | #ifdef __cplusplus
102 | }
103 | #endif
104 |
105 | #endif /* STM32WLXX_NUCLEO_CONF_H */
106 |
107 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
108 |
--------------------------------------------------------------------------------
/Utilities/misc/stm32_tiny_vsnprintf.h:
--------------------------------------------------------------------------------
1 | /******************************************************************************
2 | * @file tiny_vsnprintf.h
3 | * @author MCD Application Team
4 | * @brief Header for tiny_vsnprintf.c module
5 | ******************************************************************************
6 | * @attention
7 | *
8 | * © Copyright (c) 2019 STMicroelectronics.
9 | * All rights reserved.
10 | *
11 | * This software component is licensed by ST under BSD 3-Clause license,
12 | * the "License"; You may not use this file except in compliance with the
13 | * License. You may obtain a copy of the License at:
14 | * opensource.org/licenses/BSD-3-Clause
15 | *
16 | ******************************************************************************
17 | */
18 |
19 | /* Define to prevent recursive inclusion -------------------------------------*/
20 | #ifndef __STM32_TINY_VSNPRINTF_H__
21 | #define __STM32_TINY_VSNPRINTF_H__
22 |
23 | #ifdef __cplusplus
24 | extern "C" {
25 | #endif
26 |
27 | /* Includes ------------------------------------------------------------------*/
28 | #include
29 | #include
30 | /* Exported types ------------------------------------------------------------*/
31 | /* Exported constants --------------------------------------------------------*/
32 | /* External variables --------------------------------------------------------*/
33 | /* Exported functions ------------------------------------------------------- */
34 |
35 | /**
36 | * @brief Tiny implementation of vsnprintf() like function
37 | *
38 | * It has been adapted so that:
39 | * - Tiny implementation, when defining TINY_PRINTF, is available. In such as case,
40 | * not all the format are available. Instead, only %02X, %x, %d, %u, %s and %c are available.
41 | * %f,, %+, %#, %- and others are excluded
42 | * - Provide a snprintf like implementation. The size of the buffer is provided,
43 | * and the length of the filled buffer is returned (not including the final '\0' char).
44 | * The string may be truncated
45 | * @param Pointer to a buffer where the resulting C-string is stored. The buffer should have a size of
46 | * at least n characters.
47 | * @param Maximum number of bytes to be used in the buffer. The generated string has a length of at
48 | * most n-1, leaving space for the additional terminating null character.
49 | * @param C string that contains a format string that follows the same specifications as format
50 | * in printf (see printf for details).
51 | * @param A value identifying a variable arguments list initialized with va_start.
52 | * @retval The number of written char (note that this is different from vsnprintf()
53 | */
54 | int tiny_vsnprintf_like(char *buf, const int size, const char *fmt, va_list args);
55 |
56 | #ifdef __cplusplus
57 | }
58 | #endif
59 |
60 | #endif /* __STM32_TINY_VSNPRINTF_H__*/
61 |
62 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
63 |
--------------------------------------------------------------------------------
/Middlewares/Third_Party/LoRaWAN/Crypto/cmac.h:
--------------------------------------------------------------------------------
1 | /**************************************************************************
2 | Copyright (C) 2009 Lander Casado, Philippas Tsigas
3 |
4 | All rights reserved.
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining
7 | a copy of this software and associated documentation files
8 | (the "Software"), to deal with the Software without restriction, including
9 | without limitation the rights to use, copy, modify, merge, publish,
10 | distribute, sublicense, and/or sell copies of the Software, and to
11 | permit persons to whom the Software is furnished to do so, subject to
12 | the following conditions:
13 |
14 | Redistributions of source code must retain the above copyright notice,
15 | this list of conditions and the following disclaimers. Redistributions in
16 | binary form must reproduce the above copyright notice, this list of
17 | conditions and the following disclaimers in the documentation and/or
18 | other materials provided with the distribution.
19 |
20 | In no event shall the authors or copyright holders be liable for any special,
21 | incidental, indirect or consequential damages of any kind, or any damages
22 | whatsoever resulting from loss of use, data or profits, whether or not
23 | advised of the possibility of damage, and on any theory of liability,
24 | arising out of or in connection with the use or performance of this software.
25 |
26 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
27 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29 | CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
31 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
32 | DEALINGS WITH THE SOFTWARE
33 |
34 | *****************************************************************************/
35 |
36 | #ifndef _CMAC_H_
37 | #define _CMAC_H_
38 |
39 | #ifdef __cplusplus
40 | extern "C" {
41 | #endif
42 |
43 | #include "lorawan_aes.h"
44 |
45 | #define AES_CMAC_KEY_LENGTH 16
46 | #define AES_CMAC_DIGEST_LENGTH 16
47 |
48 | typedef struct _AES_CMAC_CTX {
49 | lorawan_aes_context rijndael;
50 | uint8_t X[16];
51 | uint8_t M_last[16];
52 | uint32_t M_n;
53 | } AES_CMAC_CTX;
54 |
55 | //#include
56 |
57 | //__BEGIN_DECLS
58 | void AES_CMAC_Init(AES_CMAC_CTX * ctx);
59 | void AES_CMAC_SetKey(AES_CMAC_CTX * ctx, const uint8_t key[AES_CMAC_KEY_LENGTH]);
60 | void AES_CMAC_Update(AES_CMAC_CTX * ctx, const uint8_t * data, uint32_t len);
61 | // __attribute__((__bounded__(__string__,2,3)));
62 | void AES_CMAC_Final(uint8_t digest[AES_CMAC_DIGEST_LENGTH], AES_CMAC_CTX * ctx);
63 | // __attribute__((__bounded__(__minbytes__,1,AES_CMAC_DIGEST_LENGTH)));
64 | //__END_DECLS
65 |
66 | #ifdef __cplusplus
67 | }
68 | #endif
69 |
70 | #endif /* _CMAC_H_ */
71 |
72 |
--------------------------------------------------------------------------------
/Projects/Applications/LoRaWAN/LoRaWAN_End_Node/Core/Inc/main.h:
--------------------------------------------------------------------------------
1 | /* USER CODE BEGIN Header */
2 | /**
3 | ******************************************************************************
4 | * @file : main.h
5 | * @brief : Header for main.c file.
6 | * This file contains the common defines of the application.
7 | ******************************************************************************
8 | * @attention
9 | *
10 | * © Copyright (c) 2020 STMicroelectronics.
11 | * All rights reserved.
12 | *
13 | * This software component is licensed by ST under Ultimate Liberty license
14 | * SLA0044, the "License"; You may not use this file except in compliance with
15 | * the License. You may obtain a copy of the License at:
16 | * www.st.com/SLA0044
17 | *
18 | ******************************************************************************
19 | */
20 | /* USER CODE END Header */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __MAIN_H
24 | #define __MAIN_H
25 |
26 | #ifdef __cplusplus
27 | extern "C" {
28 | #endif
29 |
30 | /* Includes ------------------------------------------------------------------*/
31 | #include "stm32wlxx_hal.h"
32 |
33 | /* Private includes ----------------------------------------------------------*/
34 | /* USER CODE BEGIN Includes */
35 |
36 | /* USER CODE END Includes */
37 |
38 | /* Exported types ------------------------------------------------------------*/
39 | /* USER CODE BEGIN ET */
40 |
41 | /* USER CODE END ET */
42 |
43 | /* Exported constants --------------------------------------------------------*/
44 | /* USER CODE BEGIN EC */
45 |
46 | /* USER CODE END EC */
47 |
48 | /* Exported macro ------------------------------------------------------------*/
49 | /* USER CODE BEGIN EM */
50 |
51 | /* USER CODE END EM */
52 |
53 | /* Exported functions prototypes ---------------------------------------------*/
54 | void Error_Handler(void);
55 |
56 | /* USER CODE BEGIN EFP */
57 |
58 | /* USER CODE END EFP */
59 |
60 | /* Private defines -----------------------------------------------------------*/
61 | #define RTC_N_PREDIV_S 10
62 | #define RTC_PREDIV_S ((1<
30 |
31 | /* USER CODE BEGIN Includes */
32 |
33 | /* USER CODE END Includes */
34 |
35 | /* Exported types ------------------------------------------------------------*/
36 | /* USER CODE BEGIN ET */
37 |
38 | /* USER CODE END ET */
39 |
40 | /* Exported constants --------------------------------------------------------*/
41 | /* USER CODE BEGIN EC */
42 |
43 | /* USER CODE END EC */
44 |
45 | /* External variables --------------------------------------------------------*/
46 | /* USER CODE BEGIN EV */
47 |
48 | /* USER CODE END EV */
49 |
50 | /* Exported macro ------------------------------------------------------------*/
51 | /* USER CODE BEGIN EM */
52 |
53 | /* USER CODE END EM */
54 |
55 | /* Exported functions prototypes ---------------------------------------------*/
56 | void CayenneLppInit(void);
57 |
58 | void CayenneLppReset(void);
59 |
60 | uint8_t CayenneLppGetSize(void);
61 |
62 | uint8_t *CayenneLppGetBuffer(void);
63 |
64 | uint8_t CayenneLppCopy(uint8_t *buffer);
65 |
66 | uint8_t CayenneLppAddDigitalInput(uint8_t channel, uint8_t value);
67 |
68 | uint8_t CayenneLppAddDigitalOutput(uint8_t channel, uint8_t value);
69 |
70 | uint8_t CayenneLppAddAnalogInput(uint8_t channel, uint16_t value);
71 |
72 | uint8_t CayenneLppAddAnalogOutput(uint8_t channel, uint16_t value);
73 |
74 | uint8_t CayenneLppAddLuminosity(uint8_t channel, uint16_t lux);
75 |
76 | uint8_t CayenneLppAddPresence(uint8_t channel, uint8_t value);
77 |
78 | uint8_t CayenneLppAddTemperature(uint8_t channel, int16_t celsius);
79 |
80 | uint8_t CayenneLppAddRelativeHumidity(uint8_t channel, uint16_t rh);
81 |
82 | uint8_t CayenneLppAddAccelerometer(uint8_t channel, int16_t x, int16_t y, int16_t z);
83 |
84 | uint8_t CayenneLppAddBarometricPressure(uint8_t channel, uint16_t hpa);
85 |
86 | uint8_t CayenneLppAddGyrometer(uint8_t channel, int16_t x, int16_t y, int16_t z);
87 |
88 | uint8_t CayenneLppAddGps(uint8_t channel, int32_t latitude, int32_t longitude, int32_t meters);
89 |
90 | /* USER CODE BEGIN EFP */
91 |
92 | /* USER CODE END EFP */
93 |
94 | #ifdef __cplusplus
95 | }
96 | #endif
97 |
98 | #endif /* __CAYENNE_LPP_H__ */
99 |
--------------------------------------------------------------------------------
/Projects/Applications/FreeRTOS/FreeRTOS_LoRaWAN_AT/LoRaWAN/App/CayenneLpp.h:
--------------------------------------------------------------------------------
1 | /*!
2 | * @file CayenneLpp.h
3 | *
4 | * @brief Implements the Cayenne Low Power Protocol
5 | *
6 | * @copyright Revised BSD License, see section \ref LICENSE.
7 | *
8 | * @code
9 | * ______ _
10 | * / _____) _ | |
11 | * ( (____ _____ ____ _| |_ _____ ____| |__
12 | * \____ \| ___ | (_ _) ___ |/ ___) _ \
13 | * _____) ) ____| | | || |_| ____( (___| | | |
14 | * (______/|_____)_|_|_| \__)_____)\____)_| |_|
15 | * (C)2013-2018 Semtech
16 | *
17 | * @endcode
18 | *
19 | * @author Miguel Luis ( Semtech )
20 | */
21 | #ifndef __CAYENNE_LPP_H__
22 | #define __CAYENNE_LPP_H__
23 |
24 | #ifdef __cplusplus
25 | extern "C" {
26 | #endif
27 |
28 | /* Includes ------------------------------------------------------------------*/
29 | #include
30 |
31 | /* USER CODE BEGIN Includes */
32 |
33 | /* USER CODE END Includes */
34 |
35 | /* Exported types ------------------------------------------------------------*/
36 | /* USER CODE BEGIN ET */
37 |
38 | /* USER CODE END ET */
39 |
40 | /* Exported constants --------------------------------------------------------*/
41 | /* USER CODE BEGIN EC */
42 |
43 | /* USER CODE END EC */
44 |
45 | /* External variables --------------------------------------------------------*/
46 | /* USER CODE BEGIN EV */
47 |
48 | /* USER CODE END EV */
49 |
50 | /* Exported macro ------------------------------------------------------------*/
51 | /* USER CODE BEGIN EM */
52 |
53 | /* USER CODE END EM */
54 |
55 | /* Exported functions prototypes ---------------------------------------------*/
56 | void CayenneLppInit(void);
57 |
58 | void CayenneLppReset(void);
59 |
60 | uint8_t CayenneLppGetSize(void);
61 |
62 | uint8_t *CayenneLppGetBuffer(void);
63 |
64 | uint8_t CayenneLppCopy(uint8_t *buffer);
65 |
66 | uint8_t CayenneLppAddDigitalInput(uint8_t channel, uint8_t value);
67 |
68 | uint8_t CayenneLppAddDigitalOutput(uint8_t channel, uint8_t value);
69 |
70 | uint8_t CayenneLppAddAnalogInput(uint8_t channel, uint16_t value);
71 |
72 | uint8_t CayenneLppAddAnalogOutput(uint8_t channel, uint16_t value);
73 |
74 | uint8_t CayenneLppAddLuminosity(uint8_t channel, uint16_t lux);
75 |
76 | uint8_t CayenneLppAddPresence(uint8_t channel, uint8_t value);
77 |
78 | uint8_t CayenneLppAddTemperature(uint8_t channel, int16_t celsius);
79 |
80 | uint8_t CayenneLppAddRelativeHumidity(uint8_t channel, uint16_t rh);
81 |
82 | uint8_t CayenneLppAddAccelerometer(uint8_t channel, int16_t x, int16_t y, int16_t z);
83 |
84 | uint8_t CayenneLppAddBarometricPressure(uint8_t channel, uint16_t hpa);
85 |
86 | uint8_t CayenneLppAddGyrometer(uint8_t channel, int16_t x, int16_t y, int16_t z);
87 |
88 | uint8_t CayenneLppAddGps(uint8_t channel, int32_t latitude, int32_t longitude, int32_t meters);
89 |
90 | /* USER CODE BEGIN EFP */
91 |
92 | /* USER CODE END EFP */
93 |
94 | #ifdef __cplusplus
95 | }
96 | #endif
97 |
98 | #endif /* __CAYENNE_LPP_H__ */
99 |
--------------------------------------------------------------------------------
/Projects/Applications/LoRaWAN/LoRaWAN_End_Node/LoRaWAN/App/CayenneLpp.h:
--------------------------------------------------------------------------------
1 | /*!
2 | * @file CayenneLpp.h
3 | *
4 | * @brief Implements the Cayenne Low Power Protocol
5 | *
6 | * @copyright Revised BSD License, see section \ref LICENSE.
7 | *
8 | * @code
9 | * ______ _
10 | * / _____) _ | |
11 | * ( (____ _____ ____ _| |_ _____ ____| |__
12 | * \____ \| ___ | (_ _) ___ |/ ___) _ \
13 | * _____) ) ____| | | || |_| ____( (___| | | |
14 | * (______/|_____)_|_|_| \__)_____)\____)_| |_|
15 | * (C)2013-2018 Semtech
16 | *
17 | * @endcode
18 | *
19 | * @author Miguel Luis ( Semtech )
20 | */
21 | #ifndef __CAYENNE_LPP_H__
22 | #define __CAYENNE_LPP_H__
23 |
24 | #ifdef __cplusplus
25 | extern "C" {
26 | #endif
27 |
28 | /* Includes ------------------------------------------------------------------*/
29 | #include
30 |
31 | /* USER CODE BEGIN Includes */
32 |
33 | /* USER CODE END Includes */
34 |
35 | /* Exported types ------------------------------------------------------------*/
36 | /* USER CODE BEGIN ET */
37 |
38 | /* USER CODE END ET */
39 |
40 | /* Exported constants --------------------------------------------------------*/
41 | /* USER CODE BEGIN EC */
42 |
43 | /* USER CODE END EC */
44 |
45 | /* External variables --------------------------------------------------------*/
46 | /* USER CODE BEGIN EV */
47 |
48 | /* USER CODE END EV */
49 |
50 | /* Exported macro ------------------------------------------------------------*/
51 | /* USER CODE BEGIN EM */
52 |
53 | /* USER CODE END EM */
54 |
55 | /* Exported functions prototypes ---------------------------------------------*/
56 | void CayenneLppInit(void);
57 |
58 | void CayenneLppReset(void);
59 |
60 | uint8_t CayenneLppGetSize(void);
61 |
62 | uint8_t *CayenneLppGetBuffer(void);
63 |
64 | uint8_t CayenneLppCopy(uint8_t *buffer);
65 |
66 | uint8_t CayenneLppAddDigitalInput(uint8_t channel, uint8_t value);
67 |
68 | uint8_t CayenneLppAddDigitalOutput(uint8_t channel, uint8_t value);
69 |
70 | uint8_t CayenneLppAddAnalogInput(uint8_t channel, uint16_t value);
71 |
72 | uint8_t CayenneLppAddAnalogOutput(uint8_t channel, uint16_t value);
73 |
74 | uint8_t CayenneLppAddLuminosity(uint8_t channel, uint16_t lux);
75 |
76 | uint8_t CayenneLppAddPresence(uint8_t channel, uint8_t value);
77 |
78 | uint8_t CayenneLppAddTemperature(uint8_t channel, int16_t celsius);
79 |
80 | uint8_t CayenneLppAddRelativeHumidity(uint8_t channel, uint16_t rh);
81 |
82 | uint8_t CayenneLppAddAccelerometer(uint8_t channel, int16_t x, int16_t y, int16_t z);
83 |
84 | uint8_t CayenneLppAddBarometricPressure(uint8_t channel, uint16_t hpa);
85 |
86 | uint8_t CayenneLppAddGyrometer(uint8_t channel, int16_t x, int16_t y, int16_t z);
87 |
88 | uint8_t CayenneLppAddGps(uint8_t channel, int32_t latitude, int32_t longitude, int32_t meters);
89 |
90 | /* USER CODE BEGIN EFP */
91 |
92 | /* USER CODE END EFP */
93 |
94 | #ifdef __cplusplus
95 | }
96 | #endif
97 |
98 | #endif /* __CAYENNE_LPP_H__ */
99 |
--------------------------------------------------------------------------------
/Projects/Applications/LowPower/Core/Src/sysmem.c:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file sysmem.c
4 | * @author Generated by STM32CubeIDE
5 | * @brief STM32CubeIDE System Memory calls file
6 | *
7 | * For more information about which C functions
8 | * need which of these lowlevel functions
9 | * please consult the newlib libc manual
10 | ******************************************************************************
11 | * @attention
12 | *
13 | * © Copyright (c) 2020 STMicroelectronics.
14 | * All rights reserved.
15 | *
16 | * This software component is licensed by ST under BSD 3-Clause license,
17 | * the "License"; You may not use this file except in compliance with the
18 | * License. You may obtain a copy of the License at:
19 | * opensource.org/licenses/BSD-3-Clause
20 | *
21 | ******************************************************************************
22 | */
23 |
24 | /* Includes */
25 | #include
26 | #include
27 |
28 | /**
29 | * Pointer to the current high watermark of the heap usage
30 | */
31 | static uint8_t *__sbrk_heap_end = NULL;
32 |
33 | /**
34 | * @brief _sbrk() allocates memory to the newlib heap and is used by malloc
35 | * and others from the C library
36 | *
37 | * @verbatim
38 | * ############################################################################
39 | * # .data # .bss # newlib heap # MSP stack #
40 | * # # # # Reserved by _Min_Stack_Size #
41 | * ############################################################################
42 | * ^-- RAM start ^-- _end _estack, RAM end --^
43 | * @endverbatim
44 | *
45 | * This implementation starts allocating at the '_end' linker symbol
46 | * The '_Min_Stack_Size' linker symbol reserves a memory for the MSP stack
47 | * The implementation considers '_estack' linker symbol to be RAM end
48 | * NOTE: If the MSP stack, at any point during execution, grows larger than the
49 | * reserved size, please increase the '_Min_Stack_Size'.
50 | *
51 | * @param incr Memory size
52 | * @return Pointer to allocated memory
53 | */
54 | void *_sbrk(ptrdiff_t incr)
55 | {
56 | extern uint8_t _end; /* Symbol defined in the linker script */
57 | extern uint8_t _estack; /* Symbol defined in the linker script */
58 | extern uint32_t _Min_Stack_Size; /* Symbol defined in the linker script */
59 | const uint32_t stack_limit = (uint32_t)&_estack - (uint32_t)&_Min_Stack_Size;
60 | const uint8_t *max_heap = (uint8_t *)stack_limit;
61 | uint8_t *prev_heap_end;
62 |
63 | /* Initialize heap end at first call */
64 | if (NULL == __sbrk_heap_end)
65 | {
66 | __sbrk_heap_end = &_end;
67 | }
68 |
69 | /* Protect heap from growing into the reserved MSP stack */
70 | if (__sbrk_heap_end + incr > max_heap)
71 | {
72 | errno = ENOMEM;
73 | return (void *)-1;
74 | }
75 |
76 | prev_heap_end = __sbrk_heap_end;
77 | __sbrk_heap_end += incr;
78 |
79 | return (void *)prev_heap_end;
80 | }
81 |
--------------------------------------------------------------------------------