K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / src / linux-headers-3.13.0-24 / arch / arm / include / debug /
server ip : 104.21.89.46

your ip : 172.71.255.41

H O M E


Filename/usr/src/linux-headers-3.13.0-24/arch/arm/include/debug/efm32.S
Size1.05 kb
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:50
Last modified20-Jan-2014 10:40
Last accessed07-Jul-2025 07:16
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
/*
* Copyright (C) 2013 Pengutronix
* Uwe Kleine-Koenig <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/

#define UARTn_CMD 0x000c
#define UARTn_CMD_TXEN 0x0004

#define UARTn_STATUS 0x0010
#define UARTn_STATUS_TXC 0x0020
#define UARTn_STATUS_TXBL 0x0040

#define UARTn_TXDATA 0x0034

.macro addruart, rx, tmp
ldr \rx, =(CONFIG_DEBUG_UART_PHYS)

/*
* enable TX. The driver might disable it to save energy. We
* don't care about disabling at the end as during debug power
* consumption isn't that important.
*/
ldr \tmp, =(UARTn_CMD_TXEN)
str \tmp, [\rx, #UARTn_CMD]
.endm

.macro senduart,rd,rx
strb \rd, [\rx, #UARTn_TXDATA]
.endm

.macro waituart,rd,rx
1001: ldr \rd, [\rx, #UARTn_STATUS]
tst \rd, #UARTn_STATUS_TXBL
beq 1001b
.endm

.macro busyuart,rd,rx
1001: ldr \rd, [\rx, UARTn_STATUS]
tst \rd, #UARTn_STATUS_TXC
bne 1001b
.endm