Skip to main content
Visitor II
March 1, 2020
Question

Is there any PS/2 keyboard/mouse library available?

  • March 1, 2020
  • 1 reply
  • 1167 views

Is there any working PS/2 keyboard/mouse library available for STM8 microcontroller?

Best Regards,

tinkerBOY

    This topic has been closed for replies.

    1 reply

    tinkerBOYAuthor
    Visitor II
    March 22, 2020

    I found a possible PS2 keyboard implementation for the STM8 mcu using this. I tried compiling on STVD but i keep getting errors.

    ----------- Project ps2_keyboard - STM8 Cosmic - Configuration Debug -------------
     
    Compiling ps2_keyboard\main.c...
    cxstm8 -iinc -ips2_keyboard +debug -pxp -no -l +mods0 -pp -i"C:\Program Files (x86)\COSMIC\FSE_Compilers\CXSTM8\Hstm8" -clDebug\ -coDebug\ ps2_keyboard\main.c 
    #error cpstm8 C:\Program Files (x86)\COSMIC\FSE_Compilers\CXSTM8\Hstm8\stdint.h:9(20+6) redeclared typedef int8_t
    #error cpstm8 C:\Program Files (x86)\COSMIC\FSE_Compilers\CXSTM8\Hstm8\stdint.h:10(21+7) redeclared typedef int16_t
    #error cpstm8 C:\Program Files (x86)\COSMIC\FSE_Compilers\CXSTM8\Hstm8\stdint.h:11(20+7) redeclared typedef int32_t
    #error cpstm8 C:\Program Files (x86)\COSMIC\FSE_Compilers\CXSTM8\Hstm8\stdint.h:12(22+7) redeclared typedef uint8_t
    #error cpstm8 C:\Program Files (x86)\COSMIC\FSE_Compilers\CXSTM8\Hstm8\stdint.h:13(23+8) redeclared typedef uint16_t
    #error cpstm8 C:\Program Files (x86)\COSMIC\FSE_Compilers\CXSTM8\Hstm8\stdint.h:14(22+8) redeclared typedef uint32_t
    #error cpstm8 ps2_keyboard\main.c:26(17) redeclared external putchar
    #error cpstm8 ps2_keyboard\main.c:135(0) missing enumeration member
    #error cpstm8 ps2_keyboard\main.c:349(0) missing enumeration member
    #error cpstm8 ps2_keyboard\main.c:355(0) missing enumeration member
    #error cpstm8 ps2_keyboard\main.c:447(20) missing prototype
    #error cpstm8 ps2_keyboard\main.c:471(23) missing prototype
    #error cpstm8 ps2_keyboard\main.c:488(13) missing prototype
    #error cpstm8 ps2_keyboard\main.c:515(19) missing prototype
    #error cpstm8 ps2_keyboard\main.c:524(26) missing prototype
    #error cpstm8 ps2_keyboard\main.c:513(24+8) __func__ undefined
    ps2_keyboard\main.c:
     The command: "cxstm8 -iinc -ips2_keyboard +debug -pxp -no -l +mods0 -pp -i"C:\Program Files (x86)\COSMIC\FSE_Compilers\CXSTM8\Hstm8" -clDebug\ -coDebug\ ps2_keyboard\main.c " has failed, the returned value is: 1
    exit code=1.
     
    main.o - 18 error(s), 0 warning(s)

    Any idea?