Download SAM4CP16C USER GUIDE

Transcript
Where G3 folder contains:

adp folder contains the Adaptation layer API.

bootstrap folder contains the bootstrap process.

Ipv6 folder contains the IPv6 stack.

libs folder contains the MAC and ADP library.

mac folder contains the MAC layer API.

oss folder is the Operative System Support.

phy folder is the Physical layer.

pal folder is the Physical Abstraction layer.
In the Atmel G3-PLC stack structure there are some important configuration files where the user can
select some options that modify the behavior of the project. Note that these configuration files contain
the proper configuration for the provided boards of the kit and user does not need to change them.

PHY
configuration
files
(see
Figure
6-73).
In
the
g3
folder,
“./Software/g3_va.b.c_CENELEC/g3.workspace.sam4cp16c_sam4cp16cmb/thirdparty/g3/phy/at
pl250/module_config”, there are two files: atpl250db_conf.c and atpl250db_conf.h. Note that
these files allow to the user to configure PHY layer initial parameters. Thus, user can adapt the
PHY layer to any hardware designed.

Project configuration files (see Figure 6-73). There are several files:
– conf_board.h to configure the SAM4CP16CMB board features (watchdog, drivers,
peripherals...).
– conf_buart_if.h to configure the number and buffers’ size of the UARTs.
–
conf_busart_if.h to configure the number and buffers’ size of the USARTs.
–
conf_clock.h to configure the SAM4CP16C clock.
–
conf_oss.h to configure the system as microcontroller mode or FreeRTOS OS.
–
conf_platform.h to configure the timers parameters and power down detection.
–
–
conf_pplc_if.h to configure PPLC interruption. According with the hardware used, it is
necessary to define de SPI configuration selected for the communication with the G3
modem, the interruption and reset signals defined.
conf_project.h to configure the work band used and the embedded sniffer.
–
conf_slcdc.h to enable the LCD signaling.
–
conf_uart_serial.h to configure the serial UART.
–
conf_usi_if.h to configure the number of Ports/Protocols managed by USI.
–
FreeRTOSConfig.h to configure the Generic FreeRTOS peripheral control functions.
In addition to these configuration files, there are four important files more (for this project):




84
dlms_emu_coord.c. It is a file for the final user for the cycles application with the init and process
defined.
dlms_emu_coord.h. It is a header file with the cycles application functions. Also, it contains some
configuration constants which can be changed by the user depending on the number of Devices
connected and the number of hops required to reach Coordinator is complex setups are used.
asf.h. It includes all the API header files required by ASF for the modules that you use in your
project. It is automatically updated every time you add or remove drivers from your project.
main.c. In this file, the G3-PLC stack is initialized and the processes of the main infinite loop.
SAM4CP16C-EK
Kit User Manual [USER GUIDE]
8
Atmel-43086C-ATPL-SAM4CP16C-EK-Kit-User-Manual-UserGuide_23-Sep-2015
4