# HG changeset patch # User Jacob Alexander # Date 1430602167 25200 # Node ID cc09f7e858bf1629b143116c2fab15f709884756 # Parent 18c3c4924f20d8e163e3eaad9a3fb3ef23fc4a85 Adding None capability. - Required for 0.3b update of the KLL compiler. diff -r 18c3c4924f20 -r cc09f7e858bf Output/pjrcUSB/capabilities.kll --- a/Output/pjrcUSB/capabilities.kll Tue Apr 07 22:11:04 2015 -0700 +++ b/Output/pjrcUSB/capabilities.kll Sat May 02 14:29:27 2015 -0700 @@ -1,14 +1,15 @@ Name = pjrcUSBCapabilities; -Version = 0.3; -Author = "HaaTa (Jacob Alexander) 2014"; -KLL = 0.3; +Version = 0.4; +Author = "HaaTa (Jacob Alexander) 2014-2015"; +KLL = 0.3b; # Modified Date -Date = 2014-10-01; +Date = 2015-05-02; # Output capabilities consCtrlOut => Output_consCtrlSend_capability( consCode : 2 ); +NoneOut => Output_noneSend_capability(); sysCtrlOut => Output_sysCtrlSend_capability( sysCode : 1 ); usbKeyOut => Output_usbCodeSend_capability( usbCode : 1 ); diff -r 18c3c4924f20 -r cc09f7e858bf Output/pjrcUSB/output_com.c --- a/Output/pjrcUSB/output_com.c Tue Apr 07 22:11:04 2015 -0700 +++ b/Output/pjrcUSB/output_com.c Sat May 02 14:29:27 2015 -0700 @@ -229,6 +229,21 @@ } +// Ignores the given key status update +// Used to prevent fall-through, this is the None keyword in KLL +void Output_noneSend_capability( uint8_t state, uint8_t stateType, uint8_t *args ) +{ + // Display capability name + if ( stateType == 0xFF && state == 0xFF ) + { + print("Output_noneSend()"); + return; + } + + // Nothing to do, because that's the point :P +} + + // Sends a System Control code to the USB Output buffer void Output_sysCtrlSend_capability( uint8_t state, uint8_t stateType, uint8_t *args ) { diff -r 18c3c4924f20 -r cc09f7e858bf Output/pjrcUSB/output_com.h --- a/Output/pjrcUSB/output_com.h Tue Apr 07 22:11:04 2015 -0700 +++ b/Output/pjrcUSB/output_com.h Sat May 02 14:29:27 2015 -0700 @@ -89,6 +89,7 @@ // Output capabilities void Output_consCtrlSend_capability( uint8_t state, uint8_t stateType, uint8_t *args ); +void Output_noneSend_capability( uint8_t state, uint8_t stateType, uint8_t *args ); void Output_sysCtrlSend_capability( uint8_t state, uint8_t stateType, uint8_t *args ); void Output_usbCodeSend_capability( uint8_t state, uint8_t stateType, uint8_t *args );