Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: HbUserOpe.cpp
- Revision:
- 42:cc8501b824ba
- Parent:
- 41:45c982b1c5b6
- Child:
- 53:b09c062cc31c
--- a/HbUserOpe.cpp Mon Jan 21 11:57:35 2019 +0000
+++ b/HbUserOpe.cpp Wed Jan 23 11:58:53 2019 +0000
@@ -18,8 +18,18 @@
{
oldOpe = curOpe;
curOpe.w = fpgaGetUserSw();
+ if(gf_SwCmd.bf.req){
+ if(gf_SwCmd.bf.req){
+ UINT16 mask = 0x1;
+ mask = mask << gf_SwCmd.bf.val;
+ curOpe.w |= mask;
+ gf_SwCmd.bf.req = false;
+ }
+ }
if(gf_Print.d2.bf.sw){
- sp.printf("SW : [%04X] ", curOpe.w);
+ sp.printf("SW : %d%d%d%d%d%d%d%d%d%d ",curOpe.bf.brk_l,curOpe.bf.flt_off,curOpe.bf.r_eng_down,curOpe.bf.r_eng_up,curOpe.bf.rsv_1
+ ,curOpe.bf.brk_r,curOpe.bf.flt_on,curOpe.bf.f_eng_down,curOpe.bf.f_eng_up, curOpe.bf.all_stop);
+ //sp.printf("SW : [%04X] ", curOpe.w);
}
return curOpe;
}