PicoWAN SDK Documentation
Home
Data Structures
Files
Download the SDK
Explore in GitHUB
File List
Globals
common
stm32
STM32L1
arch.h
Go to the documentation of this file.
1
31
#ifndef _ARCH_H_
32
#define _ARCH_H_
33
34
/* Tick system is LSE/4 = 8,192 kHz */
35
#define TICK_FREQ 8192 // Hz
36
37
/* CPU Low-Power wakeup and sleep latency */
38
#define HAL_CPU_LP_WAKEUP_LATENCY 24 // in ticks (~3 ms)
39
#define HAL_CPU_LP_SLEEP_LATENCY 24 // in ticks (~3 ms)
40
41
/* GPIO mapping */
42
typedef
enum
{
43
GPIO_PORT_A = 0,
44
GPIO_PORT_B = 1,
45
GPIO_PORT_C = 2,
46
GPIO_PORT_D = 3,
47
GPIO_PORT_E = 4,
48
GPIO_PORT_H = 5,
49
} gpio_port_t;
50
51
/* List of available USART ports */
52
typedef
enum
{
53
USART_PORT_1,
54
USART_PORT_2,
55
USART_PORT_3,
56
} usart_port_t;
57
58
/* List of available I2C ports */
59
typedef
enum
{
60
I2C_PORT_1,
61
I2C_PORT_2,
62
} i2c_port_t;
63
64
#endif
/* _ARCH_H_ */
Generated on Fri Feb 2 2018 16:34:41 for PicoWAN SDK Documentation by
1.8.11