bird-sanctuary / bluejay

:bird: Digital ESC firmware for controlling brushless motors in multirotors
GNU General Public License v3.0
312 stars 36 forks source link

Flash lock/unlock macros/routine #108

Closed stylesuxx closed 1 year ago

stylesuxx commented 1 year ago

It would be nice to wrap flash lock/unlock into custom macros or routines:

unlock_flash:
    mov  Flash_Key_1, #0A5h
    mov  Flash_Key_2, #0F1h

    ret

lock_flash:
    mov  Flash_Key_1, #0
    mov  Flash_Key_2, #0

    ret