When I suffix the f_cpu frequency value with L within boardname.json then some boards give an error while others do not, and even for exactly the same frequency value! Can someone please explain the correct usage of the L “long” suffix? I’m not good enough with Python to know what is intended by reading the code.
For example “f_cpu”: “11059200L”, will yield an error like this with some boards but if I take out the L then everything is okay:
Building in release mode
ValueError: invalid literal for int() with base 10: '11059200L':
File \"C:\\Users\\user\\.platformio\\penv\\Lib\\site-packages\\platformio\\builder\\main.py\", line 177:
env.SConscript(\"$BUILD_SCRIPT\")
File \"C:\\Users\\user\\.platformio\\packages\\tool-scons\\scons-local-4.1.0\\SCons\\Script\\SConscript.py\", line 591:\r\n return _SConscript(self.fs, *files, **subst_kw)
File \"C:\\Users\\user\\.platformio\\packages\\tool-scons\\scons-local-4.1.0\\SCons\\Script\\SConscript.py\", line 280:\r\n exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File \"C:\\Users\\user\\.platformio\\platforms\\intel_mcs51\\builder\\main.py\", line 146:
f_cpu_khz = int(board_config.get(\"build.f_cpu\")) / 1000