-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #768 from LedgerHQ/use-nbgl-shared-function
Use nbgl shared functions
- Loading branch information
Showing
23 changed files
with
402 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#pragma once | ||
|
||
// auto-generated by shared_export.py | ||
#define _NR_nbgl_refresh 0x91 | ||
#define _NR_nbgl_refreshSpecial 0x92 | ||
#define _NR_nbgl_refreshSpecialWithPostRefresh 0x93 | ||
#define _NR_nbgl_refreshIsNeeded 0x94 | ||
#define _NR_nbgl_refreshReset 0x95 | ||
#define _NR_nbgl_objInit 0x96 | ||
#define _NR_nbgl_objDraw 0x97 | ||
#define _NR_nbgl_objAllowDrawing 0x98 | ||
#define _NR_nbgl_objGetRAMBuffer 0x99 | ||
#define _NR_nbgl_screenContainsObjType 0x9a | ||
#define _NR_nbgl_screenSet 0x9b | ||
#define _NR_nbgl_screenPush 0x9c | ||
#define _NR_nbgl_screenRedraw 0x9d | ||
#define _NR_nbgl_screenPop 0x9e | ||
#define _NR_nbgl_screenGetElements 0x9f | ||
#define _NR_nbgl_screenGetCurrentStackSize 0xa0 | ||
#define _NR_nbgl_screenGetUxStackSize 0xa1 | ||
#define _NR_nbgl_screenGetAt 0xa2 | ||
#define _NR_nbgl_screenGetTop 0xa3 | ||
#define _NR_nbgl_screenUpdateTicker 0xa4 | ||
#define _NR_nbgl_screenUpdateBackgroundColor 0xa5 | ||
#define _NR_nbgl_screenReset 0xa6 | ||
#define _NR_nbgl_screenHandler 0xa7 | ||
#define _NR_nbgl_objPoolGet 0xa8 | ||
#define _NR_nbgl_objPoolGetArray 0xa9 | ||
#define _NR_nbgl_containerPoolGet 0xaa | ||
#define _NR_nbgl_getCharWidth 0xab | ||
#define _NR_nbgl_getFont 0xac | ||
#define _NR_nbgl_getFontHeight 0xad | ||
#define _NR_nbgl_getFontLineHeight 0xae | ||
#define _NR_nbgl_getSingleLineTextWidth 0xaf | ||
#define _NR_nbgl_getSingleLineTextWidthInLen 0xb0 | ||
#define _NR_nbgl_getTextHeight 0xb1 | ||
#define _NR_nbgl_getTextHeightInWidth 0xb2 | ||
#define _NR_nbgl_getTextNbLinesInWidth 0xb3 | ||
#define _NR_nbgl_getTextNbPagesInWidth 0xb4 | ||
#define _NR_nbgl_getTextWidth 0xb5 | ||
#define _NR_nbgl_getTextMaxLenInNbLines 0xb6 | ||
#define _NR_nbgl_textReduceOnNbLines 0xb7 | ||
#define _NR_nbgl_textWrapOnNbLines 0xb8 | ||
#define _NR_nbgl_refreshUnicodeFont 0xb9 | ||
#define _NR_nbgl_touchHandler 0xba | ||
#define _NR_nbgl_touchGetTouchDuration 0xbb | ||
#define _NR_nbgl_touchGetTouchedPosition 0xbc | ||
#define _NR_nbgl_buttonsHandler 0xbd | ||
#define _NR_nbgl_buttonsReset 0xbe | ||
#define _NR_nbgl_keyboardCallback 0xbf | ||
#define _NR_nbgl_keypadCallback 0xc0 | ||
#define _NR_nbgl_drawText 0xc1 | ||
#define _NR_pic_shared 0xc2 | ||
#define _NR_pic_init 0xc3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# This file contains the functions exported by shared lib. It is used by shared_export.py to | ||
# generate asm stubs for the SDK and the NBGL functions table in shared lib. | ||
# | ||
# Making changes to this file (ie. removal, addition, ordering) require apps to | ||
# be re-built since the ID of the exported functions will likely be different. | ||
|
||
nbgl_refresh | ||
nbgl_refreshSpecial | ||
nbgl_refreshSpecialWithPostRefresh | ||
nbgl_refreshIsNeeded | ||
nbgl_refreshReset | ||
nbgl_objInit | ||
nbgl_objDraw | ||
nbgl_objAllowDrawing | ||
nbgl_objGetRAMBuffer | ||
nbgl_screenContainsObjType | ||
nbgl_screenSet | ||
nbgl_screenPush | ||
nbgl_screenRedraw | ||
nbgl_screenPop | ||
nbgl_screenGetElements | ||
nbgl_screenGetCurrentStackSize | ||
nbgl_screenGetUxStackSize | ||
nbgl_screenGetAt | ||
nbgl_screenGetTop | ||
nbgl_screenUpdateTicker | ||
nbgl_screenUpdateBackgroundColor | ||
nbgl_screenReset | ||
nbgl_screenHandler | ||
nbgl_objPoolGet | ||
nbgl_objPoolGetArray | ||
nbgl_containerPoolGet | ||
nbgl_getCharWidth | ||
nbgl_getFont | ||
nbgl_getFontHeight | ||
nbgl_getFontLineHeight | ||
nbgl_getSingleLineTextWidth | ||
nbgl_getSingleLineTextWidthInLen | ||
nbgl_getTextHeight | ||
nbgl_getTextHeightInWidth | ||
nbgl_getTextNbLinesInWidth | ||
nbgl_getTextNbPagesInWidth | ||
nbgl_getTextWidth | ||
nbgl_getTextMaxLenInNbLines | ||
nbgl_textReduceOnNbLines | ||
nbgl_textWrapOnNbLines | ||
nbgl_refreshUnicodeFont | ||
#ifdef HAVE_SE_TOUCH | ||
nbgl_touchHandler | ||
nbgl_touchGetTouchDuration | ||
nbgl_touchGetTouchedPosition | ||
#else // HAVE_SE_TOUCH | ||
nbgl_buttonsHandler | ||
nbgl_buttonsReset | ||
nbgl_keyboardCallback | ||
nbgl_keypadCallback | ||
#endif // HAVE_SE_TOUCH | ||
nbgl_drawText | ||
pic_shared | ||
pic_init |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.