Commit Graph

8 Commits

Author SHA1 Message Date
Yann MAGNIN 221dacae2e VxKernel 0.6.0-9 : Add line API + circle API
@add
<> include/vhex/display/draw
  | add circle drawing primitive
  | add line drawing primitives
<> src/drivers/screen/r61524
  | add assembly version of the "frame_frag_send" (WIP)
<> src/modules/display/draw
  | add filled circle algorithm
  | add line algorithm

@update
<> include/vhex/display
  | use "dsurface_t" instead of "struct dshader_surface"
  | rename pixel dstack primitives
<> src/drivers/screen/r61524
  | clear proper zone of the surface
  | avoid unused area wiping
  | remove (temporary) surface merging
<> src/module/display/dclear
  | clear proper zone of the surface
  | rename internal primitives
2022-06-15 20:40:43 +02:00
Yann MAGNIN 7aada07d23 VxKernel 0.6.0-7 : First version of the timer API + update INTC API
@add
<> include/vhex/driver/mpu/sh/sh7305/intc
  | add interruption priority primitives
  | add all interruption configuration available
<> src/driver/mpu/sh/sh7305/intc
  | remove the install.c source file (merge its content in driver definition)
  | add proper priority primitive
  | add priority information

@update
<> include/vhex/timer
  | force TIMER_CONTINUE at 0
  | force TIMER_STOP at 1
<> src/driver/mpu/sh/sh7305/keysc
  | use the new interrupt priority primitives

@fix
<> src/driver/mpu/sh/sh7305/tmu
  | fix interrupt handler assembly crash for ETMUx
  | fix timer ID check security
  | fix timer available check
  | fix ETMUx interrupt handlers installation runtime patch
  | add timer interrupt level (enable interrupt)
<> src/modules/display/text/dtext
  | fix string cache reallocation
<> src/module/timer
  | fix driver flag check
  | fix module definition
2022-06-14 21:56:06 +02:00
Yann MAGNIN cb4af4f7bb VxKernel 0.6.0-5 : Clock driver + TMU/ETMU driver (WIP) + timer API
@add
<> include/vhex/driver/mpu/sh/sh7305/cpg
  | add hardware description
  | add kernel-level API to fetch clocks information
<> include/vhex/driver/mpu/sh/sh7305/tmu
  | add hardware description
<> include/vhex/timer
  | add timer API
  | add timer callback definition
  | add timer types information
<> src/drivers/mpu/sh/sh7305/cpg
  | add CPG driver declaration
  | add CPG driver kernel-API
  | prepare "real" driver installation hook
<> src/drivers/mpu/sh/sh7305/cpu/sleep
  | add CPU sleep primitives
<> src/drivers/mpu/sh/sh7305/intc/inth_callback
  | add special interrupt handler callback manager
<> src/drivers/mpu/sh/sh7305/tmu
  | add TMU interrupt handlers
  | add ETMU interrupt handlers
  | add TMU/ETMU driver-level API code
<> src/modules/timer
  | add timer API code (simply a binding to the TMU/ETMU driver)

@update
<> include/vhex/driver
  | add TIMER flags information
<> include/vhex/driver/cpu
  | add sleep primitive
<> include/vhex/driver/mpu/sh/sh7305/intc
  | return the address where the handle has been installed
<> src/driver/screen/r61524
  | perform the "sprite" VRAM merging before sending all pixel on screen

@fix
<> include/vhex/hardware
  | add workaround to allow this header to be included in ASM source file (.S)
<> src/modules/display/text/dfont
  | fix line discipline with \n
  | fix string size when a bad character is detected
2022-06-13 21:15:36 +02:00
Yann MAGNIN dca07d7f06 VxKernel 0.6.0-4 : Support the text API
@add
<> src/modules/display/text/dascii
  | proof-of-concept of "one-char" drawing API (used for kernel debug)
<> src/modules/fs
  | empty File System module used to expose some primitives used by the libc:
  |  write(), read(), lseek() and close() which there have been removed from the
  |  `fxlibc` project which used an old / deprecated ABI/sycall interface that
  | doesn't exist in this version of Vhex

@update
<> include/display/draw/pixel
  | remove the display ID returned by dpixel(). All primitives that support
  |  shaders must provide explicit API. This to allow fast-optimized API and
  |  polyvalence API for shadering which impact the performance
<> src/modules/display/dclear
  | isolate tree level for this primitive:
  |  - kernel  : direct fragment drawing primitive (by-pass dstack)
  |  - dstack  : dstack drawing primitive
  |  - user    : user drawing primitive (dstack-API)
  | invalidate automatically the dstack each time the primitive (user-level) is
  |  involved
<> src/modules/display/dstack
  | isolate the dstack invalidate part in a specific primitive

@fix
<> make/Makefile
  | proper support of the OpenLibm header path
<> src/drivers/screen/r61524
  | proper support of the last data fragment size. This caused an override on
  |  the first X line of the screen
<> src/modules/display/dstack
  | fix a crash when the number of action is full
  | fix a crash with the default index used for action cache
  | fix a crash with the default index used for shader cache
  | fix action initialization
  | fix action quit primitive
<> src/modules/display/text/dfont
  | fix the character drawing algorithm
  | proper support of the character drawing color (foreground/background)
  | fix the kernel-level primitive used to display a Unicode string
<> src/modules/display/text/dtext
  | fix a crash with the internal index counter
  | fix a crash in the internal cache
  | fix the quit function
2022-06-10 21:28:51 +02:00
Yann MAGNIN eb9b0078c2 VxKernel 0.6.0-3 : Fix dstack crash + pixel API + support assets generation
@add
<> include/vhex/display/draw/pixel :
   | add pixel drawing API
<> modules/display/draw/dpixel
   | add pixel drawing API code

@update
<> board/fxcg50/board :
   | remove old DWIDTH/DHEIGHT display API dependencies (use the new driver
   | interface instead).
<> include/vhex/display/font :
   | update the font structure information
<> include/vhex/display/shader :
   | switch x/y to unsigned int to signed int to avoid many cast in render
   | primitives
<> make/Makefile
   | support header modification detection (header dependencies)
   | support assets generation
<> modules/display/text/font
<> modules/display/text/text
   | prepare drawing algorithm (WIP)

@fix
<> kernel/drivers/screen/r61524/r61524
   | proper handle geometry of each drawing area
   | fix clear loop boundary
   | fix render loop boundary
<> modules/display/dstack
   | fix shader index
   | remove useless extern keyword
2022-06-02 10:16:25 +02:00
Yann MAGNIN 510c4f1f86 VxKernel 0.6.0-2 : Prepare font and text API (WIP)
@add
<> include/vhex/display :
   | add dwidth() primitive
   | add dheight() primitive
<> include/vhex/display/font :
   | create a font structure that support proportional font
   | expose font primitives API (WIP)
<> vhex/module/display/text/dfont:
   | support utf8 string format
   | add geometry font information (WIP)
<> vhex/module/display/text/dtext:
   | write most of the API primitive (WIP)
   | proper isolation between font <-> text API

@update
<> include/vhex/display/shader :
   | add a quit() routine that will be involved at the end of dupdate()
   | add display_[width/height] in driver interface
   | add display screen information primitives
<> vhex/drivers/screen/r61524/r61524.c
   | add display driver interface screen information
<> vhex/module/display/dclear:
   | use the 32-bits arguments instead of the broken dshader_call_arg_t
   | support the new API with quit() routine
<> vhex/module/display/dstack:
   | support the new display screen information
   | support the quit() routine at the end of the dupdate()

@fix
<> include/vhex/display/shader :
   | remove broken transparent-union implicit cast
   | fix argument transmitted to drawing routine (only 32bit arguments supported)
2022-05-28 21:55:48 +02:00
Yann MAGNIN a916120d66 VxKernel 0.6.0-1 : Rework the graphic pipeline
@add
<> board/fxcg50/fxcg50-dynamic.ld : add the "user/addin" linker script
<> include/vhex/display* : rework the graphic API/pipeline
<> include/vhex/driver/scree/r61524 : add hardware description and API
<> drivers/screen/r61524 : add r61524 driver
<> module/display/dstack : new pipeline

@update
<> board/fxcg50/board : explicitly set the DWIDTH/DHEIGHT define
<> board/fxcg50/hypervisor : API update (WIP)
<> include/vhex/driver :
   | update driver information (use bitfield instead of define and macros)
   | configure driver's primitive cannot be NULL
   | driver can embed module data (ex: r61524 embed display module primitives)
<> include/vhex/hypervisor :
   | update driver information (use bitfield instead of define and macros)
   | update world information (use bitfield instead of define and macros)
   | remove useless "restricted" keyword in prototype
<> make/Makefile : add the support of the vxSDK (0.12.0)
<> module/display/dclear  : support of the new pipeline
<> module/display/display : support of the new pipeline
<> module/display/dupdate : support of the new pipeline
<> module/hypervisor/switch : support new driver/world structure
<> module/hypervisor/table  : support new driver/world structure
<> vxsdk.toml : support of the vxSDK 0.12.0

@fix
<> drivers/mpu/sh/sh7305/cpu/cpu : mask interrupt by default (cpu_atomic_end)
2022-05-27 11:57:55 +02:00
Yann MAGNIN df8d26ecca VxKernel 0.3.0 : Worlds
@add
<> include/vhex/arch/sh7305/cpu : add CPU hardware information
<> include/vhex/arch/sh7305/intc : add INTC hardware information
<> include/vhex/driver : add driver information
<> include/vhex/hypervisor : add hypervisor API
<> include/vhex/drivers/cpu : add CPU API
<> src/drivers/mpu/sh/sh7305/cpu/atomic : add CPU atomic primitives
<> src/drivers/mpu/sh/sh7305/cpu/cpu : add CPU driver for the hypervisor
<> src/drivers/mpu/sh/sh7305/cpu/register : add CPU registers abstraction
<> src/drivers/mpu/sh/sh7305/intc/intc : add INTC driver for the hypervisor
<> src/hypervisor/switch : add world switch
<> src/hypervisor/table : add world management

@update
<> vxsdk.toml : update the project version
<> src/kernel/kernel : hypervisor bootstrap (worlds switch between Casio / Vhex)
<> board/fxcg50/fxcg50.ld : drivers blocks

@fix
<> board/fxcg50/fxcg50.ld : generate the VRAM information (300ko -> 130ko)
<> board/fxcg50/fxcg50.ld : isolate BSS information
<> board/fxcg50/initialize : comments indentation
<> config : board and arch detection (os.walk())
<> gitignore : allow vxsdk.toml update
2022-02-13 15:01:01 +01:00