PicoWAN SDK Documentation
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 = 7,
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_4,
56  USART_PORT_5,
57  LPUART_PORT_1,
58 } usart_port_t;
59 
60 /* List of available I2C ports */
61 typedef enum {
62  I2C_PORT_1,
63  I2C_PORT_2,
64 } i2c_port_t;
65 
66 #endif /* _ARCH_H_ */