Skip to content

richardcochran/regen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This software is a simple utility for generating C language code for device registers from a plain text description file. This can be useful when developing a device driver, working from the vendor’s data sheet.

License

The software is copyrighted by the author and is licensed under the GNU General Public License. See the file, COPYING, for details of the license terms.

Emacs Mode for REG Files

(define-generic-mode reg-mode
  ;; comment list
  (list "#")
  ;; keyword list
  '("base" "bit" "field" "register")
  ;; font lock list
  '(
    ("name" . 'font-lock-type-face)
    ("offset" . 'font-lock-type-face)
    ("pos" . 'font-lock-type-face)
    ("width" . 'font-lock-type-face)
    ;;
    ("comment" . 'font-lock-variable-name-face)
    )
  ;; auto mode list
  '(".reg\\'")
  ;; function list
  ()
  ;; doc string
  "Major mode to edit REG files."
  )

About

Tool for generating register definition code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages