message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
---|---|
prevent -isystem-after flag and -isystem in path | @@ -44,8 +44,10 @@ function _translate_arguments(arguments)
if idx == 1 and is_host("windows") and path.extension(arg) == "" then
arg = arg .. ".exe"
end
- if arg:startswith("-isystem", 1, true) then
- arg = arg:replace("-isystem", "-I")
+ if arg:startswith("-isystem-after", 1, true) then
+ arg = "-I" .. arg:sub(13, -1)
+ elseif arg:startswith("-isystem", 1, true) then
+ arg = "-I" .. arg:sub(9, -1)
elseif arg:find("[%-/]external:I") then
arg = arg:gsub("[%-/]external:I", "-I")
elseif arg:find("[%-/]external:W") or arg:find("[%-/]experimental:external") then
|
Core(M): Added memory clobbers to get_PRIMASK on GCC to prevent (erroneous) instruction reordering. [Issue | @@ -380,7 +380,7 @@ __attribute__((always_inline)) __STATIC_INLINE uint32_t __get_PRIMASK(void)
{
uint32_t result;
- __ASM volatile ("MRS %0, primask" : "=r" (result) );
+ __ASM volatile ("MRS %0, primask" : "=r" (result) :: "memory" );
return(result);
}
@@ -395,7 +395,7 @@ __attribute__((always_inline)) __STATIC_INLINE uint32_t __TZ_get_PRIMASK_NS(void
{
uint32_t result;
- __ASM volatile ("MRS %0, primask_ns" : "=r" (result) );
+ __ASM volatile ("MRS %0, primask_ns" : "=r" (result) :: "memory" );
return(result);
}
#endif
|
board/rtl8721csm/bluetooth: Check active conn before read/write/notify | @@ -331,7 +331,7 @@ trble_result_e rtw_ble_client_disconnect(trble_conn_handle conn_handle)
uint32_t conn_id = conn_handle;
if(GAP_CONN_STATE_CONNECTED == ble_app_link_table[conn_handle].conn_state)
{
- if(ble_tizenrt_client_send_msg(BLE_TIZENRT_DISCONNECT, (void *)conn_id))
+ if(ble_tizenrt_client_send_msg(BLE_TIZENRT_DISCONNECT, (void *)conn_id) == false)
{
debug_print("\r\n[%s] msg send fail", __FUNCTION__);
return TRBLE_FAIL;
@@ -380,6 +380,12 @@ trble_result_e rtw_ble_client_operation_read(trble_operation_handle* handle, trb
return TRBLE_FAIL;
}
+ if(!le_get_active_link_num())
+ {
+ debug_print("\r\n[%s] No active connection", __FUNCTION__);
+ return TRBLE_FAIL;
+ }
+
BLE_TIZENRT_READ_PARAM *param = os_mem_alloc(0, sizeof(BLE_TIZENRT_READ_PARAM));
if(param == NULL)
{
@@ -429,6 +435,12 @@ trble_result_e rtw_ble_client_operation_write(trble_operation_handle* handle, tr
return TRBLE_FAIL;
}
+ if(!le_get_active_link_num())
+ {
+ debug_print("\r\n[%s] No active connection", __FUNCTION__);
+ return TRBLE_FAIL;
+ }
+
if(ble_tizenrt_write_sem == NULL)
{
if(false == os_mutex_create(&ble_tizenrt_write_sem))
@@ -481,6 +493,12 @@ trble_result_e rtw_ble_client_operation_write_no_response(trble_operation_handle
return TRBLE_FAIL;
}
+ if(!le_get_active_link_num())
+ {
+ debug_print("\r\n[%s] No active connection", __FUNCTION__);
+ return TRBLE_FAIL;
+ }
+
if(ble_tizenrt_write_no_rsp_sem == NULL)
{
if(false == os_mutex_create(&ble_tizenrt_write_no_rsp_sem))
@@ -533,6 +551,12 @@ trble_result_e rtw_ble_client_operation_enable_notification(trble_operation_hand
return TRBLE_FAIL;
}
+ if(!le_get_active_link_num())
+ {
+ debug_print("\r\n[%s] No active connection", __FUNCTION__);
+ return TRBLE_FAIL;
+ }
+
if (client_init_parm == NULL || client_init_parm->trble_operation_notification_cb == NULL)
{
return TRBLE_FAIL;
|
Fix a release-only warning that I missed previously | @@ -123,7 +123,11 @@ class WinInetRequestWrapper : public PAL::RefCountedImpl<WinInetRequestWrapper>
// Take over the body buffer ownership, it must stay alive until
// the async operation finishes.
m_bodyBuffer.swap(request->m_body);
- BOOL bResult = ::HttpSendRequest(m_hWinInetRequest, NULL, 0, m_bodyBuffer.data(), (DWORD)m_bodyBuffer.size());
+#ifdef _DEBUG
+ BOOL bResult =
+#endif
+ ::HttpSendRequest(m_hWinInetRequest, NULL, 0, m_bodyBuffer.data(), (DWORD)m_bodyBuffer.size());
+
DWORD dwError = GetLastError();
assert(!bResult);
|
goaccess.c: Curses should not be initialized if '--process-and-exit' is in effect
This amends commit: | @@ -1451,11 +1451,15 @@ main (int argc, char **argv)
initializer ();
/* set stdout */
- if (conf.output_stdout)
+ if (conf.process_and_exit) {
+ /* ignore outputting, process only */
+ } else if (conf.output_stdout) {
set_standard_output ();
+ }
/* set curses */
- else
+ else {
set_curses (&quit);
+ }
/* no log/date/time format set */
if (quit)
|
Minor decoder fixes
Cosmetic changes
Check `instruction` argument for `NULL` | @@ -60,7 +60,7 @@ typedef struct ZydisDecoderContext_
*/
uint8_t lastSegmentPrefix;
/**
- * @brief Contains the prefix that should be traited as the mandatory-prefix, if the current
+ * @brief Contains the prefix that should be treated as the mandatory-prefix, if the current
* instruction needs one.
*
* The last 0xF3/0xF2 prefix has precedence over previous ones and 0xF3/0xF2 in
@@ -4428,7 +4428,7 @@ ZydisStatus ZydisDecoderInitEx(ZydisDecoder* decoder, ZydisMachineMode machineMo
ZydisStatus ZydisDecoderDecodeBuffer(const ZydisDecoder* decoder, const void* buffer,
size_t bufferLen, uint64_t instructionPointer, ZydisDecodedInstruction* instruction)
{
- if (!decoder)
+ if (!decoder || !instruction)
{
return ZYDIS_STATUS_INVALID_PARAMETER;
}
|
Fixed error compiling if never set text in a text event block | @@ -5,6 +5,7 @@ import { indexArray } from "../helpers/array";
import ggbgfx from "./ggbgfx";
import { hi, lo, decHex16, decHex } from "../helpers/8bit";
import compileEntityEvents from "./precompileEntityEvents";
+import { EVENT_TEXT } from "./eventTypes";
const STRINGS_PER_BANK = 430;
@@ -383,7 +384,10 @@ export const precompileFlags = scenes => {
export const precompileStrings = scenes => {
let strings = [];
walkScenesEvents(scenes, cmd => {
- if (cmd.args && cmd.args.text !== undefined) {
+ if (
+ cmd.args &&
+ (cmd.args.text !== undefined || cmd.command === EVENT_TEXT)
+ ) {
const text = cmd.args.text || " "; // Replace empty strings with single space
// If never seen this string before add it to the list
if (strings.indexOf(text) === -1) {
|
stm32/usb: Use USB HS as main USB device regardless of USB_HS_IN_FS. | #if !defined(MICROPY_HW_USB_MAIN_DEV)
#if defined(MICROPY_HW_USB_FS)
#define MICROPY_HW_USB_MAIN_DEV (USB_PHY_FS_ID)
-#elif defined(MICROPY_HW_USB_HS) && defined(MICROPY_HW_USB_HS_IN_FS)
+#elif defined(MICROPY_HW_USB_HS)
#define MICROPY_HW_USB_MAIN_DEV (USB_PHY_HS_ID)
#else
#error Unable to determine proper MICROPY_HW_USB_MAIN_DEV to use
|
braille: Fixed a leak of temporary files. | @@ -43,8 +43,7 @@ case $0 in
*cmxtopdf*) INPUT_FORMAT=cmx ;;
esac
-trap -- 'rm -f "$FILE_FORMAT"' EXIT
-trap -- 'rm -f "$FILE_FORMAT_PDF"' EXIT
+trap -- 'rm -f "$FILE_FORMAT" "$FILE_PDF"' EXIT
FILE_FORMAT=$(mktemp "${TMPDIR:-/tmp}/vectortopdf.XXXXXX.${INPUT_FORMAT}")
FILE_PDF=$(mktemp "${TMPDIR:-/tmp}/vectortopdf.XXXXXX.pdf")
|
primus: remove CONFIG_SYSTEM_UNLOCKED
The CONFIG_SYSTEM_UNLOCKED is not required now. Let's remove it
from the setting.
TEST=make BOARD=primus | /* Baseboard features */
#include "baseboard.h"
-#define CONFIG_SYSTEM_UNLOCKED
-
/*
* This will happen automatically on NPCX9 ES2 and later. Do not remove
* until we can confirm all earlier chips are out of service.
|
SOVERSION bump to version 2.2.3 | @@ -63,7 +63,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 2)
-set(LIBYANG_MICRO_SOVERSION 2)
+set(LIBYANG_MICRO_SOVERSION 3)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MINOR_SOVERSION}.${LIBYANG_MICRO_SOVERSION})
set(LIBYANG_SOVERSION ${LIBYANG_MAJOR_SOVERSION})
|
Fix Demo App deployment target | CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
INFOPLIST_FILE = TrustKitDemo/Info.plist;
- IPHONEOS_DEPLOYMENT_TARGET = 7.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.datatheorem.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
INFOPLIST_FILE = TrustKitDemo/Info.plist;
- IPHONEOS_DEPLOYMENT_TARGET = 7.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.datatheorem.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
|
Fix save directory to use system path separator; | @@ -308,18 +308,19 @@ bool lovrFilesystemSetIdentity(const char* identity) {
#else
// Make sure there is enough room to tack on /LOVR/<identity>
- if (cursor + strlen("/LOVR") + 1 + length >= sizeof(state.savePath)) {
+ if (cursor + 1 + strlen("LOVR") + 1 + length >= sizeof(state.savePath)) {
return false;
}
// Append /LOVR, mkdir
- memcpy(state.savePath + cursor, "/LOVR", strlen("/LOVR"));
- cursor += strlen("/LOVR");
+ state.savePath[cursor++] = LOVR_PATH_SEP;
+ memcpy(state.savePath + cursor, "LOVR", strlen("LOVR"));
+ cursor += strlen("LOVR");
state.savePath[cursor] = '\0';
fs_mkdir(state.savePath);
// Append /<identity>, mkdir
- state.savePath[cursor++] = '/';
+ state.savePath[cursor++] = LOVR_PATH_SEP;
memcpy(state.savePath + cursor, identity, length);
cursor += length;
state.savePath[cursor] = '\0';
|
support switching usb modes | @@ -158,23 +158,6 @@ uart_ring *get_ring_by_number(int a) {
}
}
-void debug_ring_callback(uart_ring *ring) {
- char rcv;
- while (getc(ring, &rcv)) {
- putc(ring, rcv);
-
- // jump to DFU flash
- if (rcv == 'z') {
- enter_bootloader_mode = ENTER_BOOTLOADER_MAGIC;
- NVIC_SystemReset();
- }
- if (rcv == 'x') {
- // normal reset
- NVIC_SystemReset();
- }
- }
-}
-
// ***************************** serial port *****************************
void uart_ring_process(uart_ring *q) {
@@ -282,6 +265,41 @@ int putc(uart_ring *q, char elem) {
#include "spi.h"
#include "safety.h"
+// ********************* debugging *********************
+
+void debug_ring_callback(uart_ring *ring) {
+ char rcv;
+ while (getc(ring, &rcv)) {
+ putc(ring, rcv);
+
+ // jump to DFU flash
+ if (rcv == 'z') {
+ enter_bootloader_mode = ENTER_BOOTLOADER_MAGIC;
+ NVIC_SystemReset();
+ }
+
+ // normal reset
+ if (rcv == 'x') {
+ NVIC_SystemReset();
+ }
+
+ // enable CDP mode
+ if (rcv == 'C') {
+ puts("switching USB to CDP mode\n");
+ set_usb_power_mode(USB_POWER_CDP);
+ }
+ if (rcv == 'c') {
+ puts("switching USB to client mode\n");
+ set_usb_power_mode(USB_POWER_CLIENT);
+ }
+ if (rcv == 'D') {
+ puts("switching USB to DCP mode\n");
+ set_usb_power_mode(USB_POWER_DCP);
+ }
+ }
+}
+
+
// ***************************** CAN *****************************
void process_can(uint8_t can_number) {
@@ -851,9 +869,10 @@ int main() {
uart_init(USART3, 10400);
USART3->CR2 |= USART_CR2_LINEN;
- /*puts("EXTERNAL");
+ // print if we have a hardware serial port
+ puts("EXTERNAL ");
puth(has_external_debug_serial);
- puts("\n");*/
+ puts("\n");
// enable USB
usb_init();
@@ -934,12 +953,12 @@ int main() {
// reset this every 16th pass
if ((cnt&0xF) == 0) pending_can_live = 0;
- /*#ifdef DEBUG
+ #ifdef DEBUG
puts("** blink ");
puth(can_rx_q.r_ptr); puts(" "); puth(can_rx_q.w_ptr); puts(" ");
puth(can_tx1_q.r_ptr); puts(" "); puth(can_tx1_q.w_ptr); puts(" ");
puth(can_tx2_q.r_ptr); puts(" "); puth(can_tx2_q.w_ptr); puts("\n");
- #endif*/
+ #endif
/*puts("voltage: "); puth(adc_get(ADCCHAN_VOLTAGE)); puts(" ");
puts("current: "); puth(adc_get(ADCCHAN_CURRENT)); puts("\n");*/
|
doc: GSG's python dependence
For config_tools use python to clear dirty files, add python dependence
while prepare development computer. | @@ -154,7 +154,7 @@ To set up the ACRN build environment on the development computer:
.. code-block:: bash
- sudo pip3 install lxml xmlschema defusedxml
+ sudo pip3 install lxml xmlschema defusedxml tqbm
#. Create a working directory:
|
github.com/jackc/pgx: enable dependencies required for v4 | @@ -75,6 +75,10 @@ ALLOW .* -> vendor/github.com/heetch/confita
ALLOW .* -> vendor/github.com/iancoleman/strcase
# PostgreSQL driver and toolkit for Go
+ALLOW .* -> vendor/github.com/jackc/pgx/v4
+ALLOW .* -> vendor/github.com/jackc/pgconn
+ALLOW .* -> vendor/github.com/jackc/pgtype
+# v3 is to be deprecated in the future
ALLOW .* -> vendor/github.com/jackc/pgx
# database/sql wrapper with a lot of helper functions
|
Fix build (issue | @@ -475,7 +475,7 @@ ImageNode *LoadSVGImage(const char *fileName, int rwidth, int rheight,
} else if(preserveAspect) {
if(abs(dim.width - rwidth) < abs(dim.height - rheight)) {
xscale = (float)rwidth / dim.width;
- height = dim.height * xscale;
+ rheight = dim.height * xscale;
} else {
xscale = (float)rheight / dim.height;
rwidth = dim.width * xscale;
|
test BUGFIX remove unused variables | @@ -322,10 +322,8 @@ test_toplevel(void **state)
"<a>3</a>"
"<b>1</b>"
"</l2>";
- struct lyd_node *tree, *node;
+ struct lyd_node *tree;
struct ly_set *set;
- int dynamic;
- const char *val_str;
tree = lyd_parse_mem(ctx, data, LYD_XML, LYD_OPT_STRICT | LYD_VALOPT_DATA_ONLY);
assert_non_null(tree);
|
test-suite: update common/funcitons for gcc8 | @@ -158,6 +158,10 @@ check_compiler_family()
myCC=gcc
myCXX=g++
myFC=gfortran
+ elif [ $LMOD_FAMILY_COMPILER == "gnu8" ];then
+ myCC=gcc
+ myCXX=g++
+ myFC=gfortran
elif [[ $LMOD_FAMILY_COMPILER =~ "llvm" ]];then
myCC=clang
myCXX=clang++
|
CI: Also try ppc64le | @@ -22,6 +22,12 @@ matrix:
sudo: required
compiler: gcc
env: TRAVIS_ARCH="arm64"
+ - arch: ppc64le
+ os: linux
+ dist: bionic
+ sudo: required
+ compiler: gcc
+ env: TRAVIS_ARCH="ppc64le"
- arch: amd64
os: osx
compiler: gcc
|
Add OP_ARYPUSH entry | @@ -2086,6 +2086,34 @@ static inline int op_arycat( mrbc_vm *vm, mrbc_value *regs )
}
+
+
+
+
+//================================================================
+/*! OP_ARYPUSH
+
+ ary_push(R[a],R[a+1]..R[a+b])
+
+ @param vm pointer of VM.
+ @param regs pointer to regs
+ @retval 0 No error.
+*/
+static inline int op_arypush( mrbc_vm *vm, mrbc_value *regs )
+{
+ FETCH_BB();
+
+ for (int i=0; i<b; i++) {
+ mrbc_array_push(®s[a], ®s[a+i+1]);
+ }
+
+
+ return 0;
+}
+
+
+
+
//================================================================
/*! OP_ARYDUP
@@ -2856,7 +2884,7 @@ int mrbc_vm_run( struct VM *vm )
case OP_ARRAY: ret = op_array (vm, regs); break;
case OP_ARRAY2: ret = op_array2 (vm, regs); break;
case OP_ARYCAT: ret = op_arycat (vm, regs); break;
- case OP_ARYPUSH: ret = op_dummy_B (vm, regs); break;
+ case OP_ARYPUSH: ret = op_arypush (vm, regs); break;
case OP_ARYDUP: ret = op_arydup (vm, regs); break;
case OP_AREF: ret = op_aref (vm, regs); break;
case OP_ASET: ret = op_aset (vm, regs); break;
|
Fix compilation.
This fixes | @@ -6812,7 +6812,7 @@ sctp_pcb_init()
TAILQ_INIT(&SCTP_BASE_INFO(callqueue));
#endif
#if defined(__Userspace__)
- mbuf_init(NULL);
+ mbuf_initialize(NULL);
atomic_init();
#if defined(INET) || defined(INET6)
recv_thread_init();
|
multiline: rule: append \n if missing | @@ -267,6 +267,7 @@ int flb_ml_rule_process(struct flb_ml_parser *ml_parser,
msgpack_object *val_pattern)
{
int ret;
+ int len;
char *buf_data = NULL;
size_t buf_size = 0;
struct mk_list *head;
@@ -330,7 +331,18 @@ int flb_ml_rule_process(struct flb_ml_parser *ml_parser,
(unsigned char *) buf_data, buf_size);
if (ret) {
/* Regex matched */
+
+ len = flb_sds_len(group->buf);
+ if (len >= 1 && group->buf[len - 1] != '\n') {
+ flb_sds_cat_safe(&group->buf, "\n", 1);
+ }
+
+ if (buf_size == 0) {
+ flb_sds_cat_safe(&group->buf, "\n", 1);
+ }
+ else {
flb_sds_cat_safe(&group->buf, buf_data, buf_size);
+ }
rule = st->rule;
break;
}
|
ps8762: add DCI mode config register
TEST=make
BRANCH=main
Tested-by: Ting Shen | * Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
- * PS8802 retimer.
+ * PS8802/PS8762 retimer.
*/
#include "usb_mux.h"
#define PS8802_EXTRA_SWING_LEVEL_P0_UP_3 0X07
#define PS8802_EXTRA_SWING_LEVEL_P0_MASK 0X07
+#define PS8802_REG_DCIRX 0x4B
+#define PS8802_AUTO_DCI_MODE_DISABLE BIT(7)
+#define PS8802_FORCE_DCI_MODE BIT(6)
+
/*
* PAGE 2 Register Definitions
*/
|
ConnectionFT601: add handle check to send functions
also return true in wait functions if handle is invalid or not used
as there is nothing to wait for | @@ -465,7 +465,7 @@ int ConnectionFT601::BeginDataReading(char *buffer, uint32_t length, int ep)
@brief Waits for asynchronous data reception
@param contextHandle handle of which context data to wait
@param timeout_ms number of miliseconds to wait
-@return 1-data received, 0-data not received
+@return true - wait finished, false - still waiting for transfer to complete
*/
bool ConnectionFT601::WaitForReading(int contextHandle, unsigned int timeout_ms)
{
@@ -489,7 +489,7 @@ bool ConnectionFT601::WaitForReading(int contextHandle, unsigned int timeout_ms)
return contexts[contextHandle].done.load() == true;
#endif
}
- return 0;
+ return true; //there is nothing to wait for (signal wait finished)
}
/**
@@ -610,11 +610,11 @@ int ConnectionFT601::BeginDataSending(const char *buffer, uint32_t length, int e
@brief Waits for asynchronous data sending
@param contextHandle handle of which context data to wait
@param timeout_ms number of miliseconds to wait
-@return 1-data received, 0-data not received
+@return true - wait finished, false - still waiting for transfer to complete
*/
bool ConnectionFT601::WaitForSending(int contextHandle, unsigned int timeout_ms)
{
- if(contextsToSend[contextHandle].used == true)
+ if(contextHandle >= 0 && contextsToSend[contextHandle].used == true)
{
#ifndef __unix__
DWORD dwRet = WaitForSingleObject(contextsToSend[contextHandle].inOvLap.hEvent, timeout_ms);
@@ -633,7 +633,7 @@ bool ConnectionFT601::WaitForSending(int contextHandle, unsigned int timeout_ms)
return contextsToSend[contextHandle].done == true;
#endif
}
- return 0;
+ return true; //there is nothing to wait for (signal wait finished)
}
/**
@@ -645,7 +645,7 @@ bool ConnectionFT601::WaitForSending(int contextHandle, unsigned int timeout_ms)
*/
int ConnectionFT601::FinishDataSending(const char *buffer, uint32_t length, int contextHandle)
{
- if(contextsToSend[contextHandle].used == true)
+ if(contextHandle >= 0 && contextsToSend[contextHandle].used == true)
{
#ifndef __unix__
ULONG ulActualBytesTransferred ;
|
Update Platform.c
Changed so that rerender is only forced if the direction button was pressed this frame. | @@ -116,6 +116,7 @@ void Update_Platform() {
player.dir.y = -1;
player.rerender = TRUE;
}
+
if (INPUT_LEFT) {
player.dir.x = -1;
if (INPUT_A) {
@@ -125,7 +126,9 @@ void Update_Platform() {
pl_vel_x -= WALK_ACC;
pl_vel_x = CLAMP(pl_vel_x, -MAX_WALK_VEL, -MIN_WALK_VEL);
}
+ if (INPUT_LEFT_PRESSED) { // update player facing direction if button pressed this frame
player.rerender = TRUE;
+ }
} else if (INPUT_RIGHT) {
player.dir.x = 1;
if (INPUT_A) {
@@ -135,7 +138,9 @@ void Update_Platform() {
pl_vel_x += WALK_ACC;
pl_vel_x = CLAMP(pl_vel_x, MIN_WALK_VEL, MAX_WALK_VEL);
}
+ if (INPUT_RIGHT_PRESSED) { // update player facing direction if button pressed this frame
player.rerender = TRUE;
+ }
} else if (grounded) {
if (pl_vel_x < 0) {
pl_vel_x += RELEASE_DEC;
|
[travis] report bail as failing test case | @@ -14,6 +14,10 @@ export class Urbit
#
@reset-listeners!
process.on \exit ~> @pty.write '\04' # send EOF to gracefully checkpoint
+ @pty.on \exit (code,signal)~>
+ | code => process.exit code
+ | signal => process.exit 128 + signal # repack exit code
+ | _ => #TODO report if unexpected?
#
note: (...args)-> console.log "\n#{'_'*40}\nnode:".blue, ...args
warn: (...args)-> console.log "\n#{'!'*40}\nnode:".red, ...args
|
crypto/aes/build.info: Fix AES assembler specs
Two mistakes were made:
1. AES_ASM for x86 was misplaced
2. sse2 isn't applicable for x86_64 code | @@ -3,15 +3,14 @@ LIBS=../../libcrypto
$AESASM=aes_core.c aes_cbc.c
IF[{- !$disabled{asm} -}]
$AESASM_x86=aes-586.s
+ $AESDEF_x86=AES_ASM
$AESASM_x86_sse2=vpaes-x86.s aesni-x86.s
- $AESDEF_x86_sse2=AES_ASM VPAES_ASM
+ $AESDEF_x86_sse2=VPAES_ASM
$AESASM_x86_64=\
- aes-x86_64.s bsaes-x86_64.s \
+ aes-x86_64.s vpaes-x86_64.s bsaes-x86_64.s aesni-x86_64.s \
aesni-sha1-x86_64.s aesni-sha256-x86_64.s aesni-mb-x86_64.s
- $AESDEF_x86_64=AES_ASM BSAES_ASM
- $AESASM_x86_64_sse2=vpaes-x86_64.s aesni-x86_64.s
- $AESDEF_x86_64_sse2=VPAES_ASM
+ $AESDEF_x86_64=AES_ASM VPAES_ASM BSAES_ASM
$AESASM_ia64=aes_core.c aes_cbc.c aes-ia64.s
$AESDEF_ia64=AES_ASM
|
fix relaxation bug with incorrect lengths | @@ -284,17 +284,18 @@ static void update_accel_params(const aa_float *x, const aa_float *f, AaWork *a,
/* f = (1-relaxation) * \sum_i a_i x_i + relaxation * \sum_i a_i f_i */
static void relax(aa_float *f, AaWork *a, aa_int len) {
TIME_TIC
- /* x_work = x - S * work */
+ /* x_work = x initially */
blas_int bdim = (blas_int)(a->dim), one = 1, blen = (blas_int)len;
aa_float onef = 1.0, neg_onef = -1.0;
aa_float one_m_relaxation = 1. - a->relaxation;
+ /* x_work = x - S * work */
BLAS(gemv)
("NoTrans", &bdim, &blen, &neg_onef, a->S, &bdim, a->work, &one, &onef,
a->x_work, &one);
/* f = relaxation * f */
- BLAS(scal)(&blen, &a->relaxation, f, &one);
+ BLAS(scal)(&bdim, &a->relaxation, f, &one);
/* f += (1 - relaxation) * x_work */
- BLAS(axpy)(&blen, &one_m_relaxation, a->x_work, &one, f, &one);
+ BLAS(axpy)(&bdim, &one_m_relaxation, a->x_work, &one, f, &one);
TIME_TOC
}
|
Minor tweak in PeliasOnlineGeocodingService - do not send empty search query to server | @@ -39,6 +39,10 @@ namespace carto {
throw NullArgumentException("Null request");
}
+ if (request->getQuery().empty()) {
+ return std::vector<std::shared_ptr<GeocodingResult> >();
+ }
+
std::string baseURL;
{
std::lock_guard<std::mutex> lock(_mutex);
|
Move normal map max partition boost to config init | @@ -618,6 +618,11 @@ astcenc_error astcenc_config_init(
if (flags & ASTCENC_FLG_MAP_NORMAL)
{
+ // Normal map encoding uses L+A blocks, so allow one more partitioning
+ // than normal. We need need fewer bits for endpoints, so more likely
+ // to be able to use more partitions than an RGB/RGBA block
+ config.tune_partition_count_limit = astc::min(config.tune_partition_count_limit + 1u, 4u);
+
config.cw_g_weight = 0.0f;
config.cw_b_weight = 0.0f;
config.tune_2_partition_early_out_limit_factor *= 1.5f;
|
azure pipeline: giving up w/ attempt to add centos. | @@ -7,8 +7,6 @@ jobs:
imageName: 'ubuntu-16.04'
mac:
imageName: 'macos-10.14'
- centos:
- containerImage: 'OpenLogic:CentOS:7.5:latest'
# windows_2017:
# imageName: 'vs2017-win2016'
# windows_2015:
@@ -17,7 +15,6 @@ jobs:
# imageName: 'ubuntu-16.04'
pool:
vmImage: $(imageName)
- container: OpenLogic:CentOS:7.5:latest
steps:
- task: ShellScript@2
displayName: Install dependencies
|
metadata: int -> long, remove obsolete parts | @@ -75,7 +75,7 @@ version/minor = 6
#
[order]
-type = int
+type = long
status = implemented
usedby/plugin = hosts augeas toml
usedby/api = elektraKeyCmpOrder
@@ -355,7 +355,7 @@ description= "collect the remaining command line arguments.
must be specified on a key in the 'spec' namespace"
[args/index]
-type= int
+type= long
status= implemented
usedby/plugin= gopts
usedby/api= elektraGetOpts kdbopts.h
@@ -1175,48 +1175,6 @@ description = "Who should see this configuration setting?
- internal: settings which should not be seen by anyone. (e.g. intermediate steps for calculations)"
-#
-# Old stuff inherited from filesys plugin
-#
-
-[uid]
-status= deprecated
-type= time
-usedby/api= keyNew kdbextension.h
-description= The owner of the key.
-
-[gid]
-status= deprecated
-type= time
-usedby/api= keyNew kdbextension.h
-description= The group of the key.
-
-[mode]
-status= deprecated
-type= int
-usedby/api= keyNew kdbextension.h
-description= The access mode of the key.
-
-[atime]
-type= time
-status= deprecated
-usedby/api= keyNew kdbextension.h
-description= The time when the key was last accessed.
-
-[mtime]
-type= time
-status= deprecated
-usedby/api= keyNew kdbextension.h
-description= The time when the value of a key were last modified.
-
-[ctime]
-type= time
-status= deprecated
-usedby/api= keyNew kdbextension.h
-description= The time when the metadata of a key were last modified.
-
-
-
|
Update README.md
Added `ulab` at the end of the `git clone https://github.com/v923z/micropython-ulab.git` to be consistent with the `make` command. | @@ -20,7 +20,7 @@ git clone https://github.com/micropython/micropython.git
on the command line. This will create a new repository with the name `micropython`. Staying there, clone the `ulab` repository with
```
-git clone https://github.com/v923z/micropython-ulab.git
+git clone https://github.com/v923z/micropython-ulab.git ulab
```
Then you have to include `ulab` in the compilation process by editing `mpconfigport.h` of the directory of the port for which you want to compile, so, still on the command line, navigate to `micropython/ports/unix`, or `micropython/ports/stm32`, or whichever port is your favourite, and edit the `mpconfigport.h` file there. All you have to do is add a single line at the end:
|
Changed the motor implementation on PicoExplorer to used breaking mode | @@ -35,7 +35,7 @@ namespace pimoroni {
// setup motor pins
pwm_config motor_pwm_cfg = pwm_get_default_config();
- pwm_config_set_wrap(&motor_pwm_cfg, 255);
+ pwm_config_set_wrap(&motor_pwm_cfg, 5500);
pwm_init(pwm_gpio_to_slice_num(MOTOR1N), &motor_pwm_cfg, true);
gpio_set_function(MOTOR1N, GPIO_FUNC_PWM);
@@ -76,20 +76,20 @@ namespace pimoroni {
switch(action) {
case FORWARD: {
- pwm_set_gpio_level(p, speed * 255);
- pwm_set_gpio_level(n, 0);
+ pwm_set_gpio_level(n, (1 - speed) * 5500);
+ pwm_set_gpio_level(p, 5500);
break;
}
case REVERSE: {
- pwm_set_gpio_level(p, 0);
- pwm_set_gpio_level(n, speed * 255);
+ pwm_set_gpio_level(n, 5500);
+ pwm_set_gpio_level(p, (1 - speed) * 5500);
break;
}
case STOP: {
- pwm_set_gpio_level(p, 0);
- pwm_set_gpio_level(n, 0);
+ pwm_set_gpio_level(p, 5500);
+ pwm_set_gpio_level(n, 5500);
break;
}
}
|
misc: fix coverity warning in ila plugin
Remove non-null check for a pointer which cannot be null to avoid dead
code warning.
Type: fix | @@ -365,7 +365,7 @@ ila_ila2sir (vlib_main_t * vm,
{
ila_ila2sir_trace_t *tr =
vlib_add_trace (vm, node, p0, sizeof (*tr));
- tr->ila_index = ie0 ? (ie0 - ilm->entries) : ~0;
+ tr->ila_index = ie0 - ilm->entries;
tr->initial_dst = ip60->dst_address;
tr->adj_index = vnet_buffer (p0)->ip.adj_index[VLIB_TX];
}
|
Code space optimization (192 bytes) | #define MAX_NETWORK_TICKER_LEN 8
typedef struct network_info_s {
- const char name[NETWORK_STRING_MAX_SIZE];
- const char ticker[MAX_NETWORK_TICKER_LEN];
+ const char *name;
+ const char *ticker;
uint64_t chain_id;
} network_info_t;
|
netdriver: cleanups, comments | @@ -97,7 +97,10 @@ int netDriver_sockConn(uint16_t portno) {
saddr.sin_family = AF_INET;
saddr.sin_port = htons(portno);
saddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
- if (connect(myfd, (const struct sockaddr *)&saddr, sizeof(saddr)) == -1) {
+ while (connect(myfd, (const struct sockaddr *)&saddr, sizeof(saddr)) == -1) {
+ if (errno == EINTR) {
+ continue;
+ }
PLOG_W("connect('127.0.0.1:%" PRIu16 ")", portno);
return -1;
}
@@ -105,6 +108,7 @@ int netDriver_sockConn(uint16_t portno) {
return myfd;
}
+/* Decide which TCP port should be used for sending inputs */
__attribute__((weak)) uint16_t HonggfuzzNetDriverPort(int *argc UNUSED, char ***argv UNUSED) {
const char *port_str = getenv(HF_TCP_PORT_ENV);
if (port_str == NULL) {
@@ -113,6 +117,15 @@ __attribute__((weak)) uint16_t HonggfuzzNetDriverPort(int *argc UNUSED, char ***
return (uint16_t)atoi(port_str);
}
+/*
+ * Split: ./httpdserver -max_input=10 -- --config /etc/httpd.confg
+ *
+ * so:
+ * This code (honggfuzz, libfuzzer) will only see "-max_input=10",
+ * while the httpdserver will only see: "--config /etc/httpd.confg"
+ *
+ * Can be overriden by the code to provide custom arguments, or envvars
+ */
__attribute__((weak)) int HonggfuzzNetDriverArgsForServer(
int argc, char **argv, int *server_argc, char ***server_argv) {
for (int i = 0; i < argc; i++) {
@@ -163,7 +176,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len) {
if (sock == -1) {
LOG_F("Couldn't connect to the server TCP port");
}
- if (send(sock, buf, len, MSG_NOSIGNAL) < 0) {
+ while (send(sock, buf, len, MSG_NOSIGNAL) == -1) {
+ if (errno == EINTR) {
+ continue;
+ }
PLOG_F("send(sock=%d, len=%zu) failed", sock, len);
}
/*
@@ -188,6 +204,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len) {
return 0;
}
+/* Use -Wl,--wrap=main to redirect invocation of the whole program from main() to __wrap_main() */
int __wrap_main(int argc, char **argv) {
netDriver_initNs();
@@ -202,6 +219,6 @@ int __wrap_main(int argc, char **argv) {
return f2(&argc, &argv, LLVMFuzzerTestOneInput);
}
- LOG_F("Couldn't find not Honggfuzz nor LibFuzzer entry points");
+ LOG_F("Couldn't find Honggfuzz nor LibFuzzer entry points");
return 0;
}
|
Add missing cone header. | @@ -37,6 +37,9 @@ scs_int SCS(proj_dual_cone)(scs_float *x, const ScsCone *k, ScsConeWork *c,
scs_int iter);
void SCS(finish_cone)(ScsConeWork *c);
+void SCS(set_rho_y_vec)(const ScsCone *k, scs_float scale, scs_float *rho_y_vec,
+ scs_int m);
+
#ifdef __cplusplus
}
#endif
|
rsu: fix bug in error path | @@ -255,7 +255,7 @@ def main():
sys.stderr.write('Acceptable commands:\n')
for dev in compatible:
sys.stderr.write('>{} {} {}\n'.format(prog,
- args.type,
+ args.which,
dev.pci_node.bdf))
raise SystemExit(os.EX_USAGE)
|
Support for info command with args | @@ -148,6 +148,17 @@ redis_arg1(struct msg *r)
return false;
}
+static bool
+redis_arg_upto1(struct msg *r)
+{
+ switch (r->type) {
+ case MSG_REQ_REDIS_INFO:
+ return true;
+ default:
+ break;
+ }
+ return false;
+}
/*
* Return true, if the redis command accepts exactly 2 arguments, otherwise
* return false
@@ -638,9 +649,8 @@ redis_parse_req(struct msg *r, const struct string *hash_tag)
if (str4icmp(m, 'i', 'n', 'f', 'o')) {
r->type = MSG_REQ_REDIS_INFO;
r->msg_routing = ROUTING_LOCAL_NODE_ONLY;
- p = p + 1;
r->is_read = 1;
- goto done;
+ break;
}
if (str4icmp(m, 'l', 'l', 'e', 'n')) {
@@ -1273,10 +1283,12 @@ redis_parse_req(struct msg *r, const struct string *hash_tag)
case SW_REQ_TYPE_LF:
switch (ch) {
case LF:
- if (redis_argz(r)) {
+ if (redis_argz(r) && (r->rnarg == 0)) {
goto done;
- } else if (r->narg == 1) {
- goto error;
+ } else if (redis_arg_upto1(r) && r->rnarg == 0) {
+ goto done;
+ } else if (redis_arg_upto1(r) && r->rnarg == 1) {
+ state = SW_ARG1_LEN;
} else if (redis_argeval(r)) {
state = SW_ARG1_LEN;
} else {
@@ -1508,7 +1520,7 @@ redis_parse_req(struct msg *r, const struct string *hash_tag)
case SW_ARG1_LF:
switch (ch) {
case LF:
- if (redis_arg1(r)) {
+ if (redis_arg_upto1(r) || redis_arg1(r)) {
if (r->rnarg != 0) {
goto error;
}
|
fix issue dynamic unloading of DLL with statically linked mimalloc | @@ -485,6 +485,10 @@ static void mi_process_done(void) {
if (process_done) return;
process_done = true;
+ #if defined(_WIN32) && !defined(MI_SHARED_LIB)
+ FlsSetValue(mi_fls_key, NULL); // don't call main-thread callback
+ FlsFree(mi_fls_key); // call thread-done on all threads to prevent dangling callback pointer if statically linked with a DLL; Issue #208
+ #endif
#ifndef NDEBUG
mi_collect(true);
#endif
|
[org] Update debian instructions. | @@ -87,9 +87,10 @@ it and use apt-get to resolve the dependencies:
Now building the packages should succeed. We use "gbp" tools,
i.e. "git buildpackage" to manage this:
- : root@c565375d37b8:~/siconos-deb# gbp buildpackage --git-pristine-tar \
- : --git-pristine-tar-commit --git-upstream-tag='%(version)s' \
- : --git-debian-branch=debian/sid
+ : root@c565375d37b8:~/siconos-deb# gbp buildpackage --git-export-dir=../build
+
+Note that gbp buildpackage has some options in debian/gbp.conf that
+avoid needing to give the options by the command line.
Relevant instructions to using gbp for this project can be found at:
@@ -115,10 +116,11 @@ Check if anything needs to be changed in the debian/*.install files,
e.g. if there are new tools, and debian/control if there are new
dependencies.
-Finally, update the changelog using "gbp dch" and re-build the package
-with "gbp buildpackage" as instructed above.
+Build the package to create a new "pristine tar" for this version:
- : root@c565375d37b8:~/siconos-deb# gbp dch --debian-branch=debian/sid --snapshot --auto debian/
+ : root@c565375d37b8:~/siconos-deb# gbp buildpackage \
+ : --git-export-dir=../build \
+ : --git-pristine-tar-commit
You can add the argument,
@@ -126,9 +128,21 @@ You can add the argument,
to gdb buildpackage if you are working on the package and haven't
committed changes yet, otherwise it will complain about changes to the
-git repository. When done, update the changelog to "release", commit,
-and build the final package:
+git repository. However, it is good practice to make commits as you
+go instead of using this option.
- : gbp dch --release --auto --git-debian-branch=debian/sid
+Finally, update the changelog using "gbp dch" and re-build the package
+with "gbp buildpackage" as instructed above.
+
+ : root@c565375d37b8:~/siconos-deb# gbp dch --snapshot --auto debian/
+
+When you are ready to release the package, update the changelog using
+"--release" instead of "--snapshot", commit, and build the final
+package:
+
+ : gbp dch --release --auto
: git commit -m"Release 4.1.0" debian/changelog
- : gbp buildpackage --git-upstream-tag='%(version)s' --git-debian-branch=debian/sid
+ : gbp buildpackage --git-export-dir=../build
+
+Make sure the name and email addresses are correct and correspond with
+your GPG key.
|
Update TaskDispatcher for unsigned target time | @@ -30,7 +30,7 @@ namespace PAL_NS_BEGIN {
{
this->TypeName = TYPENAME(call);
this->Type = Task::Call;
- this->TargetTime = -1;
+ this->TargetTime = 0;
}
TaskCall(TCall& call, int64_t targetTime) :
|
BugID: add max fragment config in httpc for itls | @@ -257,6 +257,14 @@ int32_t httpc_wrapper_ssl_connect(httpc_handle_t httpc,
http_log("%s, mbedtls_ssl_conf_auth_token err -0x%x", __func__, -ret);
goto exit;
}
+#if defined(MBEDTLS_SSL_MAX_FRAGMENT_LENGTH)
+ ret = mbedtls_ssl_conf_max_frag_len(&http_session->https.ssl.conf, MBEDTLS_SSL_MAX_FRAG_LEN_1024);
+ if (ret != 0) {
+ http_log("%s, mbedtls_ssl_conf_max_frag_len err -0x%x", __func__, ret );
+ goto exit;
+ }
+#endif /* MBEDTLS_SSL_MAX_FRAGMENT_LENGTH */
+
#else
mbedtls_x509_crt_init(&http_session->https.ssl.ca_cert);
if (http_session->https.ssl.ca_cert_c != NULL) {
|
tools/idf_tools.py: Changed default AppData seeder to seeder pip | @@ -1516,7 +1516,7 @@ def action_install_python_env(args): # type: ignore
subprocess.check_call([sys.executable, '-m', 'pip', 'install', '--user', 'virtualenv'],
stdout=sys.stdout, stderr=sys.stderr)
- subprocess.check_call([sys.executable, '-m', 'virtualenv', idf_python_env_path],
+ subprocess.check_call([sys.executable, '-m', 'virtualenv', '--seeder', 'pip', idf_python_env_path],
stdout=sys.stdout, stderr=sys.stderr)
run_args = [virtualenv_python, '-m', 'pip', 'install', '--no-warn-script-location']
requirements_txt = os.path.join(global_idf_path, 'requirements.txt')
|
board/nautilus/board.h: Format with clang-format
BRANCH=none
TEST=none | @@ -211,12 +211,7 @@ enum sensor_id {
SENSOR_COUNT,
};
-enum adc_channel {
- ADC_BASE_DET,
- ADC_VBUS,
- ADC_AMON_BMON,
- ADC_CH_COUNT
-};
+enum adc_channel { ADC_BASE_DET, ADC_VBUS, ADC_AMON_BMON, ADC_CH_COUNT };
/* TODO(crosbug.com/p/61098): Verify the numbers below. */
/*
|
AppVeyor: reduce build notification emails | @@ -105,4 +105,4 @@ notifications:
- [email protected]
subject: 'Build {{status}}' # optional
message: "{{message}}, {{commitId}}, ..." # optional
- on_build_status_changed: true
+ on_build_success: false
|
Add SceNpDrmLicense struct | * \usage{psp2/npdrm.h,SceNpDrm_stub}
*/
-
#ifndef _PSP2_NPDRM_H_
#define _PSP2_NPDRM_H_
extern "C" {
#endif
+typedef struct SceNpDrmLicense { // size is 0x200
+ SceInt16 version; // -1, 1
+ SceInt16 version_flags; // 0, 1
+ SceInt16 license_type; // 1
+ SceInt16 license_flags; // 0x400:non-check ecdsa
+ SceUInt64 account_id;
+ char content_id[0x30];
+ char key_table[0x10];
+ char key1[0x10];
+ SceInt64 start_time;
+ SceInt64 expiration_time;
+ char ecdsa_signature[0x28];
+ SceInt64 flags;
+ char key2[0x10];
+ char unk_0xB0[0x10];
+ char open_psid[0x10];
+ char unk_0xD0[0x10];
+ char cmd56_handshake_part[0x14];
+ int debug_upgradable;
+ int unk_0xF8;
+ int sku_flag;
+ char rsa_signature[0x100];
+} SceNpDrmLicense;
+
/**
* Get rif name
*
|
BT Keyboard Focus On Android Version | @@ -908,21 +908,6 @@ static void initMenuMode()
initMenu(studio.menu, studio.tic, studio.fs);
}
-static void enableScreenTextInput()
-{
- if(SDL_HasScreenKeyboardSupport())
- {
- static const EditorMode TextModes[] = {TIC_CONSOLE_MODE, TIC_CODE_MODE};
-
- for(s32 i = 0; i < COUNT_OF(TextModes); i++)
- if(TextModes[i] == studio.mode)
- {
- SDL_StartTextInput();
- break;
- }
- }
-}
-
void runGameFromSurf()
{
studio.tic->api.reset(studio.tic);
@@ -959,7 +944,6 @@ void setStudioMode(EditorMode mode)
switch (prev)
{
case TIC_START_MODE:
- SDL_StartTextInput();
case TIC_CONSOLE_MODE:
case TIC_RUN_MODE:
case TIC_KEYMAP_MODE:
@@ -981,15 +965,6 @@ void setStudioMode(EditorMode mode)
}
studio.mode = mode;
-
- if(prev == TIC_RUN_MODE)
- enableScreenTextInput();
- else if ((prev == TIC_MENU_MODE || prev == TIC_SURF_MODE) && studio.mode != TIC_RUN_MODE)
- enableScreenTextInput();
-
- if(SDL_HasScreenKeyboardSupport() &&
- (studio.mode == TIC_RUN_MODE || studio.mode == TIC_SURF_MODE || studio.mode == TIC_MENU_MODE))
- SDL_StopTextInput();
}
}
@@ -1947,7 +1922,9 @@ SDL_Event* pollEvent()
}
break;
case SDL_FINGERUP:
- enableScreenTextInput();
+ if(SDL_HasScreenKeyboardSupport() && !SDL_IsTextInputActive())
+ if(studio.mode == TIC_CONSOLE_MODE || studio.mode == TIC_CODE_MODE)
+ SDL_StartTextInput();
break;
case SDL_QUIT:
exitStudio();
@@ -2646,7 +2623,6 @@ static void onFSInitialized(FileSystem* fs)
if(studio.console->skipStart)
{
- SDL_StartTextInput();
setStudioMode(TIC_CONSOLE_MODE);
}
|
Fix another typo in get_old_if. | @@ -653,7 +653,7 @@ get_old_if(const char *ifname)
if(num_old_if >= max_old_if) {
int n = max_old_if == 0 ? 4 : 2 * max_old_if;
struct old_if *new =
- realloc(old_if, max_old_if * sizeof(struct old_if));
+ realloc(old_if, n * sizeof(struct old_if));
if(new != NULL) {
old_if = new;
max_old_if = n;
|
A version with No HLS pragma, and support 2048 vertexes | @@ -26,7 +26,7 @@ typedef ap_uint<VEX_WIDTH> Q_t;
// WRITE RESULTS IN MMIO REGS
void write_results_in_BFS_regs(action_output_reg *Action_Output, action_input_reg *Action_Input,
- ap_uint<32>ReturnCode)
+ ap_uint<32>ReturnCode, ap_uint<VEX_WIDTH> current_vex, ap_uint<32> current_pos)
{
// Always check that ALL Outputs are tied to a value or HLS will generate a
// Action_Output_i and a Action_Output_o registers and address to read results
@@ -45,8 +45,11 @@ void write_results_in_BFS_regs(action_output_reg *Action_Output, action_input_re
Action_Output->Data.input_vex_num = Action_Input->Data.input_vex_num;
Action_Output->Data.output_address = Action_Input->Data.output_address;
Action_Output->Data.output_type = Action_Input->Data.output_type;
- Action_Output->Data.output_size = Action_Input->Data.output_size;
Action_Output->Data.output_flags = Action_Input->Data.output_flags;
+
+ Action_Output->Data.status_pos = current_pos;
+ Action_Output->Data.status_vex = current_vex;
+
Action_Output->Data.unused = 0;
}
@@ -190,14 +193,17 @@ void action_wrapper(ap_uint<MEMDW> *din_gmem, ap_uint<MEMDW> *dout_gmem,
buf_out[0] = 0;
vnode_place = 0;
commit_address += BPERDW;
+ write_results_in_BFS_regs(Action_Output, Action_Input, ReturnCode, root, commit_address(31,0) );
}
}
else // unknown action
ReturnCode = RET_CODE_FAILURE;
- if(rc!=0) ReturnCode = RET_CODE_FAILURE;
- write_results_in_BFS_regs(Action_Output, Action_Input, ReturnCode);
+ if(rc!=0)
+ ReturnCode = RET_CODE_FAILURE;
+
+ write_results_in_BFS_regs(Action_Output, Action_Input, ReturnCode, root, commit_address(31,0));
return;
}
|
Export only public methods of FrameSeq. | @@ -243,15 +243,15 @@ private:
m_binormal;
};
-class TINYSPLINECXX_API FrameSeq {
+class FrameSeq {
public:
- FrameSeq(const FrameSeq &other);
- FrameSeq &operator=(const FrameSeq &other);
+ TINYSPLINECXX_API FrameSeq(const FrameSeq &other);
+ TINYSPLINECXX_API FrameSeq &operator=(const FrameSeq &other);
- size_t size() const;
- Frame at(size_t idx) const;
+ size_t TINYSPLINECXX_API size() const;
+ Frame TINYSPLINECXX_API at(size_t idx) const;
- std::string toString() const;
+ std::string TINYSPLINECXX_API toString() const;
private:
std::vector<Frame> m_frames;
|
Removing silent check before computing parallel loops. Print Remapping matrix only if silent option is not set. | @@ -753,7 +753,7 @@ __isl_give isl_union_map *pluto_parallel_schedule_with_remapping(isl_union_set *
}
}
- if (options->parallel && !options->silent) {
+ if (options->parallel) {
*ploops = pluto_get_parallel_loops(prog, nploops);
printf("[pluto_mark_parallel] %d parallel loops\n", *nploops);
pluto_loops_print(*ploops, *nploops);
@@ -770,11 +770,14 @@ __isl_give isl_union_map *pluto_parallel_schedule_with_remapping(isl_union_set *
*remap = remapping;
for(i = 0; i < prog->nstmts; i++) {
- printf("Statement %d Id- %d\n",i,prog->stmts[i]->id);
remapping->stmt_inv_matrices[i] = pluto_stmt_get_remapping(prog->stmts[i],
&remapping->stmt_divs[i]);
+ if(!options->silent)
+ {
+ printf("Statement %d Id- %d\n",i,prog->stmts[i]->id);
pluto_matrix_print(stdout, remapping->stmt_inv_matrices[i]);
}
+ }
/* Construct isl_union_map for pluto schedules */
isl_union_map *schedules = isl_union_map_empty(isl_space_copy(space));
|
Use task pool for message dispatch again | @@ -171,13 +171,16 @@ namespace MiningCore.Stratum
}
}
- protected virtual async void OnReceive(StratumClient client, PooledArraySegment<byte> data)
+ protected virtual void OnReceive(StratumClient client, PooledArraySegment<byte> data)
+ {
+ // get off of LibUV event-loop-thread immediately
+ Task.Run(async () =>
+ {
+ using (data)
{
JsonRpcRequest request = null;
try
- {
- using (data)
{
// boot pre-connected clients
if (banManager?.IsBanned(client.RemoteEndpoint.Address) == true)
@@ -201,7 +204,6 @@ namespace MiningCore.Stratum
else
logger.Trace(() => $"[{LogCat}] [{client.ConnectionId}] Unable to deserialize request");
}
- }
catch (JsonReaderException jsonEx)
{
@@ -221,6 +223,8 @@ namespace MiningCore.Stratum
logger.Error(ex, () => $"[{LogCat}] [{client.ConnectionId}] Error processing request {request.Method} [{request.Id}]");
}
}
+ });
+ }
protected virtual void OnReceiveError(StratumClient client, Exception ex)
{
|
Fix inter cost in bipred
The cost of coding MV ref indices and MV direction was added to bitcost
but not inter cost. Fixed by adding the extra bits to inter as well. | @@ -1579,14 +1579,16 @@ static void search_pu_inter(encoder_state_t * const state,
cost += calc_mvd(state, merge_cand[i].mv[0][0], merge_cand[i].mv[0][1], 0, mv_cand, merge_cand, 0, ref_idx, &bitcost[0]);
cost += calc_mvd(state, merge_cand[i].mv[1][0], merge_cand[i].mv[1][1], 0, mv_cand, merge_cand, 0, ref_idx, &bitcost[1]);
- if (cost < *inter_cost) {
-
- cur_cu->inter.mv_dir = 3;
- uint8_t mv_ref_coded[2] = {
+ const uint8_t mv_ref_coded[2] = {
state->frame->refmap[merge_cand[i].ref[0]].idx,
state->frame->refmap[merge_cand[j].ref[1]].idx
};
+ const int extra_bits = mv_ref_coded[0] + mv_ref_coded[1] + 2 /* mv dir cost */;
+ cost += state->lambda_sqrt * extra_bits + 0.5;
+
+ if (cost < *inter_cost) {
+ cur_cu->inter.mv_dir = 3;
cur_cu->inter.mv_ref[0] = merge_cand[i].ref[0];
cur_cu->inter.mv_ref[1] = merge_cand[j].ref[1];
@@ -1634,8 +1636,9 @@ static void search_pu_inter(encoder_state_t * const state,
}
CU_SET_MV_CAND(cur_cu, reflist, cu_mv_cand);
}
+
*inter_cost = cost;
- *inter_bitcost = bitcost[0] + bitcost[1] + cur_cu->inter.mv_dir - 1 + mv_ref_coded[0] + mv_ref_coded[1];
+ *inter_bitcost = bitcost[0] + bitcost[1] + extra_bits;
}
}
}
|
fs/poll: support poll for regular files and block devices
cherry-picked from nuttx
poll: fix poll for regular files and block devices. Open Group documentation tells that poll (and select) support regular files and that 'Regular files shall always poll TRUE for reading and writing'. | @@ -156,15 +156,28 @@ static int poll_fdsetup(int fd, FAR struct pollfd *fds, bool setup)
return ERROR;
}
+ inode = filep->f_inode;
+
+ if (inode) {
/* Is a driver registered? Does it support the poll method?
* If not, return -ENOSYS
*/
- inode = filep->f_inode;
- if (inode && inode->u.i_ops && inode->u.i_ops->poll) {
+ if (INODE_IS_DRIVER(inode) && inode->u.i_ops && inode->u.i_ops->poll) {
/* Yes, then setup the poll */
ret = (int)inode->u.i_ops->poll(filep, fds, setup);
+ } else if (INODE_IS_MOUNTPT(inode) || INODE_IS_BLOCK(inode)) {
+ /* Regular files shall always poll TRUE for reading and writing */
+
+ if (setup) {
+ fds->revents |= (fds->events & (POLLIN | POLLOUT));
+ if (fds->revents != 0) {
+ sem_post(fds->sem);
+ }
+ }
+ ret = OK;
+ }
}
return ret;
|
delete spurious S's | @@ -30,11 +30,11 @@ AppScope 1.2.0 introduces substantial new functionality:
- To attach to or detach from a process running in a container, it is no longer necessary to run AppScope within the container. You can just scope the container processes from the host. Related issues: [#1061](https://github.com/criblio/appscope/issues/1061),
[#1119](https://github.com/criblio/appscope/issues/1119).
-- Support for executables built with Go 1.19. (This release also removes support for executables built with Go 1.8.) Related issues: [#1073](https://github.com/criblio/appscope/issues/1073).
+- Support for executables built with Go 1.19. (This release also removes support for executables built with Go 1.8.) Related issue: [#1073](https://github.com/criblio/appscope/issues/1073).
- Integration with Cribl Edge and Cribl Stream.
-This release also improves the `scope ps` command, which now lists all scoped processes rather than listing all processes into which the library was loaded. Related issues: [#1097](https://github.com/criblio/appscope/issues/1097).
+This release also improves the `scope ps` command, which now lists all scoped processes rather than listing all processes into which the library was loaded. Related issue: [#1097](https://github.com/criblio/appscope/issues/1097).
## AppScope 1.1.3
|
python: fix for windows 2004 build issue #no_auto_pr | @@ -3,7 +3,7 @@ pyftdi==0.13.*
pylibftdi
pyserial
requests==2.20.*
-numpy~=1.18 ; python_version >= '3.0'
+numpy~=1.18 ; python_version == '3.5'
+numpy==1.19.3 ; python_version >= '3.6'
pybase64 ; python_version >= '3.0'
python-rapidjson==0.9.1 ; python_version >= '3.0'
-
|
Badger2040: list example now upgrades from old format | @@ -30,13 +30,37 @@ LIST_HEIGHT = HEIGHT - LIST_START - LIST_PADDING - ARROW_HEIGHT
# Default list items - change the list items by editing checklist.txt
list_items = ["Badger", "Badger", "Badger", "Badger", "Badger", "Mushroom", "Mushroom", "Snake"]
+save_checklist = False
+
try:
with open("checklist.txt", "r") as f:
- # This avoids picking up the " X" that used to be on the end of checked items,
- # although it doesn't preserve the state.
- list_items = [item.strip() for item in f.read().replace(" X\n", "\n").strip().split("\n")]
+ raw_list_items = f.read()
+
+ if raw_list_items.find(" X\n") != -1:
+ # Have old style checklist, preserve state and note we should resave the list to remove the Xs
+ list_items = []
+ state = {
+ "current_item": 0,
+ "checked": []
+ }
+ for item in raw_list_items.strip().split("\n"):
+ if item.endswith(" X"):
+ state["checked"].append(True)
+ item = item[:-2]
+ else:
+ state["checked"].append(False)
+ list_items.append(item)
+ state["items_hash"] = binascii.crc32("\n".join(list_items))
+
+ badger_os.state_save("list", state)
+ save_checklist = True
+ else:
+ list_items = [item.strip() for item in raw_list_items.strip().split("\n")]
except OSError:
+ save_checklist = True
+
+if save_checklist:
with open("checklist.txt", "w") as f:
for item in list_items:
f.write(item + "\n")
|
Added python lock for Py_CallObject | @@ -181,8 +181,13 @@ function_return function_py_interface_invoke(function func, function_impl impl,
}
}
+ PyGILState_STATE gstate;
+ gstate = PyGILState_Ensure();
+
result = PyObject_CallObject(py_func->func, tuple_args);
+ PyGILState_Release(gstate);
+
Py_DECREF(tuple_args);
if (result != NULL && ret_type != NULL)
@@ -524,7 +529,7 @@ loader_handle py_loader_impl_load_from_file(loader_impl impl, const loader_namin
Py_DECREF(current_path);
module = PyImport_Import(py_module_name);
-
+ PyErr_Print();
module_dict = PyModule_GetDict(module);
PyDict_Merge(main_dict, module_dict, 0);
|
Make WAN Perf Previous Results Failure Resilient | @@ -325,7 +325,14 @@ Set-NetAdapterLso duo? -IPv4Enabled $false -IPv6Enabled $false -NoRestart
$RunResults = [Results]::new($PlatformName)
+$RemoteResults = ""
+if ($PreviousResults -ne "") {
+ try {
$RemoteResults = $PreviousResults.$PlatformName
+ } catch {
+ Write-Debug "Failed to get $PlatformName from previous results"
+ }
+}
# Loop over all the network emulation configurations.
foreach ($ThisRttMs in $RttMs) {
@@ -424,6 +431,7 @@ foreach ($ThisReorderDelayDeltaMs in $ReorderDelayDeltaMs) {
$RunResult = [TestResult]::new($ThisRttMs, $ThisBottleneckMbps, $ThisBottleneckBufferPackets, $ThisRandomLossDenominator, $ThisRandomReorderDenominator, $ThisReorderDelayDeltaMs, $UseTcp, $ThisDurationMs, $ThisPacing, $RateKbps, $Results);
$RunResults.Runs.Add($RunResult)
Write-Host $Row
+ if ($RemoteResults -ne "") {
$RemoteResult = Find-MatchingTest -TestResult $RunResult -RemoteResults $RemoteResults
if ($null -ne $RemoteResult) {
$MedianLastResult = $RemoteResult.RateKbps
@@ -433,6 +441,11 @@ foreach ($ThisReorderDelayDeltaMs in $ReorderDelayDeltaMs) {
$PercentDiffStr = "+$PercentDiffStr"
}
Write-Output "Median: $RateKbps, Remote: $MedianLastResult, ($PercentDiffStr%)"
+ } else {
+ Write-Output "Median: $RateKbps"
+ }
+ } else {
+ Write-Output "Median: $RateKbps"
}
}}}
|
Fix AXI4 IOBinder for multi-channel systems | @@ -185,9 +185,9 @@ object AddIOCells {
}
def axi4(io: Seq[AXI4Bundle], node: AXI4SlaveNode): Seq[(AXI4Bundle, AXI4EdgeParameters, Seq[IOCell])] = {
- io.zip(node.in).map{ case (mem_axi4, (_, edge)) => {
- val (port, ios) = IOCell.generateIOFromSignal(mem_axi4, Some("iocell_mem_axi4"))
- port.suggestName("mem_axi4")
+ io.zip(node.in).zipWithIndex.map{ case ((mem_axi4, (_, edge)), i) => {
+ val (port, ios) = IOCell.generateIOFromSignal(mem_axi4, Some(s"iocell_mem_axi4_${i}"))
+ port.suggestName(s"mem_axi4_${i}")
(port, edge, ios)
}}
}
|
tools/ci/docker/linux/Dockerfile: Intall libtinfo5 in final image
fix the following error:
/tools/clang-arm-none-eabi/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory | @@ -248,6 +248,7 @@ RUN apt-get update -qq && DEBIAN_FRONTEND="noninteractive" apt-get install -y -q
libpulse-dev libpulse-dev:i386 \
libpython2.7 \
libncurses5-dev \
+ libtinfo5 \
libx11-dev libx11-dev:i386 \
libxext-dev libxext-dev:i386 \
linux-libc-dev:i386 \
|
[libc] Add O_BINARY definition | * Change Logs:
* Date Author Notes
* 2018-02-07 Bernard Add O_DIRECTORY definition in NEWLIB mode.
+ * 2018-02-09 Bernard Add O_BINARY definition
*/
#ifndef LIBC_FCNTL_H__
#define O_DIRECTORY 0x200000
#endif
+#ifndef O_BINARY
+#ifdef _O_BINARY
+#define O_BINARY _O_BINARY
+#else
+#define O_BINARY 0
+#endif
+#endif
+
#else
#define O_RDONLY 00
#define O_WRONLY 01
|
Fix 'redefs' typo in test suite | (assert (= 1 (staticdef2-inc)) "after redefinition with :redef false")
(def dynamicdef2 0)
(defn dynamicdef2-inc [] (+ 1 dynamicdef2))
-(assert (= 1 (dynamicdef2-inc)) "before redefinition with dyn :redefs")
+(assert (= 1 (dynamicdef2-inc)) "before redefinition with dyn :redef")
(def dynamicdef2 1)
-(assert (= 2 (dynamicdef2-inc)) "after redefinition with dyn :redefs")
+(assert (= 2 (dynamicdef2-inc)) "after redefinition with dyn :redef")
(setdyn :redef nil)
# Denormal tables and structs
|
doc: fix wrong path in TESTING | @@ -54,7 +54,7 @@ You have some options to avoid running them as root:
```
Then change the permissions:
```
- chown -R `whoami` `kdb sget system/info/elektra/constants/cmake/CMAKE_INSTALL_PREFIX .`/`kdb get system/info/constants/cmake/KDB_DB_SPEC .`
+ chown -R `whoami` `kdb sget system/info/elektra/constants/cmake/CMAKE_INSTALL_PREFIX .`/`kdb sget system/info/elektra/constants/cmake/KDB_DB_SPEC .`
chown -R `whoami` `kdb sget system/info/elektra/constants/cmake/KDB_DB_SYSTEM .`
```
After that all test cases should run successfully as described above.
|
notifications: fix notification keying
Fixes urbit/landscape#947 | @@ -62,8 +62,8 @@ export function getNotificationKey(
): string {
const base = time.toString();
if ('graph' in notification.index) {
- const { graph, index } = notification.index.graph;
- return `${base}-${graph}-${index}`;
+ const { graph, index, description } = notification.index.graph;
+ return `${base}-${graph}-${index}-${description}`;
} else if ('group' in notification.index) {
const { group } = notification.index.group;
return `${base}-${group}`;
|
spgram: fixing fprintf argument ordering for gnuplot output | /*
- * Copyright (c) 2008 - 2018 Joseph Gaeddert
+ * Copyright (c) 2007 - 2018 Joseph Gaeddert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -446,7 +446,7 @@ int SPGRAM(_export_gnuplot)(SPGRAM() _q,
fprintf(fid,"set xlabel 'Frequency [%cHz]'\n", unit);
fprintf(fid,"set xrange [%f:%f]\n", g*(_q->frequency-0.5*_q->sample_rate), g*(_q->frequency+0.5*_q->sample_rate));
fprintf(fid,"plot '-' u ($1*%f+%f):2 w %s lt 1 lw 2 lc rgb '#004080'\n",
- plot_with, g*(_q->sample_rate < 0 ? 1 : _q->sample_rate), g*_q->frequency);
+ g*(_q->sample_rate < 0 ? 1 : _q->sample_rate), g*_q->frequency, plot_with);
}
// export spectrum data
|
use ll in chunk size computation | @@ -626,7 +626,7 @@ MultiPartInputFile::Data::chunkOffsetReconstruction(OPENEXR_IMF_INTERNAL_NAMESPA
OPENEXR_IMF_INTERNAL_NAMESPACE::Xdr::read <OPENEXR_IMF_INTERNAL_NAMESPACE::StreamIO> (is, packed_sample);
//add 40 byte header to packed sizes (tile coordinates, packed sizes, unpacked size)
- size_of_chunk=packed_offset+packed_sample + 40l;
+ size_of_chunk=packed_offset+packed_sample + 40ll;
}
else
{
@@ -634,7 +634,7 @@ MultiPartInputFile::Data::chunkOffsetReconstruction(OPENEXR_IMF_INTERNAL_NAMESPA
// regular image has 20 bytes of header, 4 byte chunksize;
int chunksize;
OPENEXR_IMF_INTERNAL_NAMESPACE::Xdr::read <OPENEXR_IMF_INTERNAL_NAMESPACE::StreamIO> (is, chunksize);
- size_of_chunk=static_cast<Int64>(chunksize) + 20l;
+ size_of_chunk=static_cast<Int64>(chunksize) + 20ll;
}
}
else
@@ -665,13 +665,13 @@ MultiPartInputFile::Data::chunkOffsetReconstruction(OPENEXR_IMF_INTERNAL_NAMESPA
OPENEXR_IMF_INTERNAL_NAMESPACE::Xdr::read <OPENEXR_IMF_INTERNAL_NAMESPACE::StreamIO> (is, packed_sample);
- size_of_chunk=packed_offset+packed_sample + 28l;
+ size_of_chunk=packed_offset+packed_sample + 28ll;
}
else
{
int chunksize;
OPENEXR_IMF_INTERNAL_NAMESPACE::Xdr::read <OPENEXR_IMF_INTERNAL_NAMESPACE::StreamIO> (is, chunksize);
- size_of_chunk=static_cast<Int64>(chunksize) + 8l;
+ size_of_chunk=static_cast<Int64>(chunksize) + 8ll;
}
}
|
zephyr: Fix an invalid url in file CMakeLists.txt
Replace with | @@ -33,7 +33,7 @@ endmacro()
# this with a device tree overlay file.
#
# See the Zephyr documentation for more information on DT:
-# https://www.zephyrproject.org/doc/dts/device_tree.html
+# http://docs.zephyrproject.org/devices/dts/device_tree.html
set(DTC_OVERLAY_FILE "${CMAKE_CURRENT_SOURCE_DIR}/dts.overlay")
# Standard Zephyr application boilerplate.
|
Change MD size for tls13 keys | @@ -510,15 +510,15 @@ typedef struct mbedtls_ssl_key_set mbedtls_ssl_key_set;
typedef struct
{
- unsigned char binder_key [ MBEDTLS_MD_MAX_SIZE ];
- unsigned char client_early_traffic_secret [ MBEDTLS_MD_MAX_SIZE ];
- unsigned char early_exporter_master_secret[ MBEDTLS_MD_MAX_SIZE ];
+ unsigned char binder_key [ MBEDTLS_TLS1_3_MD_MAX_SIZE ];
+ unsigned char client_early_traffic_secret [ MBEDTLS_TLS1_3_MD_MAX_SIZE ];
+ unsigned char early_exporter_master_secret[ MBEDTLS_TLS1_3_MD_MAX_SIZE ];
} mbedtls_ssl_tls1_3_early_secrets;
typedef struct
{
- unsigned char client_handshake_traffic_secret[ MBEDTLS_MD_MAX_SIZE ];
- unsigned char server_handshake_traffic_secret[ MBEDTLS_MD_MAX_SIZE ];
+ unsigned char client_handshake_traffic_secret[ MBEDTLS_TLS1_3_MD_MAX_SIZE ];
+ unsigned char server_handshake_traffic_secret[ MBEDTLS_TLS1_3_MD_MAX_SIZE ];
} mbedtls_ssl_tls1_3_handshake_secrets;
typedef struct
|
[Componment] libc: Modify skip timespec define condication. Change IAR version from 8.11.2 to 8.10.1 | @@ -20,7 +20,10 @@ struct timeval {
};
#endif /* _TIMEVAL_DEFINED */
-#if defined ( __ICCARM__ ) && (__VER__ >= 8011002)
+/*
+ * Skip define timespec for IAR version over 8.10.1 where __VER__ is 8010001.
+ */
+#if defined ( __ICCARM__ ) && (__VER__ >= 8010001)
#define _TIMESPEC_DEFINED
#endif
|
ActionTypes.md: Add MLE network accelerator action types | @@ -18,6 +18,8 @@ IBM | 10.14.10.08 | 10.14.10.08 | HLS Hello World
IBM | 10.14.10.09 | 10.14.10.09 | HLS Latency Evaluation
IBM | 10.14.10.0A | 10.14.10.0A | HLS WED/STATUS Sharing and MatrixMultiply
IBM | 10.14.10.0B | 10.14.FF.FF | Reserved for IBM Actions
+MLE | 22.DB.00.01 | 22.DB.00.01 | HDL 10G Ethernet TCP/UDP/IP Accelerator Demo
+MLE | 22.DB.00.02 | 22.DB.00.02 | HDL 25G Ethernet TCP/UDP/IP Accelerator Demo
Reserved | FF.FF.00.00 | FF.FF.FF.FF | Reserved
### How to apply for a new Action Type
|
Clang emits a format warning in 64-bit droid. | @@ -65,7 +65,7 @@ void EventDecoderListener::OnDebugEvent(DebugEvent &evt)
{
auto PrintEvent = [](const char *lbl, const DebugEvent &e)
{
- printf("%20s: seq=%llu, ts=%llu, type=0x%08x, p1=%zu, p2=%zu\n", lbl, e.seq, e.ts, e.type, e.param1, e.param2);
+ printf("%20s: seq=%llu, ts=%llu, type=0x%08x, p1=%zu, p2=%zu\n", lbl, static_cast<unsigned long long>(e.seq), static_cast<unsigned long long>(e.ts), e.type, e.param1, e.param2);
};
// lock for the duration of the print, so that we don't mess up the prints
|
thread_pool: removed debug message | @@ -144,9 +144,7 @@ int flb_tp_thread_start_id(struct flb_tp *tp, int id)
struct mk_list *head;
struct flb_tp_thread *th = NULL;
- printf("TRANSVERSING : %p\n", &tp->list_threads);
mk_list_foreach(head, &tp->list_threads) {
- printf("TRANSVERSING ENTRY : %d\n", i);
if (i == id) {
th = mk_list_entry(head, struct flb_tp_thread, _head);
break;
|
grunt: Set source current limit to enable 3A output
Call ppc_set_vbus_source_current_limit to enable 3A output.
BRANCH=none
TEST=connect PD sink and see 5V 3A on both ports | @@ -125,8 +125,10 @@ void pd_power_supply_reset(int port)
if (prev_en)
pd_set_vbus_discharge(port, 1);
+#ifdef CONFIG_USB_PD_MAX_SINGLE_SOURCE_CURRENT
/* Give back the current quota we are no longer using */
charge_manager_source_port(port, 0);
+#endif /* defined(CONFIG_USB_PD_MAX_SINGLE_SOURCE_CURRENT) */
/* Notify host of power info change. */
pd_send_host_event(PD_EVENT_POWER_CHANGE);
@@ -141,9 +143,6 @@ int pd_set_power_supply_ready(int port)
if (rv)
return rv;
- /* Ensure we advertise the proper available current quota */
- charge_manager_source_port(port, 1);
-
pd_set_vbus_discharge(port, 0);
/* Provide Vbus. */
@@ -151,6 +150,11 @@ int pd_set_power_supply_ready(int port)
if (rv)
return rv;
+#ifdef CONFIG_USB_PD_MAX_SINGLE_SOURCE_CURRENT
+ /* Ensure we advertise the proper available current quota */
+ charge_manager_source_port(port, 1);
+#endif /* defined(CONFIG_USB_PD_MAX_SINGLE_SOURCE_CURRENT) */
+
/* Notify host of power info change. */
pd_send_host_event(PD_EVENT_POWER_CHANGE);
@@ -164,7 +168,7 @@ void pd_transition_voltage(int idx)
void typec_set_source_current_limit(int port, int rp)
{
- /* TODO(ecgh): call ppc_set_vbus_source_current_limit */
+ ppc_set_vbus_source_current_limit(port, rp);
}
int pd_snk_is_vbus_provided(int port)
|
SOVERSION bump to version 5.5.18 | @@ -53,7 +53,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 5)
set(SYSREPO_MINOR_SOVERSION 5)
-set(SYSREPO_MICRO_SOVERSION 17)
+set(SYSREPO_MICRO_SOVERSION 18)
set(SYSREPO_SOVERSION_FULL ${SYSREPO_MAJOR_SOVERSION}.${SYSREPO_MINOR_SOVERSION}.${SYSREPO_MICRO_SOVERSION})
set(SYSREPO_SOVERSION ${SYSREPO_MAJOR_SOVERSION})
|
py/compile: Reorder star param to funcs in consistent way.
Instead of swapping star param with a random non-star param, move it to the
end of param list. This allows to reproduce this behavior in other compilers,
e.g. pycopy-lib's compiler. | @@ -3453,10 +3453,18 @@ STATIC void scope_compute_things(scope_t *scope) {
id_info_t *id = &scope->id_info[i];
if (id->flags & ID_FLAG_IS_STAR_PARAM) {
if (id_param != NULL) {
+ #if 0
// swap star param with last param
id_info_t temp = *id_param;
*id_param = *id;
*id = temp;
+ #else
+ // move star param to the end, for compatibility with
+ // pycopy-lib compiler
+ id_info_t temp = *id;
+ memmove(id, id + 1, (id_param - id) * sizeof(*id));
+ *id_param = temp;
+ #endif
}
break;
} else if (id_param == NULL && id->flags == ID_FLAG_IS_PARAM) {
|
Fixed matching of empty version. | @@ -416,6 +416,10 @@ nxt_strvers_match(u_char *version, u_char *prefix, size_t length)
{
u_char next, last;
+ if (length == 0) {
+ return 1;
+ }
+
if (nxt_strncmp(version, prefix, length) == 0) {
next = version[length];
|
release: add update-info-status to release script | @@ -42,10 +42,14 @@ run_updates() {
# regenerate dot of plugins
$SRC_DIR/scripts/dev/draw-all-plugins 2> $BASE_DIR/$VERSION/draw-all-plugins.error > $BASE_DIR/$VERSION/draw-all-plugins
- # Add generated dot of plugins to git and commit
git add $SRC_DIR/doc/images/plugins.*
git commit -a -m "Regenerate dot of plugins for release ${VERSION}"
+ # update info status
+ cd $SRC_DIR
+ $SCRIPTS_DIR/dev/update-infos-status --auto 2> $BASE_DIR/$VERSION/update-infos-status.error > $BASE_DIR/$VERSION/update-infos-status
+ git commit -a -m "Update plugin info status for release ${VERSION}"
+
# run link checker
cd $BUILD_DIR
$SRC_DIR/scripts/link-checker external-links.txt 2> $BASE_DIR/$VERSION/link-checker.error > $BASE_DIR/$VERSION/link-checker
@@ -170,7 +174,7 @@ build_package() {
}
memcheck() {
- # With ENABLE_DEBUG="OFF" testkdb_allplugins yields a memlea on buster and bionic,
+ # With ENABLE_DEBUG="OFF" testkdb_allplugins detects a memleak on buster and bionic,
# therefore the tests are disabled for theses distribitions.
# discussed in https://github.com/ElektraInitiative/libelektra/pull/3530
if [ "$VERSION_CODENAME" = "buster" ] || [ "$VERSION_CODENAME" = "bionic" ]; then
|
Respect the non-interactive flag for gpaddmirrors
Previously when running gpaddmirrors the -a flag was being ignored when the cluster was non
standard. | @@ -44,7 +44,8 @@ class GpMirrorBuildCalculator:
The class uses internal state for tracking so cannot be reused after calling getSpreadMirrors or getGroupMirrors
"""
- def __init__(self, gpArray, mirrorPortOffset, mirrorDataDirs):
+ def __init__(self, gpArray, mirrorDataDirs, options):
+ self.__options = options
self.__gpArray = gpArray
self.__primaries = [seg for seg in gpArray.getDbList() if seg.isSegmentPrimary(False)]
self.__primariesByHost = GpArray.getSegmentsByHostName(self.__primaries)
@@ -63,7 +64,7 @@ class GpMirrorBuildCalculator:
self.__primariesUpdatedToHaveMirrorsByHost[hostName] = 0
segments.sort(comparePorts)
- self.__mirrorPortOffset = mirrorPortOffset
+ self.__mirrorPortOffset = options.mirrorOffset
self.__mirrorDataDirs = mirrorDataDirs
standard, message = self.__gpArray.isStandardArray()
@@ -72,7 +73,7 @@ class GpMirrorBuildCalculator:
logger.warn(message)
logger.warn('gpaddmirrors will not be able to symmetrically distribute the new mirrors.')
logger.warn('It is recommended that you specify your own input file with appropriate values.')
- if not ask_yesno('', "Are you sure you want to continue with this gpaddmirrors session?", 'N'):
+ if self.__options.interactive and not ask_yesno('', "Are you sure you want to continue with this gpaddmirrors session?", 'N'):
logger.info("User Aborted. Exiting...")
sys.exit(0)
self.__isStandard = False
@@ -297,7 +298,7 @@ class GpAddMirrorsProgram:
segsByContentId = GpArray.getSegmentsByContentId(primaries)
# note: passed port offset in this call should not matter
- calc = GpMirrorBuildCalculator(gpArray, self.__options.mirrorOffset, [])
+ calc = GpMirrorBuildCalculator(gpArray, [], self.__options)
for row in fileData.getRows():
fixedValues = row.getFixedValuesMap()
@@ -399,7 +400,7 @@ class GpAddMirrorsProgram:
maxPrimariesPerHost = len(hostSegments)
dataDirs = self.__getDataDirectoriesForMirrors(maxPrimariesPerHost, gpArray)
- calc = GpMirrorBuildCalculator(gpArray, self.__options.mirrorOffset, dataDirs)
+ calc = GpMirrorBuildCalculator(gpArray, dataDirs, self.__options)
if self.__options.spreadMirroring:
toBuild = calc.getSpreadMirrors()
else:
|
[TFileHandle] Ignore ENOTSUP for fsync on Darwin | @@ -383,7 +383,12 @@ bool TFileHandle::Flush() noexcept {
// EROFS, EINVAL
// fd is bound to a special file which does not support synchronization.
// (from man fsync)
- return ret == 0 || errno == EROFS || errno == EINVAL;
+ return ret == 0 || errno == EROFS || errno == EINVAL
+#if defined(_darwin_)
+ // ENOTSUP fd does not refer to a vnode
+ || errno == ENOTSUP
+#endif
+ ;
#else
#error unsupported platform
#endif
|
tests/offload: printing the allocation size | @@ -169,7 +169,7 @@ int main(int argc, char **argv)
// obtain the node id
get_node_ids();
- PRINTF("Allocating memory for data processing\n");
+ PRINTF("Allocating memory for data processing of %zu MB\n", DATA_SIZE >> 20);
struct capref mem;
int32_t nodes_data[] = {
@@ -206,7 +206,7 @@ int main(int argc, char **argv)
hline
- PRINTF("Allocating memory for message passing\n");
+ PRINTF("Allocating memory for message passing of %zu kb\n", MSG_FRAME_SIZE >> 10);
struct capref msgframemem;
int32_t nodes_msg[] = {
@@ -228,7 +228,7 @@ int main(int argc, char **argv)
hline
- PRINTF("Allocating memory on the co-processor\n");
+ PRINTF("Allocating memory on the co-processor of %zu MB\n", DATA_SIZE >> 20);
struct capref offloadmem;
#if 0
|
build: fix clang-format-diff[.py] detection
Fix clang-format-diff autodetection error in case of non-standard
clang-format-diff path. Also allow finding clang-format-diff.py in
non-standard location.
Type: improvement | @@ -60,9 +60,12 @@ fi
if command -v clang-format-diff${SUFFIX} &> /dev/null;
then
CLANG_FORMAT_DIFF=clang-format-diff${SUFFIX}
+elif command -v clang-format-diff.py &> /dev/null;
+then
+ CLANG_FORMAT_DIFF=clang-format-diff.py
elif command -v clang-format-diff &> /dev/null;
then
- CLANG_FORMAT=clang-format-diff
+ CLANG_FORMAT_DIFF=clang-format-diff
elif [ ! -f $CLANG_FORMAT_DIFF ] ;
then
echo "*******************************************************************"
|
Docs: Update the chip support matrix for v5.0 | @@ -6,15 +6,16 @@ ESP-IDF is the development framework for Espressif SoCs supported on Windows, Li
# ESP-IDF Release and SoC Compatibility
-The following table shows ESP-IDF support of Espressif SoCs where ![alt text][preview] and ![alt text][supported] denote preview status and support, respectively. In preview status the build is not yet enabled and some crucial parts could be missing (like documentation, datasheet). Please use an ESP-IDF release where the desired SoC is already supported.
+The following table shows ESP-IDF support of Espressif SoCs where ![alt text][preview] and ![alt text][supported] denote preview status and support, respectively. The preview support is usually limited in time and intended for beta versions of chips. Please use an ESP-IDF release where the desired SoC is already supported.
-|Chip | v3.3 | v4.0 | v4.1 | v4.2 | v4.3 | v4.4 | |
+|Chip | v3.3 | v4.1 | v4.2 | v4.3 | v4.4 | v5.0 | |
|:----------- |:---------------------: | :---------------------:| :---------------------:| :---------------------:| :---------------------:| :---------------------:|:---------------------------------------------------------- |
|ESP32 | ![alt text][supported] | ![alt text][supported] | ![alt text][supported] | ![alt text][supported] | ![alt text][supported] | ![alt text][supported] | |
-|ESP32-S2 | | | | ![alt text][supported] | ![alt text][supported] | ![alt text][supported] | |
-|ESP32-C3 | | | | | ![alt text][supported] | ![alt text][supported] | |
-|ESP32-S3 | | | | | ![alt text][preview] | ![alt text][supported] | [Announcement](https://www.espressif.com/en/news/ESP32_S3) |
-|ESP32-H2 | | | | | | ![alt text][preview] | [Announcement](https://www.espressif.com/en/news/ESP32_H2) |
+|ESP32-S2 | | | ![alt text][supported] | ![alt text][supported] | ![alt text][supported] | ![alt text][supported] | |
+|ESP32-C3 | | | | ![alt text][supported] | ![alt text][supported] | ![alt text][supported] | |
+|ESP32-S3 | | | | ![alt text][preview] | ![alt text][supported] | ![alt text][supported] | [Announcement](https://www.espressif.com/en/news/ESP32_S3) |
+|ESP32-H2 | | | | | ![alt text][preview] | ![alt text][preview] | [Announcement](https://www.espressif.com/en/news/ESP32_H2) |
+|ESP32-C2 | | | | | | ![alt text][preview] | |
[supported]: https://img.shields.io/badge/-supported-green "supported"
[preview]: https://img.shields.io/badge/-preview-orange "preview"
|
Fix for C++17 latest compiler update | @@ -161,7 +161,7 @@ namespace ARIASDK_NS_BEGIN
/// http - optional IHttpClient override instance
/// taskDispatcher - optional ITaskDispatcher override instance
/// </summary>
- typedef struct
+ typedef struct capi_client_struct
{
ILogManager* logmanager = nullptr;
ILogConfiguration config;
|
jni: mark as memleak again | @@ -52,8 +52,7 @@ if (ADDTESTING_PHASE)
check_binding_was_added ("jna" BINDING_WAS_ADDED)
if (BUILD_TESTING AND BINDING_WAS_ADDED)
- # add_plugintest (jni MEMLEAK)
- add_plugintest (jni)
+ add_plugintest (jni MEMLEAK)
include_directories (${CMAKE_CURRENT_BINARY_DIR})
# Generate header file
|
limit reads to 1M
In case the origin sends data fast, it's possible that we read tens of
megabytes at once, which hurts latency without improving throughput in a
noticeable way. This PR limits the reads done per event loop to 1M. | @@ -117,7 +117,7 @@ static void link_to_statechanged(struct st_h2o_evloop_socket_t *sock)
static const char *on_read_core(int fd, h2o_buffer_t **input)
{
- int read_any = 0;
+ ssize_t read_so_far = 0;
while (1) {
ssize_t rret;
@@ -134,14 +134,17 @@ static const char *on_read_core(int fd, h2o_buffer_t **input)
else
return h2o_socket_error_io;
} else if (rret == 0) {
- if (!read_any)
+ if (read_so_far == 0)
return h2o_socket_error_closed; /* TODO notify close */
break;
}
(*input)->size += rret;
if (buf.len != rret)
break;
- read_any = 1;
+ read_so_far += rret;
+ if (read_so_far >= (1024 * 1024))
+ break;
+
}
return NULL;
}
|
chip/stm32/usart_info_command.c: Format with clang-format
BRANCH=none
TEST=none | @@ -39,7 +39,5 @@ static int command_usart_info(int argc, char **argv)
return EC_SUCCESS;
}
-DECLARE_CONSOLE_COMMAND(usart_info,
- command_usart_info,
- NULL,
+DECLARE_CONSOLE_COMMAND(usart_info, command_usart_info, NULL,
"Display USART info");
|
clay: grab tmp desk jamfile correctly | ~| [%tmp desk]
?~ tmp=(~(get by dir.ank.dom) ~.tmp) !!
?~ new=(~(get by dir.u.tmp) desk) !!
- ?~ fil.u.new !!
- =* fil u.fil.u.new
+ ?~ jam=(~(get by dir.u.new) ~.jam) !!
+ ?~ fil.u.jam !!
+ =* fil u.fil.u.jam
?> =(%jam p.q.fil)
;;(@ q.q.fil)
--
|
[CI] Cache Python dependencies | @@ -23,13 +23,14 @@ jobs:
with:
# Requires Python >= 3.9 for str.removesuffix()
python-version: '3.9'
+ # https://github.com/actions/setup-python#caching-packages-dependencies
+ cache: 'pip'
+ cache-dependency-path: 'python-dependencies.txt'
+ - run: pip install -r python-dependencies.txt
- # Runs a set of commands using the runners shell
- name: Build axle toolchain
shell: bash
run: |
- set -x
- pip3 install -r python-dependencies.txt
python3 scripts/install_dependencies.py
python3 scripts/build_os_toolchain.py
echo "Toolchain built successfully"
@@ -53,12 +54,10 @@ jobs:
with:
# Requires Python >= 3.9 for str.removesuffix()
python-version: '3.9'
-
- - name: Install dependencies
- shell: bash
- run: |
- set -x
- pip3 install -r python-dependencies.txt
+ # https://github.com/actions/setup-python#caching-packages-dependencies
+ cache: 'pip'
+ cache-dependency-path: 'python-dependencies.txt'
+ - run: pip install -r python-dependencies.txt
- uses: actions/download-artifact@v2
with:
|
stm32/boards/PYBD_SF2: Disable GCC 11 warnings for array bounds.
With GCC 11 there is now a warning about array bounds of OTP-mac, due to
the OTP being a literal address. | @@ -64,7 +64,15 @@ void board_sleep(int value) {
void mp_hal_get_mac(int idx, uint8_t buf[6]) {
// Check if OTP region has a valid MAC address, and use it if it does
if (OTP->series == 0x00d1 && OTP->mac[0] == 'H' && OTP->mac[1] == 'J' && OTP->mac[2] == '0') {
+ #if __GNUC__ >= 11
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Warray-bounds"
+ #pragma GCC diagnostic ignored "-Wstringop-overread"
+ #endif
memcpy(buf, OTP->mac, 6);
+ #if __GNUC__ >= 11
+ #pragma GCC diagnostic pop
+ #endif
buf[5] += idx;
return;
}
|
NetKVM: MTU Report: Fix mtu offset | @@ -533,7 +533,7 @@ InitializeMaxMTUConfig(PPARANDIS_ADAPTER pContext)
{
virtio_get_config(
&pContext->IODevice,
- 0,
+ ETH_ALEN + 2 * sizeof(USHORT),
&pContext->MaxPacketSize.nMaxDataSize,
sizeof(USHORT));
}
|
HV: initialize IOMMU before PCI device discovery
In later patches we use information from DMAR tables to guide discovery
and initialization of PCI devices. | @@ -224,12 +224,12 @@ void init_pcpu_post(uint16_t pcpu_id)
timer_init();
setup_notification();
setup_posted_intr_notification();
- init_pci_pdev_list();
if (init_iommu() != 0) {
panic("failed to initialize iommu!");
}
+ init_pci_pdev_list(); /* init_iommu must come before this */
ptdev_init();
if (init_sgx() != 0) {
|
Release: Remove duplicate section header | @@ -243,8 +243,6 @@ Thanks to Michael Zronek and Vanessa Kos.
- The OPMPHM has a new test case *(Kurt Micheli)*
- Do not execute `fcrypt` and `crypto` unit tests if the `gpg` binary is not available. *(Peter Nirschl)*
-## Compatibility
-
[#1887]: https://github.com/ElektraInitiative/libelektra/issues/1887
## Build
|
Removed stats port, stats addr and stats interval parameters from README.md as they are no longer accepted. | @@ -41,8 +41,7 @@ To build Dynomite in _debug mode_:
## Help
Usage: dynomite [-?hVdDt] [-v verbosity level] [-o output file]
- [-c conf file] [-s stats port] [-a stats addr]
- [-i stats interval] [-p pid file]
+ [-c conf file] [-p pid file]
Options:
-h, --help : this help
|
[chainmaker][#1140]query err message dispaly | @@ -575,19 +575,20 @@ BOAT_RESULT BoatHlchainmakerContractQuery(BoatHlchainmakerTx *tx_ptr, char* meth
query_response->gas_used = 0;
query_response->code = tx_response->code;
- memset(query_response->message, 0, BOAT_RESPONSE_MESSAGE_MAX_LEN);
- memset(query_response->contract_result, 0, BOAT_RESPONSE_CONTRACT_RESULT_MAX_LEN);
- if (query_response->code == BOAT_SUCCESS)
- {
if (strlen(tx_response->message) > BOAT_RESPONSE_MESSAGE_MAX_LEN)
{
BoatLog(BOAT_LOG_CRITICAL, "tx_response->message is too long");
boat_throw(BOAT_ERROR_COMMON_OUT_OF_MEMORY, BoatHlchainmakerContractQuery_exception);
}
+ memset(query_response->message, 0, BOAT_RESPONSE_MESSAGE_MAX_LEN);
memcpy(query_response->message, tx_response->message, strlen(tx_response->message));
+ memset(query_response->contract_result, 0, BOAT_RESPONSE_CONTRACT_RESULT_MAX_LEN);
+
+ if (query_response->code == BOAT_SUCCESS)
+ {
if (tx_response->contract_result->code == BOAT_SUCCESS)
{
if (tx_response->contract_result->result.len != 0)
@@ -602,6 +603,10 @@ BOAT_RESULT BoatHlchainmakerContractQuery(BoatHlchainmakerTx *tx_ptr, char* meth
query_response->gas_used = tx_response->contract_result->gas_used;
}
}
+ else
+ {
+ memcpy(query_response->contract_result, "NULL", strlen("NULL"));
+ }
/* boat catch handle */
boat_catch(BoatHlchainmakerContractQuery_exception)
|
Fixed macro values for ADP5061.
Missing macro value ADP5061_VTRM_4V22
Macro values 4.14V to 4.22V were off. | @@ -312,10 +312,11 @@ int adp5061_set_regs(struct adp5061_dev *dev, uint8_t addr,
#define ADP5061_VTRM_4V08 0x1D
#define ADP5061_VTRM_4V10 0x1E
#define ADP5061_VTRM_4V12 0x1F
-#define ADP5061_VTRM_4V14 0x21
-#define ADP5061_VTRM_4V16 0x22
-#define ADP5061_VTRM_4V18 0x23
-#define ADP5061_VTRM_4V20 0x24
+#define ADP5061_VTRM_4V14 0x20
+#define ADP5061_VTRM_4V16 0x21
+#define ADP5061_VTRM_4V18 0x22
+#define ADP5061_VTRM_4V20 0x23
+#define ADP5061_VTRM_4V22 0x24
#define ADP5061_VTRM_4V24 0x25
#define ADP5061_VTRM_4V26 0x26
#define ADP5061_VTRM_4V28 0x27
|
GLKRVP: Correct GPIO assignment for PCH_WAKE_L
BRANCH=glkrvp
TEST=In S3, toggling PCH_WAKE_L wakes system to S0.
Commit-Ready: Vijay P Hiremath
Tested-by: Vijay P Hiremath | @@ -28,7 +28,7 @@ GPIO_INT(EC_VOLDN_BTN_ODL, PIN(3, 7), GPIO_INT_BOTH | GPIO_PULL_UP, button_inter
GPIO(PCH_SMI_L, PIN(C, 6), GPIO_ODR_HIGH) /* EC_SMI_ODL */
GPIO(PCH_SCI_L, PIN(7, 6), GPIO_ODR_HIGH) /* EC_SCI_ODL */
GPIO(PCH_PWRBTN_L, PIN(7, 5), GPIO_ODR_HIGH) /* EC_PCH_PWR_BTN_ODL */
-GPIO(PCH_WAKE_L, PIN(7, 0), GPIO_ODR_HIGH) /* EC_PCH_WAKE_ODL */
+GPIO(PCH_WAKE_L, PIN(C, 1), GPIO_ODR_HIGH) /* EC_PCH_WAKE_ODL */
GPIO(PCH_SYS_PWROK, PIN(3, 5), GPIO_OUT_LOW) /* EC_PCH_PWROK */
GPIO(ENABLE_BACKLIGHT, PIN(9, 7), GPIO_ODR_HIGH) /* EC_BL_EN_OD */
GPIO(ENTERING_RW, PIN(A, 7), GPIO_OUTPUT) /* EC_ENTERING_RW */
@@ -75,6 +75,7 @@ GPIO(NC_60, PIN(6, 0), GPIO_INPUT)
GPIO(NC_61, PIN(6, 1), GPIO_INPUT)
GPIO(NC_67, PIN(6, 7), GPIO_INPUT)
+GPIO(NC_70, PIN(7, 0), GPIO_INPUT)
GPIO(NC_71, PIN(7, 1), GPIO_INPUT)
GPIO(NC_73, PIN(7, 3), GPIO_INPUT)
GPIO(NC_74, PIN(7, 4), GPIO_INPUT)
@@ -87,7 +88,6 @@ GPIO(NC_84, PIN(8, 4), GPIO_INPUT)
GPIO(NC_B1, PIN(B, 1), GPIO_INPUT)
GPIO(NC_C0, PIN(C, 0), GPIO_INPUT)
-GPIO(NC_C1, PIN(C, 1), GPIO_INPUT)
GPIO(NC_C2, PIN(C, 2), GPIO_INPUT)
GPIO(NC_C3, PIN(C, 3), GPIO_INPUT)
GPIO(NC_C4, PIN(C, 4), GPIO_INPUT)
|
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.