changeset:   1740:0dec6e540037
user:        joerg_wunsch
date:        Tue Mar 27 10:50:42 2012 +0200
files:       uracoli/Src/App/diagradio.c uracoli/Src/App/wuart.c uracoli/Src/Lib/Rf230/trx_datarate_str.c
description:
Add some "const" qualifiers in order to get this code compiled
with recent (>= 4.6.x) versions of GCC.


diff -r b0ae8bf70282 -r 0dec6e540037 uracoli/Src/App/diagradio.c
--- a/uracoli/Src/App/diagradio.c	Tue Mar 27 06:38:18 2012 +0200
+++ b/uracoli/Src/App/diagradio.c	Tue Mar 27 10:50:42 2012 +0200
@@ -106,7 +106,14 @@
 timer_hdl_t  th_blink;
 
 /** factory defaults of radio parameter  */
-trx_param_t PROGMEM trxp_flash = {chan: 13, txp: 0, cca: 1, edt: 11, clkm: 0};
+const trx_param_t PROGMEM trxp_flash =
+{
+    chan: 13,
+    txp: 0,
+    cca: 1,
+    edt: 11,
+    clkm: 0
+};
 
 /**
  * @brief Main function of diagradio application.
diff -r b0ae8bf70282 -r 0dec6e540037 uracoli/Src/App/wuart.c
--- a/uracoli/Src/App/wuart.c	Tue Mar 27 06:38:18 2012 +0200
+++ b/uracoli/Src/App/wuart.c	Tue Mar 27 10:50:42 2012 +0200
@@ -109,7 +109,7 @@
 
 /* === globals ====================================== */
 
-node_config_t PROGMEM nc_flash = { .short_addr = 0xBEEF,
+const node_config_t PROGMEM nc_flash = { .short_addr = 0xBEEF,
                                    .pan_id = 0x2222,
                                    .channel = DEFAULT_RADIO_CHANNEL,
                                  };
diff -r b0ae8bf70282 -r 0dec6e540037 uracoli/Src/Lib/Rf230/trx_datarate_str.c
--- a/uracoli/Src/Lib/Rf230/trx_datarate_str.c	Tue Mar 27 06:38:18 2012 +0200
+++ b/uracoli/Src/Lib/Rf230/trx_datarate_str.c	Tue Mar 27 10:50:42 2012 +0200
@@ -112,7 +112,7 @@
 
 
 
-PGM_P rate_strtable[] PROGMEM =
+PGM_P const rate_strtable[] PROGMEM =
 {
 # ifdef TRX_BPSK20
     C_BPSK20_STR,

