Part 1 of 4: updated l1 to use flash_<reg>_bit instead of just flash_bit
Also, some of the most basic essential helper functions.