Skip to content

Commit

Permalink
Board amc: test project for streaming AEA3 values (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoaccame authored Dec 12, 2023
1 parent 89299e1 commit 7aba0a9
Show file tree
Hide file tree
Showing 36 changed files with 8,167 additions and 76 deletions.
63 changes: 40 additions & 23 deletions emBODY/eBcode/arch-arm/board/amc/application/v1/proj/appl-01.uvoptx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
<SetRegEntry>
<Number>0</Number>
<Key>ULP2CM3</Key>
<Name>-UP1123199 -O206 -S12 -C0 -P00000000 -N00("ARM CoreSight SW-DP") -D00(6BA02477) -L00(0) -TO65555 -TC400000000 -TT10000000 -TP18 -TDX0 -TDD0 -TDS8001 -TDT0 -TDC1F -TIE80000001 -TIP9 -FO7 -FD20000000 -FC8000 -FN1 -FF0STM32H7x_2048.FLM -FS08000000 -FL0200000 -FP0($$Device:STM32H745IIKx$CMSIS\Flash\STM32H7x_2048.FLM)</Name>
<Name>-UP1123199 -O206 -S12 -C0 -P00000000 -N00("ARM CoreSight SW-DP") -D00(6BA02477) -L00(0) -TO65554 -TC400000000 -TT10000000 -TP18 -TDX0 -TDD0 -TDS8001 -TDT0 -TDC1F -TIE80000001 -TIP9 -FO7 -FD20000000 -FC8000 -FN1 -FF0STM32H7x_2048.FLM -FS08000000 -FL0200000 -FP0($$Device:STM32H745IIKx$CMSIS\Flash\STM32H7x_2048.FLM)</Name>
</SetRegEntry>
<SetRegEntry>
<Number>0</Number>
Expand Down Expand Up @@ -153,27 +153,50 @@
<Name>UL2CM3(-S0 -C0 -P0 -FD20000000 -FC8000 -FN1 -FF0STM32H7x_2048 -FS08000000 -FL0200000 -FP0($$Device:STM32H745IIKx$CMSIS\Flash\STM32H7x_2048.FLM))</Name>
</SetRegEntry>
</TargetDriverDllRegistry>
<Breakpoint/>
<Breakpoint>
<Bp>
<Number>0</Number>
<Type>0</Type>
<LineNumber>71</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>134766890</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>1</BreakIfRCount>
<Filename>..\..\..\..\..\embot\app\eth\embot_app_eth_theIPnet.cpp</Filename>
<ExecCommand></ExecCommand>
<Expression>\\amc\../../../../../embot/app/eth/embot_app_eth_theIPnet.cpp\71</Expression>
</Bp>
<Bp>
<Number>1</Number>
<Type>0</Type>
<LineNumber>116</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>134767792</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>1</BreakIfRCount>
<Filename>..\..\..\..\..\embot\app\eth\embot_app_eth_theIPnet.cpp</Filename>
<ExecCommand></ExecCommand>
<Expression>\\amc\../../../../../embot/app/eth/embot_app_eth_theIPnet.cpp\116</Expression>
</Bp>
</Breakpoint>
<WatchWindow1>
<Ww>
<count>0</count>
<WinNumber>1</WinNumber>
<ItemText>ev</ItemText>
<ItemText>ipnetcfg</ItemText>
</Ww>
<Ww>
<count>1</count>
<WinNumber>1</WinNumber>
<ItemText>_state</ItemText>
</Ww>
<Ww>
<count>2</count>
<WinNumber>1</WinNumber>
<ItemText>p</ItemText>
</Ww>
<Ww>
<count>3</count>
<WinNumber>1</WinNumber>
<ItemText>s_theemsrunner</ItemText>
<ItemText>ipcfg</ItemText>
</Ww>
</WatchWindow1>
<Tracepoint>
Expand Down Expand Up @@ -218,12 +241,6 @@
<pszMrulep></pszMrulep>
<pSingCmdsp></pSingCmdsp>
<pMultCmdsp></pMultCmdsp>
<SystemViewers>
<Entry>
<Name>OS Support\Event Viewer</Name>
<WinId>35905</WinId>
</Entry>
</SystemViewers>
<DebugDescription>
<Enable>1</Enable>
<EnableFlashSeq>0</EnableFlashSeq>
Expand All @@ -236,7 +253,7 @@

<Group>
<GroupName>main</GroupName>
<tvExp>0</tvExp>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>
Expand Down Expand Up @@ -372,7 +389,7 @@

<Group>
<GroupName>embot::app::eth::config</GroupName>
<tvExp>0</tvExp>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>
Expand Down Expand Up @@ -2328,7 +2345,7 @@

<Group>
<GroupName>embot::app::eth::theServiceMC</GroupName>
<tvExp>1</tvExp>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@
<v6WtE>0</v6WtE>
<v6Rtti>0</v6Rtti>
<VariousControls>
<MiscControls>-Wno-pragma-pack -Wno-deprecated-register -DEMBOT_USE_rtos_osal -DIPAL_use_cfg2 -DUSE_EMBOT_theHandler -DUSE_EMBOT_theServices -DEOTHESERVICES_disable_theMotionController -DUSE_EOtheMCamc -DUSE_EMBOT_theServicesMC</MiscControls>
<MiscControls>-DxDEBUG_AEA3_stream_over_theBackdoor -DxDEBUG_AEA3_stream_over_TORQUE -Wno-pragma-pack -Wno-deprecated-register -DEMBOT_USE_rtos_osal -DIPAL_use_cfg2 -DUSE_EMBOT_theHandler -DUSE_EMBOT_theServices -DEOTHESERVICES_disable_theMotionController -DUSE_EOtheMCamc -DUSE_EMBOT_theServicesMC</MiscControls>
<Define>USE_EMBOT_HW EMBOBJ_USE_EMBOT USE_STM32HAL STM32HAL_BOARD_AMC STM32HAL_DRIVER_V1A0 WRIST_MK2</Define>
<Undefine></Undefine>
<IncludePath>..\..\..\..\..\libs\lowlevel\stm32hal\api;..\..\..\..\..\libs\highlevel\abslayer\osal\api;..\..\..\..\..\..\..\..\..\icub-firmware-shared\embot\core;..\..\..\..\..\embot\hw;..\..\..\..\..\embot\os;..\..\..\..\..\embot\app;..\..\..\..\..\libs\midware\eventviewer\api;..\..\..\..\..\libs\highlevel\abslayer\ipal\api;--..\..\..\..\..\libs\highlevel\abslayer\hal2\api;..\..\..\..\..\..\..\..\..\icub-firmware-shared\eth\embobj\core\core;..\..\..\..\..\embobj\core\exec\multitask;..\..\..\..\..\embobj\plus\ipnet;..\src\emb-env;..\..\..\..\..\..\..\..\..\icub-firmware-shared\embot\prot\eth;..\..\..\bsp;..\cfg;..\..\..\bsp\ethdriver;..\..\..\..\..\libs\highlevel\services\embenv\api;..\..\..\..\..\embobj\plus\embenv;..\..\..\..\..\libs\highlevel\abslayer\hal2\api;..\..\..\..\..\embobj\plus\ctrloop;..\..\..\..\..\..\..\..\..\icub-firmware-shared\eth\embobj\plus\comm-v2\icub;..\..\..\..\..\..\..\..\..\icub-firmware-shared\can\canProtocolLib;..\..\..\..\..\embot\app\eth;.;..\..\..\..\..\..\..\..\..\icub-firmware-shared\eth\embobj\plus\comm-v2\transport;..\..\..\..\..\..\..\..\..\icub-firmware-shared\eth\embobj\plus\comm-v2\protocol\api;..\cfg\protocol;..\..\..\..\..\embobj\plus\can;..\..\..\..\ems004\appl\v2\src\eoappservices;..\..\..\..\..\embobj\plus\board;..\..\..\..\..\..\..\..\..\icub-firmware-shared\embot\tools;..\..\..\..\..\mbd\kalman_filter;..\..\..\..\..\embobj\plus\mc;..\..\..\..\..\libs\midware\hl-plus\api;..\..\..\..\..\embot\prot\can</IncludePath>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.placeholder
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@

/*
* Copyright (C) 2022 iCub Tech - Istituto Italiano di Tecnologia
* Author: Marco Accame
* email: marco.accame@iit.it
*/

// - include guard ----------------------------------------------------------------------------------------------------

#ifndef _EMBOT_HW_BSP_AMC_H_
#define _EMBOT_HW_BSP_AMC_H_

#include "embot_core.h"
#include "embot_hw_types.h"

namespace embot { namespace hw { namespace bsp { namespace amc {

// adds in here constants or functions specific to the board
constexpr embot::hw::LED blinkLED {embot::hw::LED::one};

struct OnSpecialize
{
enum class CM4MODE { donothing = 0, activateandhold = 1, release = 2};

CM4MODE cm4mode {CM4MODE::donothing};
bool enableJ5powersupply_at_startup {false};
bool enableJ5spi_123_at_startup {false};
constexpr OnSpecialize() = default;
constexpr OnSpecialize(CM4MODE cm4m, bool j5pow, bool j5spi) :
cm4mode(cm4m),
enableJ5powersupply_at_startup(j5pow),
enableJ5spi_123_at_startup(j5spi)
{}
};

constexpr OnSpecialize OnSpecLoader
{
OnSpecialize::CM4MODE::activateandhold, false, false
};

constexpr OnSpecialize OnSpecUpdater
{
OnSpecialize::CM4MODE::donothing, false, false
};

constexpr OnSpecialize OnSpecApplication
{
OnSpecialize::CM4MODE::release, true, false
};

void set(const OnSpecialize& onsp);

}}}}

#endif // include-guard


// - end-of-file (leave a blank line after)----------------------------------------------------------------------------



Loading

0 comments on commit 7aba0a9

Please sign in to comment.