.struct SER_HDR
ID .byte 3 ; Contains 0x73, 0x65, 0x72 ("ser")
VERSION .byte 1 ; Interface version
+ LIBREF .addr ; Library reference
JUMPTAB .struct
- INSTALL .word ; INSTALL routine
- UNINSTALL .word ; UNINSTALL routine
- OPEN .word ; OPEN routine
- CLOSE .word ; CLOSE routine
- GET .word ; GET routine
- PUT .word ; PUT routine
- STATUS .word ; STATUS routine
- IOCTL .word ; IOCTL routine
- IRQ .word ; IRQ routine
+ SER_INSTALL .addr ; SER_INSTALL routine
+ SER_UNINSTALL .addr ; SER_UNINSTALL routine
+ SER_OPEN .addr ; SER_OPEN routine
+ SER_CLOSE .addr ; SER_CLOSE routine
+ SER_GET .addr ; SER_GET routine
+ SER_PUT .addr ; SER_PUT routine
+ SER_STATUS .addr ; SER_STATUS routine
+ SER_IOCTL .addr ; SER_IOCTL routine
+ SER_IRQ .addr ; SER_IRQ routine
.endstruct
.endstruct
;------------------------------------------------------------------------------
; The SER API version, stored SER_HDR::VERSION
-SER_API_VERSION = $00
+SER_API_VERSION = $02
;------------------------------------------------------------------------------
; ser_params
SER_BAUD_230400 = $13
SER_BAUD_31250 = $14
SER_BAUD_62500 = $15
+SER_BAUD_56_875 = $16
; Data bit settings
SER_BITS_5 = $00
.global _ser_ioctl
.global _ser_clear_ptr
-