This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float32_t pSrc[2048]; | |
float32_t pDstFreq[1024]; | |
float32_t pDstPhase[1024]; | |
void MainCode(void *pvParameters) | |
{ | |
uint16_t i; | |
for(i = 0;i < 1024;i++){ | |
// 直流分量 1 + 50Hz且初始相位60度. | |
pSrc[i*2] = 1 + arm_cos_f32((2 * 3.1415926f * 50 * i) / 1024 + (3.1415926f * 60/180)); | |
pSrc[i*2 + 1] = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import random | |
import qbittorrentapi | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.chrome.options import Options | |
ids = list() | |
servers = ['89.47.160.92', '89.40.10.157', '37.187.1.230', '37.59.36.21', '198.100.145.102', '198.27.64.97', | |
'5.196.69.47', '5.196.88.219', '37.187.112.38', '5.135.152.13'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% ******************************************************************************************************************** | |
% ******************************************************************************************************************** | |
close all | |
clear all | |
%删除所有已经打开的串口,这条很重要,防止之前运行没有关闭串口 | |
delete(instrfindall); | |
%打开串口COM1,波特率115200,8位数据位,1位停止位,无奇偶校验,无流控制 | |
s = serialport('COM4', 115200); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "mt29f2g01abagdwb.h" | |
QSPI_HandleTypeDef QSPIHandle; | |
static uint8_t QSPI_ResetMemory(void); | |
static uint8_t QSPI_WriteEnable(void); | |
static uint8_t QSPI_AutoPollingMemReady(void); | |
static uint8_t QSPI_GetStatusRegister(void); | |
uint8_t BSP_QSPI_Init(void) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import uuid | |
import json | |
import requests | |
# 测速点ID,可以自己覆盖,默认选系统最优. | |
server_id = json.loads(requests.get('https://cli.speedtest.net/api/cli/config').text)['servers'][0]['id'] | |
# 下载速度(Mbps) | |
download_speed = 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Payments; | |
class Payjs { | |
public function __construct($config) | |
{ | |
$this->config = $config; | |
} | |
public function form() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user daemon | |
pidfile /var/tmp/sniproxy.pid | |
error_log { | |
syslog daemon | |
priority notice | |
} | |
resolver { | |
nameserver 8.8.8.8 | |
nameserver 8.8.4.4 # local dns should be better | |
mode ipv6_first |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stm32l4xx_ll_i2c.h" | |
#include "stm32l4xx_ll_crs.h" | |
#include "stm32l4xx_ll_rcc.h" | |
#include "stm32l4xx_ll_bus.h" | |
#include "stm32l4xx_ll_system.h" | |
#include "stm32l4xx_ll_exti.h" | |
#include "stm32l4xx_ll_cortex.h" | |
#include "stm32l4xx_ll_utils.h" | |
#include "stm32l4xx_ll_pwr.h" | |
#include "stm32l4xx_ll_dma.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "board.h" | |
#include "mem_tests.h" | |
/***************************************************************************** | |
* Public types/enumerations/variables | |
****************************************************************************/ | |
static volatile uint8_t channelTC, dmaChannelNum; | |
uint32_t DMAbuffer[255]; | |
uint16_t dataADC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************************* | |
* | |
* Copyright (C) 2009-2011 Broadcom Corporation | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |