[ion] Change model name: n0200 --> n0110

This commit is contained in:
Léa Saviot
2019-06-05 11:03:26 +02:00
parent 74665c0569
commit 4dd2a5a47a
41 changed files with 75 additions and 75 deletions

View File

@@ -0,0 +1,9 @@
ion_device_src += $(addprefix ion/src/device/n0110/drivers/, \
board.cpp \
cache.cpp \
power.cpp \
)
ion_device_src += ion/src/device/n0110/usb/stack/device.cpp
LDSCRIPT ?= ion/src/device/n0110/flash.ld

View File

@@ -10,7 +10,7 @@ extern void * InitialisationVector;
// Public Ion methods
const char * Ion::fccId() {
return "2ALWP-N0200";
return "2ALWP-N0110";
}
// Private Ion::Device methods

View File

@@ -1,5 +1,5 @@
#ifndef ION_DEVICE_N0200_CACHE_H
#define ION_DEVICE_N0200_CACHE_H
#ifndef ION_DEVICE_N0110_CACHE_H
#define ION_DEVICE_N0110_CACHE_H
#include <regs/regs.h>

View File

@@ -1,5 +1,5 @@
#ifndef ION_DEVICE_N0200_CONFIG_BACKLIGHT_H
#define ION_DEVICE_N0200_CONFIG_BACKLIGHT_H
#ifndef ION_DEVICE_N0110_CONFIG_BACKLIGHT_H
#define ION_DEVICE_N0110_CONFIG_BACKLIGHT_H
#include <regs/regs.h>

View File

@@ -1,5 +1,5 @@
#ifndef ION_DEVICE_N0200_CONFIG_BATTERY_H
#define ION_DEVICE_N0200_CONFIG_BATTERY_H
#ifndef ION_DEVICE_N0110_CONFIG_BATTERY_H
#define ION_DEVICE_N0110_CONFIG_BATTERY_H
#include <regs/regs.h>

View File

@@ -1,5 +1,5 @@
#ifndef ION_DEVICE_N0200_CONFIG_CLOCKS_H
#define ION_DEVICE_N0200_CONFIG_CLOCKS_H
#ifndef ION_DEVICE_N0110_CONFIG_CLOCKS_H
#define ION_DEVICE_N0110_CONFIG_CLOCKS_H
#include <regs/regs.h>

View File

@@ -1,5 +1,5 @@
#ifndef ION_DEVICE_N0200_CONFIG_CONSOLE_H
#define ION_DEVICE_N0200_CONFIG_CONSOLE_H
#ifndef ION_DEVICE_N0110_CONFIG_CONSOLE_H
#define ION_DEVICE_N0110_CONFIG_CONSOLE_H
#include <regs/regs.h>

View File

@@ -1,5 +1,5 @@
#ifndef ION_DEVICE_N0200_CONFIG_DISPLAY_H
#define ION_DEVICE_N0200_CONFIG_DISPLAY_H
#ifndef ION_DEVICE_N0110_CONFIG_DISPLAY_H
#define ION_DEVICE_N0110_CONFIG_DISPLAY_H
#include <regs/regs.h>

View File

@@ -1,5 +1,5 @@
#ifndef ION_DEVICE_N0200_CONFIG_EXTERNAL_FLASH_H
#define ION_DEVICE_N0200_CONFIG_EXTERNAL_FLASH_H
#ifndef ION_DEVICE_N0110_CONFIG_EXTERNAL_FLASH_H
#define ION_DEVICE_N0110_CONFIG_EXTERNAL_FLASH_H
#include <regs/regs.h>

View File

@@ -1,5 +1,5 @@
#ifndef ION_DEVICE_N0200_CONFIG_FLASH_H
#define ION_DEVICE_N0200_CONFIG_FLASH_H
#ifndef ION_DEVICE_N0110_CONFIG_FLASH_H
#define ION_DEVICE_N0110_CONFIG_FLASH_H
#include <regs/regs.h>

View File

@@ -1,5 +1,5 @@
#ifndef ION_DEVICE_N0200_CONFIG_KEYBOARD_H
#define ION_DEVICE_N0200_CONFIG_KEYBOARD_H
#ifndef ION_DEVICE_N0110_CONFIG_KEYBOARD_H
#define ION_DEVICE_N0110_CONFIG_KEYBOARD_H
#include <regs/regs.h>
#include <ion/keyboard.h>

View File

@@ -1,5 +1,5 @@
#ifndef ION_DEVICE_N0200_CONFIG_LED_H
#define ION_DEVICE_N0200_CONFIG_LED_H
#ifndef ION_DEVICE_N0110_CONFIG_LED_H
#define ION_DEVICE_N0110_CONFIG_LED_H
#include <regs/regs.h>

View File

@@ -1,5 +1,5 @@
#ifndef ION_DEVICE_N0200_CONFIG_SERIAL_NUMBER_H
#define ION_DEVICE_N0200_CONFIG_SERIAL_NUMBER_H
#ifndef ION_DEVICE_N0110_CONFIG_SERIAL_NUMBER_H
#define ION_DEVICE_N0110_CONFIG_SERIAL_NUMBER_H
#include <regs/regs.h>

View File

@@ -1,5 +1,5 @@
#ifndef ION_DEVICE_N0200_CONFIG_SWD_H
#define ION_DEVICE_N0200_CONFIG_SWD_H
#ifndef ION_DEVICE_N0110_CONFIG_SWD_H
#define ION_DEVICE_N0110_CONFIG_SWD_H
#include <regs/regs.h>

View File

@@ -1,5 +1,5 @@
#ifndef ION_DEVICE_N0200_CONFIG_TIMING_H
#define ION_DEVICE_N0200_CONFIG_TIMING_H
#ifndef ION_DEVICE_N0110_CONFIG_TIMING_H
#define ION_DEVICE_N0110_CONFIG_TIMING_H
#include <regs/regs.h>

View File

@@ -1,5 +1,5 @@
#ifndef ION_DEVICE_N0200_CONFIG_USB_H
#define ION_DEVICE_N0200_CONFIG_USB_H
#ifndef ION_DEVICE_N0110_CONFIG_USB_H
#define ION_DEVICE_N0110_CONFIG_USB_H
#include <regs/regs.h>

View File

@@ -0,0 +1,6 @@
#ifndef ION_DEVICE_N0110_REGS_CONFIG_CORTEX_H
#define ION_DEVICE_N0110_REGS_CONFIG_CORTEX_H
#define REGS_CORTEX_CONFIG_CACHE 1
#endif

View File

@@ -0,0 +1,6 @@
#ifndef ION_DEVICE_N0110_REGS_CONFIG_FLASH_H
#define ION_DEVICE_N0110_REGS_CONFIG_FLASH_H
#define REGS_FLASH_CONFIG_ART 1
#endif

View File

@@ -0,0 +1,6 @@
#ifndef ION_DEVICE_N0110_REGS_CONFIG_PWR_H
#define ION_DEVICE_N0110_REGS_CONFIG_PWR_H
#define REGS_PWR_CONFIG_ADDITIONAL_FIELDS 1
#endif

View File

@@ -0,0 +1,7 @@
#ifndef ION_DEVICE_N0110_REGS_CONFIG_RCC_H
#define ION_DEVICE_N0110_REGS_CONFIG_RCC_H
#define REGS_RCC_CONFIG_F730 1
#define REGS_RCC_CONFIG_F412 0
#endif

View File

@@ -0,0 +1,6 @@
#ifndef ION_DEVICE_N0110_REGS_CONFIG_SYSCFG_H
#define ION_DEVICE_N0110_REGS_CONFIG_SYSCFG_H
#define REGS_SYSCFG_CONFIG_F412 0
#endif

View File

@@ -1,5 +1,5 @@
#ifndef ION_DEVICE_N0200_REGS_CONFIG_USART_H
#define ION_DEVICE_N0200_REGS_CONFIG_USART_H
#ifndef ION_DEVICE_N0110_REGS_CONFIG_USART_H
#define ION_DEVICE_N0110_REGS_CONFIG_USART_H
#define REGS_USART_SR_OFFSET 0x1C
#define REGS_USART_RDR_OFFSET 0x24

View File

@@ -1,9 +0,0 @@
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

View File

@@ -1,6 +0,0 @@
#ifndef ION_DEVICE_N0200_REGS_CONFIG_CORTEX_H
#define ION_DEVICE_N0200_REGS_CONFIG_CORTEX_H
#define REGS_CORTEX_CONFIG_CACHE 1
#endif

View File

@@ -1,6 +0,0 @@
#ifndef ION_DEVICE_N0200_REGS_CONFIG_FLASH_H
#define ION_DEVICE_N0200_REGS_CONFIG_FLASH_H
#define REGS_FLASH_CONFIG_ART 1
#endif

View File

@@ -1,6 +0,0 @@
#ifndef ION_DEVICE_N0200_REGS_CONFIG_PWR_H
#define ION_DEVICE_N0200_REGS_CONFIG_PWR_H
#define REGS_PWR_CONFIG_ADDITIONAL_FIELDS 1
#endif

View File

@@ -1,7 +0,0 @@
#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

View File

@@ -1,6 +0,0 @@
#ifndef ION_DEVICE_N0200_REGS_CONFIG_SYSCFG_H
#define ION_DEVICE_N0200_REGS_CONFIG_SYSCFG_H
#define REGS_SYSCFG_CONFIG_F412 0
#endif

View File

@@ -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 N0200
* (K_B2 and K_B3 are respectively specific to N0100 and N0110
*
* | PC0 | PC1 | PC2 | PC3 | PC4 | PC5 |
* -----+------+------+------+------+------+------+

View File

@@ -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)
* - N0200: position 12-15 (charging pin = 3) with 0100 (ChargingGPIO = group E)
* - N0110: 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)
* - N0200: position 8-11 (column pin = 2) with 0010 (ColumnGPIO = group C). */
* - N0110: position 8-11 (column pin = 2) with 0010 (ColumnGPIO = group C). */
SYSCFG.EXTICR1()->setEXTI(columnPin, Keyboard::Config::ColumnGPIO);

View File

@@ -1,4 +1,4 @@
MODEL ?= n0200
MODEL ?= n0110
USE_LIBA = 1
EXE = elf
EPSILON_BOOT_PROMPT = update