OSDN Git Service

チケット #26689 pdic/uart/uart.cの不要な使用ポート数依存実装を削除する。
authorshintamainjp <shintamainjp@users.sourceforge.jp>
Sat, 5 Nov 2011 10:52:56 +0000 (10:52 +0000)
committershintamainjp <shintamainjp@users.sourceforge.jp>
Sat, 5 Nov 2011 10:52:56 +0000 (10:52 +0000)
asp/CHANGES.LPC
asp/pdic/uart/uart.c

index 0eb8a45..567fed9 100644 (file)
@@ -1,5 +1,8 @@
 * Release 1.7.2 (次のリリースに含まれる予定の修正)
 
+ - 「チケット #26689 pdic/uart/uart.cの不要な使用ポート数依存実装を削除する。」を実施。(2011/11/05 shintamainjp)
+   - asp/trunk/asp/pdic/uart/uart.cのsioreg_tableからTNUM_PORT数を参照している箇所を削除。
+
  - 「チケット #26592 target_config.cのシリアルポートピン定義実装変更」を実施。(2011/10/22 shintamainjp)
    - asp/trunk/asp/target/lpcxpresso1768_gcc/target_config.cにUARTモジュール電源制御マクロを追加。
    - asp/trunk/asp/target/lpcxpresso1768_gcc/target_config.cにUARTピン設定マクロを追加。
index b50ba58..8b7196e 100644 (file)
@@ -154,17 +154,11 @@ SIOPCB siopcb_table[TNUM_PORT];
  */
 
 #ifdef TOPPERS_CHIP_LPC17XX
-static const uint32_t sioreg_table[TNUM_PORT] = {
-       LPC_UART0_BASE
-#if (TNUM_PORT >= 2)
-       ,LPC_UART1_BASE
-#endif
-#if (TNUM_PORT >= 3)
-       ,LPC_UART2_BASE
-#endif
-#if (TNUM_PORT >= 4)
-       ,LPC_UART3_BASE
-#endif
+static const uint32_t sioreg_table[4] = {
+    LPC_UART0_BASE,
+    LPC_UART1_BASE,
+    LPC_UART2_BASE,
+    LPC_UART3_BASE
 };
 #else
 #error "You must define sioreg_table[]"