mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
Change model name: n0101 --> n0200
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
ion_device_src += $(addprefix ion/src/device/n0101/drivers/, \
|
||||
board.cpp \
|
||||
cache.cpp \
|
||||
power.cpp \
|
||||
)
|
||||
|
||||
ion_device_src += ion/src/device/n0101/usb/stack/device.cpp
|
||||
|
||||
LDSCRIPT ?= ion/src/device/n0101/flash.ld
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef ION_DEVICE_N0101_REGS_CONFIG_CORTEX_H
|
||||
#define ION_DEVICE_N0101_REGS_CONFIG_CORTEX_H
|
||||
|
||||
#define REGS_CORTEX_CONFIG_CACHE 1
|
||||
|
||||
#endif
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef ION_DEVICE_N0101_REGS_CONFIG_FLASH_H
|
||||
#define ION_DEVICE_N0101_REGS_CONFIG_FLASH_H
|
||||
|
||||
#define REGS_FLASH_CONFIG_ART 1
|
||||
|
||||
#endif
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef ION_DEVICE_N0101_REGS_CONFIG_PWR_H
|
||||
#define ION_DEVICE_N0101_REGS_CONFIG_PWR_H
|
||||
|
||||
#define REGS_PWR_CONFIG_ADDITIONAL_FIELDS 1
|
||||
|
||||
#endif
|
||||
@@ -1,7 +0,0 @@
|
||||
#ifndef ION_DEVICE_N0101_REGS_CONFIG_RCC_H
|
||||
#define ION_DEVICE_N0101_REGS_CONFIG_RCC_H
|
||||
|
||||
#define REGS_RCC_CONFIG_F730 1
|
||||
#define REGS_RCC_CONFIG_F412 0
|
||||
|
||||
#endif
|
||||
9
ion/src/device/n0200/Makefile
Normal file
9
ion/src/device/n0200/Makefile
Normal file
@@ -0,0 +1,9 @@
|
||||
ion_device_src += $(addprefix ion/src/device/n0200/drivers/, \
|
||||
board.cpp \
|
||||
cache.cpp \
|
||||
power.cpp \
|
||||
)
|
||||
|
||||
ion_device_src += ion/src/device/n0200/usb/stack/device.cpp
|
||||
|
||||
LDSCRIPT ?= ion/src/device/n0200/flash.ld
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ION_DEVICE_N0101_CONFIG_BACKLIGHT_H
|
||||
#define ION_DEVICE_N0101_CONFIG_BACKLIGHT_H
|
||||
#ifndef ION_DEVICE_N0200_CONFIG_BACKLIGHT_H
|
||||
#define ION_DEVICE_N0200_CONFIG_BACKLIGHT_H
|
||||
|
||||
#include <regs/regs.h>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ION_DEVICE_N0101_CONFIG_BATTERY_H
|
||||
#define ION_DEVICE_N0101_CONFIG_BATTERY_H
|
||||
#ifndef ION_DEVICE_N0200_CONFIG_BATTERY_H
|
||||
#define ION_DEVICE_N0200_CONFIG_BATTERY_H
|
||||
|
||||
#include <regs/regs.h>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ION_DEVICE_N0101_CONFIG_CLOCKS_H
|
||||
#define ION_DEVICE_N0101_CONFIG_CLOCKS_H
|
||||
#ifndef ION_DEVICE_N0200_CONFIG_CLOCKS_H
|
||||
#define ION_DEVICE_N0200_CONFIG_CLOCKS_H
|
||||
|
||||
#include <regs/regs.h>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ION_DEVICE_N0101_CONFIG_CONSOLE_H
|
||||
#define ION_DEVICE_N0101_CONFIG_CONSOLE_H
|
||||
#ifndef ION_DEVICE_N0200_CONFIG_CONSOLE_H
|
||||
#define ION_DEVICE_N0200_CONFIG_CONSOLE_H
|
||||
|
||||
#include <regs/regs.h>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ION_DEVICE_N0101_CONFIG_DISPLAY_H
|
||||
#define ION_DEVICE_N0101_CONFIG_DISPLAY_H
|
||||
#ifndef ION_DEVICE_N0200_CONFIG_DISPLAY_H
|
||||
#define ION_DEVICE_N0200_CONFIG_DISPLAY_H
|
||||
|
||||
#include <regs/regs.h>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ION_DEVICE_N0101_CONFIG_EXTERNAL_FLASH_H
|
||||
#define ION_DEVICE_N0101_CONFIG_EXTERNAL_FLASH_H
|
||||
#ifndef ION_DEVICE_N0200_CONFIG_EXTERNAL_FLASH_H
|
||||
#define ION_DEVICE_N0200_CONFIG_EXTERNAL_FLASH_H
|
||||
|
||||
#include <regs/regs.h>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ION_DEVICE_N0101_CONFIG_FLASH_H
|
||||
#define ION_DEVICE_N0101_CONFIG_FLASH_H
|
||||
#ifndef ION_DEVICE_N0200_CONFIG_FLASH_H
|
||||
#define ION_DEVICE_N0200_CONFIG_FLASH_H
|
||||
|
||||
#include <regs/regs.h>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ION_DEVICE_N0101_CONFIG_KEYBOARD_H
|
||||
#define ION_DEVICE_N0101_CONFIG_KEYBOARD_H
|
||||
#ifndef ION_DEVICE_N0200_CONFIG_KEYBOARD_H
|
||||
#define ION_DEVICE_N0200_CONFIG_KEYBOARD_H
|
||||
|
||||
#include <regs/regs.h>
|
||||
#include <ion/keyboard.h>
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ION_DEVICE_N0101_CONFIG_LED_H
|
||||
#define ION_DEVICE_N0101_CONFIG_LED_H
|
||||
#ifndef ION_DEVICE_N0200_CONFIG_LED_H
|
||||
#define ION_DEVICE_N0200_CONFIG_LED_H
|
||||
|
||||
#include <regs/regs.h>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ION_DEVICE_N0101_CONFIG_SERIAL_NUMBER_H
|
||||
#define ION_DEVICE_N0101_CONFIG_SERIAL_NUMBER_H
|
||||
#ifndef ION_DEVICE_N0200_CONFIG_SERIAL_NUMBER_H
|
||||
#define ION_DEVICE_N0200_CONFIG_SERIAL_NUMBER_H
|
||||
|
||||
#include <regs/regs.h>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ION_DEVICE_N0101_CONFIG_SWD_H
|
||||
#define ION_DEVICE_N0101_CONFIG_SWD_H
|
||||
#ifndef ION_DEVICE_N0200_CONFIG_SWD_H
|
||||
#define ION_DEVICE_N0200_CONFIG_SWD_H
|
||||
|
||||
#include <regs/regs.h>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ION_DEVICE_N0101_CONFIG_TIMING_H
|
||||
#define ION_DEVICE_N0101_CONFIG_TIMING_H
|
||||
#ifndef ION_DEVICE_N0200_CONFIG_TIMING_H
|
||||
#define ION_DEVICE_N0200_CONFIG_TIMING_H
|
||||
|
||||
#include <regs/regs.h>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ION_DEVICE_N0101_CONFIG_USB_H
|
||||
#define ION_DEVICE_N0101_CONFIG_USB_H
|
||||
#ifndef ION_DEVICE_N0200_CONFIG_USB_H
|
||||
#define ION_DEVICE_N0200_CONFIG_USB_H
|
||||
|
||||
#include <regs/regs.h>
|
||||
|
||||
6
ion/src/device/n0200/regs/config/cortex.h
Normal file
6
ion/src/device/n0200/regs/config/cortex.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef ION_DEVICE_N0200_REGS_CONFIG_CORTEX_H
|
||||
#define ION_DEVICE_N0200_REGS_CONFIG_CORTEX_H
|
||||
|
||||
#define REGS_CORTEX_CONFIG_CACHE 1
|
||||
|
||||
#endif
|
||||
6
ion/src/device/n0200/regs/config/flash.h
Normal file
6
ion/src/device/n0200/regs/config/flash.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef ION_DEVICE_N0200_REGS_CONFIG_FLASH_H
|
||||
#define ION_DEVICE_N0200_REGS_CONFIG_FLASH_H
|
||||
|
||||
#define REGS_FLASH_CONFIG_ART 1
|
||||
|
||||
#endif
|
||||
6
ion/src/device/n0200/regs/config/pwr.h
Normal file
6
ion/src/device/n0200/regs/config/pwr.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef ION_DEVICE_N0200_REGS_CONFIG_PWR_H
|
||||
#define ION_DEVICE_N0200_REGS_CONFIG_PWR_H
|
||||
|
||||
#define REGS_PWR_CONFIG_ADDITIONAL_FIELDS 1
|
||||
|
||||
#endif
|
||||
7
ion/src/device/n0200/regs/config/rcc.h
Normal file
7
ion/src/device/n0200/regs/config/rcc.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#ifndef ION_DEVICE_N0200_REGS_CONFIG_RCC_H
|
||||
#define ION_DEVICE_N0200_REGS_CONFIG_RCC_H
|
||||
|
||||
#define REGS_RCC_CONFIG_F730 1
|
||||
#define REGS_RCC_CONFIG_F412 0
|
||||
|
||||
#endif
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef ION_DEVICE_N0101_REGS_CONFIG_USART_H
|
||||
#define ION_DEVICE_N0101_REGS_CONFIG_USART_H
|
||||
#ifndef ION_DEVICE_N0200_REGS_CONFIG_USART_H
|
||||
#define ION_DEVICE_N0200_REGS_CONFIG_USART_H
|
||||
|
||||
#define REGS_USART_SR_OFFSET 0x1C
|
||||
#define REGS_USART_RDR_OFFSET 0x24
|
||||
@@ -3,7 +3,7 @@
|
||||
* The job of this code is to implement the "ion_key_state" function.
|
||||
*
|
||||
* The keyboard is a matrix that is laid out as follow:
|
||||
* (K_B2 and K_B3 are respectively specific to N0100 and N0101
|
||||
* (K_B2 and K_B3 are respectively specific to N0100 and N0200
|
||||
*
|
||||
* | PC0 | PC1 | PC2 | PC3 | PC4 | PC5 |
|
||||
* -----+------+------+------+------+------+------+
|
||||
|
||||
@@ -20,7 +20,7 @@ void onChargingEvent() {
|
||||
* source input for EXTI at the same time. Here, EXTICR1 register is filled
|
||||
* between:
|
||||
* - N0100: position 0-3 (charging pin = 0) with 0000 (ChargingGPIO = group A)
|
||||
* - N0101: position 12-15 (charging pin = 3) with 0100 (ChargingGPIO = group E)
|
||||
* - N0200: position 12-15 (charging pin = 3) with 0100 (ChargingGPIO = group E)
|
||||
*/
|
||||
SYSCFG.EXTICR1()->setEXTI(Battery::Config::ChargingPin.pin(), Battery::Config::ChargingPin.group());
|
||||
|
||||
@@ -58,7 +58,7 @@ void onOnOffKeyDown() {
|
||||
|
||||
/* Here, EXTICR1 register is filled between:
|
||||
* - N0100: position 4-7 (column pin = 1) with 0010 (ColumnGPIO = group C)
|
||||
* - N0101: position 8-11 (column pin = 2) with 0010 (ColumnGPIO = group C). */
|
||||
* - N0200: position 8-11 (column pin = 2) with 0010 (ColumnGPIO = group C). */
|
||||
|
||||
SYSCFG.EXTICR1()->setEXTI(columnPin, Keyboard::Config::ColumnGPIO);
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ $(BUILD_DIR)/quiz/src/%_symbols.o: SFLAGS += -Iquiz/src
|
||||
|
||||
$(BUILD_DIR)/test.$(EXE): $(BUILD_DIR)/quiz/src/tests_symbols.o $(runner_objs) $(call object_for,$(tests))
|
||||
|
||||
ifeq ($(MODEL),n0101)
|
||||
ifeq ($(MODEL),n0200)
|
||||
$(BUILD_DIR)/test_external_flash.$(EXE): LDSCRIPT = ion/test/external_flash_tests.ld
|
||||
$(BUILD_DIR)/test_external_flash.$(EXE): $(BUILD_DIR)/quiz/src/external_flash_tests_symbols.o $(runner_objs) $(call object_for,$(tests_external_flash))
|
||||
endif
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
MODEL ?= n0101
|
||||
MODEL ?= n0200
|
||||
USE_LIBA = 1
|
||||
EXE = elf
|
||||
EPSILON_BOOT_PROMPT = update
|
||||
|
||||
Reference in New Issue
Block a user