寄存器名称 | 偏移地址 | R/W属性 | 功能描述 |
---|---|---|---|
RTC_REG_CTL | 0x0000 | R/W | 控制寄存器 |
RTC_REG_INIT | 0x0004 | WO | 初始化触发寄存器 |
RTC_REG_IRQ_EN | 0x0008 | R/W | 中断使能寄存器 |
RTC_REG_IRQ_STA | 0x000C | R/W1C | 中断状态寄存器 |
RTC_REG_TIME0 | 0x0020 | R/W | 时间设置寄存器0(低8位) |
RTC_REG_TIME1 | 0x0024 | R/W | 时间设置寄存器1(次低8位) |
RTC_REG_TIME2 | 0x0028 | R/W | 时间设置寄存器2(次高8位) |
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 <stdio.h> | |
#include "py/runtime.h" | |
#include "py/mphal.h" | |
STATIC mp_obj_t pytest_test(void) | |
{ | |
printf("pytest module"); | |
return mp_obj_new_int(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 numpy as np | |
import os | |
from tensorflow import keras | |
from tensorflow.keras.models import Sequential | |
from tensorflow.keras.layers import Dense | |
from tensorflow.keras.callbacks import EarlyStopping, TensorBoard | |
from scikeras.wrappers import KerasClassifier | |
from sklearn.model_selection import GridSearchCV | |
from datetime import datetime |
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 cv2 | |
import numpy as np | |
import platform | |
from synset_label import labels | |
from rknnlite.api import RKNNLite | |
def preprocess_image(image_path): | |
"""预处理单张图片""" | |
img = cv2.imread(image_path) | |
img = cv2.resize(img, (224, 224)) # 调整大小 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# PTP Test Points | |
set_location_assignment PIN_AM33 -to TP_51 | |
set_location_assignment PIN_AN33 -to TP_52 | |
set_location_assignment PIN_AR35 -to TP_53 | |
set_location_assignment PIN_AN34 -to PPS_MAX10 | |
set_instance_assignment -name IO_STANDARD 1.8V -to TP_51 | |
set_instance_assignment -name IO_STANDARD 1.8V -to TP_52 | |
set_instance_assignment -name IO_STANDARD 1.8V -to TP_53 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 torch | |
import torch.nn as nn | |
import torch.optim as optim | |
from torch.nn.utils.rnn import pad_sequence, pack_padded_sequence, pad_packed_sequence | |
import random | |
# 示例训练数据 (中文->英文) | |
data = [ | |
(['我', '爱', '学习'], ['I', 'love', 'studying']), | |
(['今天', '天气', '好'], ['Today', 'weather', 'is', 'good']), |
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 torch | |
import torch.nn as nn | |
import torch.optim as optim | |
import random | |
# 定义编码器 | |
class Encoder(nn.Module): | |
def __init__(self, input_dim, emb_dim, hid_dim, n_layers, dropout): | |
super().__init__() | |
self.hid_dim = hid_dim |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder