| поискавой системы для электроныых деталей |
|
OL2385SWUG датащи(PDF) 31 Page - NXP Semiconductors |
|
|
|||||||||||||||||||||||||||||
OL2385SWUG датащи(HTML) 31 Page - NXP Semiconductors |
|
31 / 64 page ![]() NXP Semiconductors OL2385SWUG SIGFOX software driver OL2385SWUG All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved. User guide Rev. 2.1 — 6 April 2018 31 / 64 2. In the Select Kinetis Processor or Board dialog box, select the MCU class or board the project is using. Then, click Next. 3. A new project is created. All of the required files are placed in dedicated folders: board, CMSIS, drivers, source, startup and utilities. For a more detailed description of the SDK project folder structure, refer to the MCUXpresso 2.x User Guide. 6.2.5.6 Adding the SIGFOX software driver to the project This section describes how to add the SIGFOX Software driver to the project. 1. Copy the content of Sigfox_SDK_SW\SDK_SW_Driver to the source folder in the newly created project. 2. In main.c, add the include statement highlighted in the figure below to enable the code to access the SIGFOX software driver. 6.2.5.7 Setting up the project Once the new project has been created and the SIGFOX software driver has been added into it, the project must be set up. See Section 6.2.4 "The SIGFOX software driver", which describes the driver's capabilities and what must be done to configure its properties. 1. In order to get the SIGFOX software driver to run on the selected MCU, the user must edit the board/pin_mux.c file to configure the SPI and GPIO pins being used. This entails making the correct MCU pin selections (see Section 6.2.3 "Supported MCUs") and then muxing them as needed. Use one of the example projects as a template for this step. See the figure below. 2. In the file aml/common_aml.h, set the SDK_VERSION macro to SDK_KSDK (MCUXpresso SDK 2.3). 3. In sf/sf_model.h, update the SF_MODEL macro according to the SIGFOX model being used. 4. Create a variable of type sf_drv_data_t that will be passed to all used functions. This variable stores MCU peripheral configuration data and SIGFOX software driver internal data. This variable must be accessible during run-time and should be declared either in the main() function or as a global variable. 5. Configure the SPI and pin settings in the driver configuration structure. 6. Set up the MCU peripherals that will be used by the SIGFOX software driver. There are two options: • Use the provided SF_SetupSPI() and SF_SetupGPIOs() functions, which will do the necessary configuration. • Code the peripheral initialization without using the provided functions. In either case, the configuration structure must be modified to indicate the instances of utilized peripherals. 7. Call the SIGFOX initialization function. The initialization function must be passed the references to the already configured MCU peripherals, which is part of the driver data structure, and the user configuration of the device itself. 6.2.5.8 Writing application code All application code must reside in the source folder in the project directory. The code in main.c may be modified but the original comments related to usage directions should be retained. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |