Shows available RAM
This commit is contained in:
parent
0395fed907
commit
ab37d32b6d
4 changed files with 176 additions and 0 deletions
12
exercises/15_RAM/scripts/set_build_epoch.py
Normal file
12
exercises/15_RAM/scripts/set_build_epoch.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import time
|
||||
Import("env")
|
||||
|
||||
epoch = int(time.time())
|
||||
utc_tag = time.strftime("%Y%m%d_%H%M%S_z", time.gmtime(epoch))
|
||||
|
||||
env.Append(
|
||||
CPPDEFINES=[
|
||||
("FW_BUILD_EPOCH", str(epoch)),
|
||||
("FW_BUILD_UTC", '\\"%s\\"' % utc_tag),
|
||||
]
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue