FlexSEA Wiki

A WEARABLE ROBOTICS TOOLKIT

User Tools

Site Tools


fx-rigid-mn

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
fx-rigid-mn [2018/03/20 22:02]
jfduval [3) Set the preprocessor flags]
fx-rigid-mn [2018/03/20 22:12]
jfduval
Line 1: Line 1:
 ====== Compile fx-rigid-mn for your project ====== ====== Compile fx-rigid-mn for your project ======
  
-First of all, make sure to [[sourcecode|properly clone the project with its submodules]]. The same code base is used by many projects, many different circuits, and many different versions of these circuits. Only one source file needs to be changed to select the active project (and its configuration,​ if necessary). The rest of the options will be selected with pre-processor directives.+First of all, make sure to [[sourcecode|properly clone the project with its submodules]]. Unless you are a Dephy employee, use the '​public'​ branch (git clone --recursive -b public https://​github.com/​DephyInc/​fx-rigid-mn.git). The same code base is used by many projects, many different circuits, and many different versions of these circuits. Only one source file needs to be changed to select the active project (and its configuration,​ if necessary). The rest of the options will be selected with pre-processor directives.
  
 ===== 1) Select the Active Project ===== ===== 1) Select the Active Project =====
Line 9: Line 9:
 //Step 1) Select active project (from list): //Step 1) Select active project (from list):
 //​========================================== //​==========================================
- 
 #define ACTIVE_PROJECT PROJECT_BAREBONE #define ACTIVE_PROJECT PROJECT_BAREBONE
 #define ACTIVE_SUBPROJECT SUBPROJECT_A #define ACTIVE_SUBPROJECT SUBPROJECT_A
Line 78: Line 77:
  
 <code c> <code c>
- //Blinking LED: +//Blinking LED: 
- #if (HW_VER == 1) +#if (HW_VER == 1) 
- +__GPIOC_CLK_ENABLE();​ 
- __GPIOC_CLK_ENABLE();​ +GPIO_InitStruct.Pin = GPIO_PIN_14;​ 
- GPIO_InitStruct.Pin = GPIO_PIN_14;​ +#else 
- +__GPIOA_CLK_ENABLE();​ 
- #else +GPIO_InitStruct.Pin = GPIO_PIN_1;​ 
- +#endif
- __GPIOA_CLK_ENABLE();​ +
- GPIO_InitStruct.Pin = GPIO_PIN_1; +
- +
- #endif+
 </​code>​ </​code>​
  
Line 97: Line 92:
  
   * HW_VER=1: Hardware version. 1 means v0.1, 10 is v1.0, etc.   * HW_VER=1: Hardware version. 1 means v0.1, 10 is v1.0, etc.
-  * ...+  * INCLUDE_UPROJ_x:​ UPROJ is short for User ProjectsThis will compile user-specific code from flexsea-projects. 
 +    * INCLUDE_UPROJ_ACTPACK is used for the Actuator Packages, and to use the scripts 
 +    * Include only one project (except ACTPACK that can be used all the time) 
 +  * HW_BIOMECH is used for some Biomech project that use customized versions of a Dephy board, say FlexSEA-Rigid v0.2. 
 +  * BOARD_SUBTYPE_POCKET configures the code for FlexSEA-Pocket,​ Rigid'​s low-power version.
  
fx-rigid-mn.txt · Last modified: 2018/03/20 22:12 by jfduval