Skip to content

Commit

Permalink
Update SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins authored and GwendalRaoul committed Nov 24, 2020
1 parent 8ee1069 commit f5b6819
Show file tree
Hide file tree
Showing 117 changed files with 2,933 additions and 680 deletions.
10 changes: 10 additions & 0 deletions board/efr32_template/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@
*/
#define BOARD_BUTTON_ACTIVE_LOW true

/**
* @brief Button GPIO internal pull up/down
*
* Some buttons don't have any pull-up or pull-down resistor installed on the
* board. They need it to be setup in software. Set
* \ref BOARD_BUTTON_INTERNAL_PULL to true to enable internal pull-up(down).
* Pull-up(down) is enabled when \ref BOARD_BUTTON_ACTIVE_LOW is true(false).
*/
#define BOARD_BUTTON_INTERNAL_PULL true

/**
* @brief Button GPIO interrupt even/odd selection
*
Expand Down
39 changes: 39 additions & 0 deletions board/mdbt50q_rx/board.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/* Copyright 2018 Wirepas Ltd. All Rights Reserved.
*
* See file LICENSE.txt for full license details.
*
*/

/**
* @file
*
* Board definition for the
* <a href="https://www.raytac.com/product/ins.php?index_id=89">Raytac MDBT50Q-RX dongle</a>
*/
#ifndef BOARD_MDBT50Q_RX_H_
#define BOARD_MDBT50Q_RX_H_


// Serial port
// There is no serial port but a USB connection


// List of GPIO pins for the LEDs on the board: LED 1 P1.13 to LED 2 P1.11
#define BOARD_LED_PIN_LIST {45, 43}

// Active low polarity for LEDs
#define BOARD_LED_ACTIVE_LOW true

// List of GPIO pins for buttons on the board: Button 1 to Button 4
#define BOARD_BUTTON_PIN_LIST {15}

// Active low polarity for buttons
#define BOARD_BUTTON_ACTIVE_LOW true

// The board supports DCDC
#define BOARD_SUPPORT_DCDC

// Active internal pull-up for buttons
#define BOARD_BUTTON_INTERNAL_PULL true

#endif /* BOARD_MDBT50Q_RX_H_ */
13 changes: 13 additions & 0 deletions board/mdbt50q_rx/config.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Mcu of the board
MCU=nrf52
MCU_SUB=840

# Use the 8dbm max power profile (can be changed to 4dbm with 0x0000000D)
mac_profileid=0x0000000E

uart_use_usb=yes

# To be changed
usb_vid=0xf00d
usb_manufacturer_str="Raytac Wirepas"
usb_product_str="Raytac Wirepas Dongle"
11 changes: 11 additions & 0 deletions board/nrf52_template/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,15 @@
*/
#define BOARD_SUPPORT_DCDC

/**
* @brief Button GPIO internal pull up/down
*
* Some buttons don't have any pull-up or pull-down resistor installed on the
* board. They need it to be setup in software. Set
* \ref BOARD_BUTTON_INTERNAL_PULL to true to enable internal pull-up(down).
* Pull-up(down) is enabled when \ref BOARD_BUTTON_ACTIVE_LOW is true(false).
*/
#define BOARD_BUTTON_INTERNAL_PULL true


#endif /* _BOARD_NRF52_TEMPLATE_BOARD_H_ */
3 changes: 3 additions & 0 deletions board/pca10040/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@
// The board supports DCDC
#define BOARD_SUPPORT_DCDC

// Active internal pull-up for buttons
#define BOARD_BUTTON_INTERNAL_PULL true


#endif /* BOARD_PCA10040_BOARD_H_ */
3 changes: 3 additions & 0 deletions board/pca10056/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,8 @@ P1.15 47 gpio 1.15 (low freq)
// The board supports DCDC
#define BOARD_SUPPORT_DCDC

// Active internal pull-up for buttons
#define BOARD_BUTTON_INTERNAL_PULL true


#endif /* BOARD_PCA10056_BOARD_H_ */
3 changes: 3 additions & 0 deletions board/pca10059/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,8 @@ P1.15 47 gpio 1.15 (low freq)
// The board supports DCDC
#define BOARD_SUPPORT_DCDC

// Active internal pull-up for buttons
#define BOARD_BUTTON_INTERNAL_PULL true


#endif /* BOARD_PCA10059_BOARD_H_ */
3 changes: 3 additions & 0 deletions board/pca10100/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,8 @@ P1.09 41 gpio
// The board supports DCDC
#define BOARD_SUPPORT_DCDC

// Active internal pull-up for buttons
#define BOARD_BUTTON_INTERNAL_PULL true


#endif /* BOARD_PCA10100_BOARD_H_ */
3 changes: 3 additions & 0 deletions board/promistel_rpi_hat/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
// Active low polarity for buttons
#define BOARD_BUTTON_ACTIVE_LOW true

// Active internal pull-up for buttons
#define BOARD_BUTTON_INTERNAL_PULL true

// Define the SPI instance to use
#define USE_SPI0

Expand Down
3 changes: 3 additions & 0 deletions board/ruuvitag/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@
// The board supports DCDC
#define BOARD_SUPPORT_DCDC

// Active internal pull-up for buttons
#define BOARD_BUTTON_INTERNAL_PULL true


#endif /* BOARD_RUUVITAG_H_ */
3 changes: 3 additions & 0 deletions board/silabs_brd4254a/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
// Active low polarity for buttons
#define BOARD_BUTTON_ACTIVE_LOW true

// Board has external pull-up for buttons
#define BOARD_BUTTON_INTERNAL_PULL false

// Buttons use even external interrupts
#define BOARD_BUTTON_USE_EVEN_INT true

Expand Down
3 changes: 3 additions & 0 deletions board/tbsense2/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
// Active low polarity for buttons
#define BOARD_BUTTON_ACTIVE_LOW true

// Board has external pull-up for buttons
#define BOARD_BUTTON_INTERNAL_PULL false

// Buttons use even external interrupts
#define BOARD_BUTTON_USE_EVEN_INT true

Expand Down
33 changes: 22 additions & 11 deletions doc_src_doxy/how_to_develop.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,29 +87,40 @@ address and channel
To form a network, all nodes must share the same network address and
network channel.
These information can come from multiple sources like NFC, provisioned in
persistent memory during production,...
In order to ease the setup, build system allows to set those settings at build
time of an application from the application config.mk file.
In <code>@ref custom_app/app.c "custom_app"</code> application example, this
information can be changed in file <code>@ref source_config_mk "config.mk"
</code> in the new application folder created, by setting the variables <code>
default_network_address</code> and <code>default_network_channel</code> to
arbitrary values. For example:
information can be seen in file <code>@ref source_config_mk "config.mk"
</code>
In the new application folder created, you can modified these variables
<code>default_network_address</code> and <code>default_network_channel</code> to
arbitrary values that feat your needs. For example:
@code
# Define default network settings
default_network_address ?= 0x67EB4A
default_network_channel ?= 12
@endcode
These variables are then defined in application <code>@ref source_makefile
"makefile"</code> that can also be found inside the application folder, as
constants <code> NETWORK_ADDRESS</code> and <code>NETWORK_CHANNEL</code>,
respectively:
These variables are then automatically assigned to constants
<code> NETWORK_ADDRESS</code> and <code>NETWORK_CHANNEL</code> and accessible
from the code.
Additionally, you can define network keys the same way.
Those keys are 16 bytes long and must be kept secret. It is very important to
set them to protect your network.
@code
# Define default network settings
CFLAGS += -DNETWORK_ADDRESS=$(default_network_address)
CFLAGS += -DNETWORK_CHANNEL=$(default_network_channel)
default_network_cipher_key ?= 0x??,..,0x?? // Must be 16 bytes long
default_network_authen_key ?= 0x??,..,0x?? // Must be 16 bytes long
@endcode
Those settings are used with @ref configureNodeFromBuildParameters utility
function.
@page change_of_app_area_id Change of app_area_id
It is mandatory to have unique @ref app_specific_area_id "app_area_id" in order
Expand Down
Loading

0 comments on commit f5b6819

Please sign in to comment.