Skip to content

Commit 1c67ad8

Browse files
committed
Rebrand to unicore-mx
1 parent ed20591 commit 1c67ad8

File tree

515 files changed

+1539
-1542
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

515 files changed

+1539
-1542
lines changed

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "libopencm3"]
2-
path = libopencm3
3-
url = https://github.com/libopencm3/libopencm3.git
1+
[submodule "unicore-mx"]
2+
path = unicore-mx
3+
url = https://github.com/insane-adding-machines/unicore-mx.git

Makefile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
##
2-
## This file is part of the libopencm3 project.
2+
## This file is part of the unicore-mx project.
33
##
44
## Copyright (C) 2009 Uwe Hermann <[email protected]>
55
##
@@ -34,7 +34,7 @@ Q := @
3434
MAKEFLAGS += --no-print-directory
3535
endif
3636

37-
OPENCM3_DIR ?= $(realpath libopencm3)
37+
UCMX_DIR ?= $(realpath unicore-mx)
3838
EXAMPLE_RULES = elf
3939

4040
all: build
@@ -54,28 +54,28 @@ images: build
5454
build: lib examples
5555

5656
lib:
57-
$(Q)if [ ! "`ls -A $(OPENCM3_DIR)`" ] ; then \
57+
$(Q)if [ ! "`ls -A $(UCMX_DIR)`" ] ; then \
5858
printf "######## ERROR ########\n"; \
59-
printf "\tlibopencm3 is not initialized.\n"; \
59+
printf "\tunicore-mx is not initialized.\n"; \
6060
printf "\tPlease run:\n"; \
6161
printf "\t$$ git submodule init\n"; \
6262
printf "\t$$ git submodule update\n"; \
6363
printf "\tbefore running make.\n"; \
6464
printf "######## ERROR ########\n"; \
6565
exit 1; \
6666
fi
67-
$(Q)$(MAKE) -C $(OPENCM3_DIR)
67+
$(Q)$(MAKE) -C $(UCMX_DIR)
6868

6969
EXAMPLE_DIRS:=$(sort $(dir $(wildcard $(addsuffix /*/*/Makefile,$(addprefix examples/,$(TARGETS))))))
7070
$(EXAMPLE_DIRS): lib
7171
@printf " BUILD $@\n";
72-
$(Q)$(MAKE) --directory=$@ OPENCM3_DIR=$(OPENCM3_DIR) $(EXAMPLE_RULES)
72+
$(Q)$(MAKE) --directory=$@ UCMX_DIR=$(UCMX_DIR) $(EXAMPLE_RULES)
7373

7474
examples: $(EXAMPLE_DIRS)
7575
$(Q)true
7676

7777
clean: $(EXAMPLE_DIRS:=.clean) styleclean
78-
$(Q)$(MAKE) -C libopencm3 clean
78+
$(Q)$(MAKE) -C unicore-mx clean
7979

8080
stylecheck: $(EXAMPLE_DIRS:=.stylecheck)
8181
styleclean: $(EXAMPLE_DIRS:=.styleclean)
@@ -84,14 +84,14 @@ styleclean: $(EXAMPLE_DIRS:=.styleclean)
8484
%.clean:
8585
$(Q)if [ -d $* ]; then \
8686
printf " CLEAN $*\n"; \
87-
$(MAKE) -C $* clean OPENCM3_DIR=$(OPENCM3_DIR) || exit $?; \
87+
$(MAKE) -C $* clean UCMX_DIR=$(UCMX_DIR) || exit $?; \
8888
fi;
8989

9090
%.styleclean:
91-
$(Q)$(MAKE) -C $* styleclean OPENCM3_DIR=$(OPENCM3_DIR)
91+
$(Q)$(MAKE) -C $* styleclean UCMX_DIR=$(UCMX_DIR)
9292

9393
%.stylecheck:
94-
$(Q)$(MAKE) -C $* stylecheck OPENCM3_DIR=$(OPENCM3_DIR)
94+
$(Q)$(MAKE) -C $* stylecheck UCMX_DIR=$(UCMX_DIR)
9595

9696

9797
.PHONY: build lib examples $(EXAMPLE_DIRS) install clean stylecheck styleclean \

README.md

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
# README
22

3-
[![Gitter channel](https://badges.gitter.im/libopencm3/discuss.svg)](https://gitter.im/libopencm3/discuss)
3+
This repository contains assorted example projects for unicore-mx.
44

5-
This repository contains assorted example projects for libopencm3.
6-
7-
The libopencm3 project aims to create an open-source firmware library for
5+
The unicore-mx project aims to create an open-source firmware library for
86
various ARM Cortex-M microcontrollers.
97

10-
For more information visit http://libopencm3.org
11-
128
The examples are meant as starting points for different subsystems on multitude
139
of platforms.
1410

@@ -26,10 +22,10 @@ For more verbose output, to see compiler command lines, use "make V=1"
2622
For insanity levels of verboseness, use "make V=99"
2723

2824
The makefiles are generally useable for your own projects with
29-
only minimal changes for the libopencm3 install path (See Reuse)
25+
only minimal changes for the unicore-mx install path (See Reuse)
3026

3127
## Make Flash Target
32-
For flashing the 'miniblink' example (after you built libopencm3 and the
28+
For flashing the 'miniblink' example (after you built unicore-mx and the
3329
examples by typing 'make' at the top-level directory) onto the Olimex
3430
STM32-H103 eval board (ST STM32F1 series microcontroller), you can execute:
3531

@@ -120,63 +116,63 @@ This example uses the st-util by texane that you can find on [GitHub](https://gi
120116

121117
## Reuse
122118

123-
If you want to use libopencm3 in your own project, this examples repository
119+
If you want to use unicore-mx in your own project, this examples repository
124120
shows the general way. (If there's interest, we can make a stub template
125121
repository)
126122

127123
1. Create an empty repository
128124

129125
mkdir mycoolrobot && cd mycoolrobot && git init .
130126

131-
2. Add libopencm3 as a submodule
127+
2. Add unicore-mx as a submodule
128+
129+
git submodule add https://github.com/insane-adding-machines/unicore-mx
132130

133-
git submodule add https://github.com/libopencm3/libopencm3
134-
135131

136132
3. Grab a copy of the basic rules
137-
These urls grab the latest from the libopencm3-examples repository
133+
These urls grab the latest from the unicore-mx-examples repository
138134

139135
wget \
140-
https://raw.githubusercontent.com/libopencm3/libopencm3-examples/master/examples/Makefile.rules \
141-
-O libopencm3.rules.mk
136+
https://raw.githubusercontent.com/insane-adding-machines/unicore-mx-examples/master/examples/Makefile.rules \
137+
-O unicore-mx.rules.mk
142138

143139
4. Grab a copy of your target Makefile in this case, for STM32L1
144140

145-
wget \
146-
https://raw.githubusercontent.com/libopencm3/libopencm3-examples/master/examples/stm32/l1/Makefile.include \
147-
-O libopencm3.target.mk
141+
wget \
142+
https://raw.githubusercontent.com/insane-adding-machines/unicore-mx-examples/master/examples/stm32/l1/Makefile.include \
143+
-O unicore-mx.target.mk
148144

149-
5. Edit paths in `libopencm3.target.mk`
150-
Edit the _last_ line of `libopencm3.target.mk` and change the include to read
151-
include `../libopencm3.rules.mk` (the amount of .. depends on where you put your
145+
5. Edit paths in `unicore-mx.target.mk`
146+
Edit the _last_ line of `unicore-mx.target.mk` and change the include to read
147+
include `../unicore-mx.rules.mk` (the amount of .. depends on where you put your
152148
project in the next step..
153149

154150
6. beg/borrow/steal an example project
155151
For sanity's sake, use the same target as the makefile you grabbed up above)
156152

157153
cp -a \
158-
somewhere/libopencm3-examples/examples/stm32/l1/stm32ldiscovery/miniblink \
154+
somewhere/unicore-mx-examples/examples/stm32/l1/stm32ldiscovery/miniblink \
159155
myproject
160156

161-
Add the path to OPENCM3\_DIR, and modify the path to makefile include
157+
Add the path to UCMX\_DIR, and modify the path to makefile include
162158

163159

164160
diff -u
165161
---
166162
2014-01-24 21:10:52.687477831 +0000
167163
+++ Makefile 2014-03-23 12:27:57.696088076 +0000
168164
@@ -19,7 +19,8 @@
169-
165+
170166
BINARY = miniblink
171-
172-
+OPENCM3_DIR=../libopencm3
173-
LDSCRIPT = $(OPENCM3_DIR)/lib/stm32/l1/stm32l15xxb.ld
174-
167+
168+
+UCMX_DIR=../unicore-mx
169+
LDSCRIPT = $(UCMX_DIR)/lib/stm32/l1/stm32l15xxb.ld
170+
175171
-include ../../Makefile.include
176-
+include ../libopencm3.target.mk
177-
172+
+include ../unicore-mx.target.mk
173+
178174
You're done :)
179175

180-
You need to run "make" inside the libopencm3 directory once to build the
176+
You need to run "make" inside the unicore-mx directory once to build the
181177
library, then you can just run make/make clean in your project directory as
182178
often as you like.

examples/Makefile.rules

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
##
2-
## This file is part of the libopencm3 project.
2+
## This file is part of the unicore-mx project.
33
##
44
## Copyright (C) 2009 Uwe Hermann <[email protected]>
55
## Copyright (C) 2010 Piotr Esden-Tempski <[email protected]>
@@ -52,28 +52,28 @@ LDSCRIPT ?= $(BINARY).ld
5252
OBJS += $(BINARY).o
5353

5454

55-
ifeq ($(strip $(OPENCM3_DIR)),)
55+
ifeq ($(strip $(UCMX_DIR)),)
5656
# user has not specified the library path, so we try to detect it
5757

5858
# where we search for the library
59-
LIBPATHS := ./libopencm3 ../../../../libopencm3 ../../../../../libopencm3
59+
LIBPATHS := ./unicore-mx ../../../../unicore-mx ../../../../../unicore-mx
6060

61-
OPENCM3_DIR := $(wildcard $(LIBPATHS:=/locm3.sublime-project))
62-
OPENCM3_DIR := $(firstword $(dir $(OPENCM3_DIR)))
61+
UCMX_DIR := $(wildcard $(LIBPATHS:=/ucmx.sublime-project))
62+
UCMX_DIR := $(firstword $(dir $(UCMX_DIR)))
6363

64-
ifeq ($(strip $(OPENCM3_DIR)),)
65-
$(warning Cannot find libopencm3 library in the standard search paths.)
66-
$(error Please specify it through OPENCM3_DIR variable!)
64+
ifeq ($(strip $(UCMX_DIR)),)
65+
$(warning Cannot find unicore-mx library in the standard search paths.)
66+
$(error Please specify it through UCMX_DIR variable!)
6767
endif
6868
endif
6969

7070
ifeq ($(V),1)
71-
$(info Using $(OPENCM3_DIR) path to library)
71+
$(info Using $(UCMX_DIR) path to library)
7272
endif
7373

74-
INCLUDE_DIR = $(OPENCM3_DIR)/include
75-
LIB_DIR = $(OPENCM3_DIR)/lib
76-
SCRIPT_DIR = $(OPENCM3_DIR)/scripts
74+
INCLUDE_DIR = $(UCMX_DIR)/include
75+
LIB_DIR = $(UCMX_DIR)/lib
76+
SCRIPT_DIR = $(UCMX_DIR)/scripts
7777

7878
###############################################################################
7979
# C flags

examples/lpc/lpc13xx/Makefile.include

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
##
2-
## This file is part of the libopencm3 project.
2+
## This file is part of the unicore-mx project.
33
##
44
## Copyright (C) 2009 Uwe Hermann <[email protected]>
55
## Copyright (C) 2010 Piotr Esden-Tempski <[email protected]>
@@ -18,7 +18,7 @@
1818
## along with this library. If not, see <http://www.gnu.org/licenses/>.
1919
##
2020

21-
LIBNAME = opencm3_lpc13xx
21+
LIBNAME = ucmx_lpc13xx
2222
DEFS += -DLPC13XX
2323

2424
FP_FLAGS ?= -msoft-float

examples/lpc/lpc13xx/lpc-p1343/lpc-p1343.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* This file is part of the libopencm3 project.
2+
* This file is part of the unicore-mx project.
33
*
44
* Copyright (C) 2010 Uwe Hermann <[email protected]>
55
*
@@ -27,4 +27,4 @@ MEMORY
2727
}
2828

2929
/* Include the common ld script. */
30-
INCLUDE libopencm3_lpc13xx.ld
30+
INCLUDE libucmx_lpc13xx.ld

examples/lpc/lpc13xx/lpc-p1343/miniblink/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
##
2-
## This file is part of the libopencm3 project.
2+
## This file is part of the unicore-mx project.
33
##
44
## Copyright (C) 2010 Uwe Hermann <[email protected]>
55
##

examples/lpc/lpc13xx/lpc-p1343/miniblink/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# README
22

3-
This is the smallest-possible example program using libopencm3.
3+
This is the smallest-possible example program using unicore-mx.
44

55
It's intended for the NXP LPC1343-based
66
[Olimex LPC-1343 eval board](http://olimex.com/dev/lpc-p1343.html for details).

examples/lpc/lpc13xx/lpc-p1343/miniblink/miniblink.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* This file is part of the libopencm3 project.
2+
* This file is part of the unicore-mx project.
33
*
44
* Copyright (C) 2010 Uwe Hermann <[email protected]>
55
*
@@ -17,8 +17,8 @@
1717
* along with this library. If not, see <http://www.gnu.org/licenses/>.
1818
*/
1919

20-
// #include <libopencm3/lpc13xx/rcc.h>
21-
#include <libopencm3/lpc13xx/gpio.h>
20+
// #include <unicore-mx/lpc13xx/rcc.h>
21+
#include <unicore-mx/lpc13xx/gpio.h>
2222

2323
static void gpio_setup(void)
2424
{

examples/lpc/lpc17xx/Makefile.include

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
##
2-
## This file is part of the libopencm3 project.
2+
## This file is part of the unicore-mx project.
33
##
44
## Copyright (C) 2009 Uwe Hermann <[email protected]>
55
## Copyright (C) 2010 Piotr Esden-Tempski <[email protected]>
@@ -19,7 +19,7 @@
1919
##
2020

2121

22-
LIBNAME = opencm3_lpc17xx
22+
LIBNAME = ucmx_lpc17xx
2323
DEFS += -DLPC17XX
2424

2525
FP_FLAGS ?= -msoft-float

0 commit comments

Comments
 (0)