FreeCalypso > hg > fc-magnetite
comparison src/cs/drivers/drv_app/lcc/lcc_modulate.h @ 0:945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
binary blobs and LCD demo files have been excluded,
all line endings are LF only
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 25 Sep 2016 22:50:11 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:945cf7f506b2 |
---|---|
1 /****************************************************************************** | |
2 * Power Task (pwr) | |
3 * Design and coding by Svend Kristian Lindholm, skl@ti.com | |
4 * | |
5 * PWR SW Modulation | |
6 * | |
7 * $Id: pwr_modulate.h 1.1 Wed, 20 Aug 2003 10:22:37 +0200 skl $ | |
8 * | |
9 ******************************************************************************/ | |
10 #ifndef __LCC_MODULATE_H__ | |
11 #define __LCC_MODULATE_H__ | |
12 | |
13 #include "lcc/lcc.h" | |
14 #include "lcc/lcc_cfg.h" | |
15 | |
16 // SW modulation using the following addresses | |
17 #if (USE_PWL_AS_MODULATOR == 1) | |
18 // D-Sample - no modulation - just envelope function to simulate GPIO 6 | |
19 #define PWL_LEVEL_REG (*(volatile unsigned char*) 0xFFFE8000) | |
20 #define PWL_CTRL_REG (*(volatile unsigned char*) 0xFFFE8001) | |
21 #define BUZZ_LIGHT_REG (*(volatile short*) 0xFFFE480E) // Enable buzzer (bit 0) and PWL (bit 1) | |
22 #endif | |
23 /****************************************************************************** | |
24 * Function prototypes | |
25 ******************************************************************************/ | |
26 | |
27 void pwr_modulate_init(void); | |
28 void pwr_modulate_on(void); | |
29 void pwr_modulate_off(void); | |
30 | |
31 #endif |