FreeCalypso > hg > freecalypso-sw
comparison nuc-fw/bsp/clkm.h @ 109:91460c8957f0
nuc-fw/bsp: beginning of reconciliation with the Leonardo semi-src version
| author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> | 
|---|---|
| date | Sat, 19 Oct 2013 18:59:34 +0000 | 
| parents | 45911ad957fd | 
| children | 1e41550feec5 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 108:3b9cc76f2073 | 109:91460c8957f0 | 
|---|---|
| 24 | 24 | 
| 25 SCCS file : /db/gsm_asp/db_ht96/dsp_0/gsw/rel_0/mcu_l1/release_gprs/mod/emu_p/EMU_P_FRED_CLOCK/drivers1/common/SCCS/s.clkm.h | 25 SCCS file : /db/gsm_asp/db_ht96/dsp_0/gsw/rel_0/mcu_l1/release_gprs/mod/emu_p/EMU_P_FRED_CLOCK/drivers1/common/SCCS/s.clkm.h | 
| 26 | 26 | 
| 27 Sccs Id (SID) : '@(#) clkm.h 1.10 10/23/01 14:34:54 ' | 27 Sccs Id (SID) : '@(#) clkm.h 1.10 10/23/01 14:34:54 ' | 
| 28 | 28 | 
| 29 * FreeCalypso note: this version of clkm.h originates | |
| 30 * from the MV100-0.1.rar find. | |
| 29 | 31 | 
| 30 *****************************************************************************/ | 32 *****************************************************************************/ | 
| 31 | 33 | 
| 32 #include "../include/config.h" | 34 #include "../include/config.h" | 
| 33 #include "../include/sys_types.h" | 35 #include "../include/sys_types.h" | 
| 253 /* Functionality :Initialize the CLKM Control Clock register */ | 255 /* Functionality :Initialize the CLKM Control Clock register */ | 
| 254 /*--------------------------------------------------------------*/ | 256 /*--------------------------------------------------------------*/ | 
| 255 | 257 | 
| 256 #define CLKM_INITCNTL(value) (* (volatile SYS_UWORD16 *) CLKM_CNTL_CLK = value) | 258 #define CLKM_INITCNTL(value) (* (volatile SYS_UWORD16 *) CLKM_CNTL_CLK = value) | 
| 257 | 259 | 
| 260 /* | |
| 261 * NOTE: the version of the CLKM_INITCNTL() macro in the Sotomodem source | |
| 262 * does |= instead of =. It remains to be investigated which is more correct. | |
| 263 */ | |
| 264 | |
| 258 | 265 | 
| 259 #if ((CHIPSET != 4) && (CHIPSET != 7) && (CHIPSET != 8) && (CHIPSET != 10) && (CHIPSET != 11) && (CHIPSET != 12)) | 266 #if ((CHIPSET != 4) && (CHIPSET != 7) && (CHIPSET != 8) && (CHIPSET != 10) && (CHIPSET != 11) && (CHIPSET != 12)) | 
| 260 /*---------------------------------------------------------------/ | 267 /*---------------------------------------------------------------/ | 
| 261 /* CLKM_INITLEADPLL() */ | 268 /* CLKM_INITLEADPLL() */ | 
| 262 /*--------------------------------------------------------------*/ | 269 /*--------------------------------------------------------------*/ | 
| 361 #endif | 368 #endif | 
| 362 | 369 | 
| 363 /* ----- Prototypes ----- */ | 370 /* ----- Prototypes ----- */ | 
| 364 | 371 | 
| 365 #if ((CHIPSET == 4) || (CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 10) || (CHIPSET == 11) || (CHIPSET == 12)) | 372 #if ((CHIPSET == 4) || (CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 10) || (CHIPSET == 11) || (CHIPSET == 12)) | 
| 366 inline void CLKM_InitARMClock(SYS_UWORD16 clk_src, SYS_UWORD16 clk_div, SYS_UWORD16 clk_xp5); | 373 void CLKM_InitARMClock(SYS_UWORD16 clk_src, SYS_UWORD16 clk_div, SYS_UWORD16 clk_xp5); | 
| 367 #else | 374 #else | 
| 368 inline void CLKM_InitARMClock(SYS_UWORD16 clk_src, SYS_UWORD16 clk_div); | 375 void CLKM_InitARMClock(SYS_UWORD16 clk_src, SYS_UWORD16 clk_div); | 
| 369 #endif | 376 #endif | 
| 370 | 377 | 
| 371 void wait_ARM_cycles(SYS_UWORD32 cpt_loop); | 378 void wait_ARM_cycles(SYS_UWORD32 cpt_loop); | 
| 372 void initialize_wait_loop(void); | 379 void initialize_wait_loop(void); | 
| 373 inline SYS_UWORD32 convert_nanosec_to_cycles(SYS_UWORD32 time); | 380 SYS_UWORD32 convert_nanosec_to_cycles(SYS_UWORD32 time); | 
