@@ -1466,6 +1466,18 @@ def led (name, default, ledList):
14661466 ]))
14671467 return { name : led }
14681468
1469+ ################################################################
1470+ # Waveform flavour
1471+
1472+ def waveform ():
1473+ return { 'waveform' : collections .OrderedDict ([
1474+ ('.menu.waveform.phase' , 'Locked Phase' ),
1475+ ('.menu.waveform.phase.build.waveform' , '-DWAVEFORM_LOCKED_PHASE' ),
1476+ ('.menu.waveform.pwm' , 'Locked PWM' ),
1477+ ('.menu.waveform.pwm.build.waveform' , '-DWAVEFORM_LOCKED_PWM' ),
1478+ ])
1479+ }
1480+
14691481################################################################
14701482# sdk selection
14711483
@@ -1517,6 +1529,7 @@ def all_boards ():
15171529 macros .update (led ('led' , led_default , range (0 ,led_max + 1 )))
15181530 macros .update (led ('led216' , 2 , { 16 }))
15191531 macros .update (sdk ())
1532+ macros .update (waveform ())
15201533
15211534 if boardfilteropt or excludeboards :
15221535 print ('#' )
@@ -1561,6 +1574,7 @@ def all_boards ():
15611574 print ('menu.wipe=Erase Flash' )
15621575 print ('menu.sdk=Espressif FW' )
15631576 print ('menu.ssl=SSL Support' )
1577+ print ('menu.waveform=Waveform Flavour' )
15641578 print ('' )
15651579
15661580 missingboards = []
@@ -1581,7 +1595,7 @@ def all_boards ():
15811595 print (id + optname + '=' + board ['opts' ][optname ])
15821596
15831597 # macros
1584- macrolist = [ 'defaults' , 'cpufreq_menu' , 'vtable_menu' , 'exception_menu' , 'stacksmash_menu' , 'ssl_cipher_menu' ]
1598+ macrolist = [ 'defaults' , 'cpufreq_menu' , 'vtable_menu' , 'exception_menu' , 'stacksmash_menu' , 'ssl_cipher_menu' , 'waveform' ]
15851599 if 'macro' in board :
15861600 macrolist += board ['macro' ]
15871601 macrolist += [ 'lwip' , 'debug_menu' , 'flash_erase_menu' ]
0 commit comments