remove unused pins

This commit is contained in:
Zihao Yu 2022-02-26 14:03:25 +08:00
parent 0b88a7c5b0
commit 6a4abfafaf
4 changed files with 3 additions and 7 deletions

View File

@ -126,7 +126,6 @@ output SEG7F
output SEG7G
output DEC7P
rt_output VGA_CLK
rt_output VGA_VSYNC
rt_output VGA_HSYNC
rt_output VGA_BLANK_N

View File

@ -14,7 +14,7 @@ default: $(BIN)
$(shell mkdir -p $(BUILD_DIR))
# contraint file
# constraint file
SRC_AUTO_BIND = $(abspath $(BUILD_DIR)/auto_bind.cpp)
$(SRC_AUTO_BIND): $(NXDC_FILES)
python $(NVBOARD_HOME)/scripts/auto_pin_bind.py $^ $@

View File

@ -3,8 +3,6 @@
#include <stdint.h>
#define CLK_INPUT CLK
#define BTN_INPUT BTNC, BTNU, BTND, BTNL, BTNR, RST
#define SW_INPUT SW0, SW1, SW2, SW3, \
@ -31,7 +29,7 @@
//#define UART_OUTPUT
#define VGA_OUTPUT VGA_CLK, VGA_VSYNC, VGA_HSYNC, VGA_BLANK_N, \
#define VGA_OUTPUT VGA_VSYNC, VGA_HSYNC, VGA_BLANK_N, \
VGA_R0, VGA_R1, VGA_R2, VGA_R3, VGA_R4, VGA_R5, VGA_R6, VGA_R7, \
VGA_G0, VGA_G1, VGA_G2, VGA_G3, VGA_G4, VGA_G5, VGA_G6, VGA_G7, \
VGA_B0, VGA_B1, VGA_B2, VGA_B3, VGA_B4, VGA_B5, VGA_B6, VGA_B7
@ -41,7 +39,6 @@
enum {
BTN_INPUT,
SW_INPUT,
CLK_INPUT,
KEYBOARD_INPUT,
NR_INPUT_PINS,
};

View File

@ -253,7 +253,7 @@ void init_components(SDL_Renderer *renderer) {
rect_ptr = new SDL_Rect;
*rect_ptr = (SDL_Rect){WINDOW_WIDTH, 0, VGA_DEFAULT_WIDTH, VGA_DEFAULT_HEIGHT};
ptr->set_rect(rect_ptr, 0);
for (int p = VGA_CLK; p <= VGA_B7; p ++) {
for (int p = VGA_VSYNC; p <= VGA_B7; p ++) {
ptr->add_output(p);
}
rt_components.push_back(ptr);