From 68e90cd369003354981029523fee99f7a8f9a86b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Tue, 20 Oct 2015 09:59:53 +0200 Subject: [PATCH] Added missing FSMC register addresses --- lib/INI_FSMC.s | 25 ++++++++++++++----------- lib/TODO.txt | 8 -------- 2 files changed, 14 insertions(+), 19 deletions(-) delete mode 100644 lib/TODO.txt diff --git a/lib/INI_FSMC.s b/lib/INI_FSMC.s index 6b6dfb8..c73ad48 100644 --- a/lib/INI_FSMC.s +++ b/lib/INI_FSMC.s @@ -16,17 +16,20 @@ ;* ;**************************************************************************** -; FSMC -_FSMC_B1 EQU (_FSMC + 0x0000) ; FSMC Bank1 registers base address -_FSMC_B1E EQU (_FSMC + 0x0104) ; FSMC Bank1E registers base address - -; Bank 1 -FSMC_B1_BTCR EQU (_FSMC_B1 + 0x00) ; NOR/PSRAM chip-select control register(BCR) and chip-select timing register(BTR), - -; Bank 2 -FSMC_B1E_BWTR EQU (_FSMC_B1E + 0x104) ; NOR/PSRAM write timing registers, - -; TODO missing some registers +FSMC_BCR1 EQU (_FSCM + 0x0000) ; SRAM/NOR-Flash chip-select control registers +FSMC_BCR2 EQU (_FSCM + 0x0008) ; +FSMC_BCR3 EQU (_FSCM + 0x0010) ; +FSMC_BCR4 EQU (_FSCM + 0x0018) ; + +FSMC_BTR1 EQU (_FSCM + 0x0004) ; SRAM/NOR-Flash chip-select timing registers +FSMC_BTR2 EQU (_FSCM + 0x000C) ; +FSMC_BTR3 EQU (_FSCM + 0x0014) ; +FSMC_BTR4 EQU (_FSCM + 0x001C) ; + +FSMC_BWTR1 EQU (_FSCM + 0x0104) ; SRAM/NOR-Flash write timing registers +FSMC_BWTR2 EQU (_FSCM + 0x010C) ; +FSMC_BWTR3 EQU (_FSCM + 0x0114) ; +FSMC_BWTR4 EQU (_FSCM + 0x011C) ; ;**************************************************************************** diff --git a/lib/TODO.txt b/lib/TODO.txt deleted file mode 100644 index 9af332a..0000000 --- a/lib/TODO.txt +++ /dev/null @@ -1,8 +0,0 @@ - -Missing registers in FSMC - -Missing registers in USB - -maybe others I didn't notice. - --mightypork