2017-02-05 11:50:45 +08:00
|
|
|
#include "armv7-m.dtsi"
|
|
|
|
#include <inc/hw_memmap.h>
|
|
|
|
#include <inc/hw_ints.h>
|
|
|
|
|
|
|
|
/* Note: Zephyr uses exception numbers, vs the IRQ #s used by the CC3200 SDK */
|
|
|
|
/* which are offset by 16: */
|
|
|
|
#define EXP_UARTA0 (INT_UARTA0 - 16)
|
|
|
|
#define EXP_UARTA1 (INT_UARTA1 - 16)
|
|
|
|
|
|
|
|
/ {
|
|
|
|
cpus {
|
|
|
|
cpu@0 {
|
|
|
|
compatible = "arm,cortex-m4";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
sram0: memory {
|
|
|
|
compatible = "sram";
|
|
|
|
reg = <0x20004000 0x3C000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
flash0: serial-flash {
|
|
|
|
compatible = "serial-flash";
|
|
|
|
reg = <0x0 0x80000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
soc {
|
|
|
|
uart0: uart@UARTA0_BASE {
|
|
|
|
compatible = "ti,cc32xx-uart";
|
|
|
|
reg = <UARTA0_BASE 0x4c>;
|
2017-03-24 02:41:32 +08:00
|
|
|
interrupts = <EXP_UARTA0 3>;
|
2017-02-05 11:50:45 +08:00
|
|
|
baud-rate = <115200>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
uart1: uart@UARTA1_BASE {
|
|
|
|
compatible = "ti,cc32xx-uart";
|
|
|
|
reg = <UARTA1_BASE 0x4c>;
|
2017-03-24 02:41:32 +08:00
|
|
|
interrupts = <EXP_UARTA1 3>;
|
2017-02-05 11:50:45 +08:00
|
|
|
baud-rate = <115200>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&nvic {
|
2017-03-28 01:13:40 +08:00
|
|
|
arm,num-irq-priority-bits = <3>;
|
2017-02-05 11:50:45 +08:00
|
|
|
};
|