Browse Source

add L412 blink and cleanup differences

Jean-Claude 2 months ago
parent
commit
a1b9015589
48 changed files with 91 additions and 167 deletions
  1. 0
    4
      bluepill/blink/.gitignore
  2. 0
    4
      bluepill/can-node/.gitignore
  3. 0
    4
      bluepill/can/.gitignore
  4. 0
    4
      bluepill/pdp8/.gitignore
  5. 0
    4
      bluepill/sevenseg/.gitignore
  6. 0
    4
      bluepill/sw-can/.gitignore
  7. 0
    4
      bluepill/swo/.gitignore
  8. 0
    4
      bluepill/tone/.gitignore
  9. 0
    4
      diymore-f407vg/blink/.gitignore
  10. 0
    4
      diymore-f407vg/crc/.gitignore
  11. 0
    4
      diymore-f407vg/dfu-jump/.gitignore
  12. 0
    4
      diymore-f407vg/rand/.gitignore
  13. 0
    4
      diymore-f407vg/toggle/.gitignore
  14. 0
    4
      diymore-f407vg/usb/.gitignore
  15. 0
    4
      gold-dragon/blink/.gitignore
  16. 0
    4
      hytiny/blink/.gitignore
  17. 0
    4
      hytiny/can/.gitignore
  18. 0
    4
      hytiny/z80emu/.gitignore
  19. 0
    4
      multi-f103/blink/.gitignore
  20. 0
    4
      nucleo-f103/blink/.gitignore
  21. 4
    4
      nucleo-f103/blink/src/main.cpp
  22. 0
    4
      nucleo-f103/semihost/.gitignore
  23. 0
    4
      nucleo-l011/blink/.gitignore
  24. 0
    4
      nucleo-l031/blink/.gitignore
  25. 1
    1
      nucleo-l031/blink/platformio.ini
  26. 2
    3
      nucleo-l031/blink/src/main.cpp
  27. 1
    0
      nucleo-l412/blink/README.md
  28. 39
    0
      nucleo-l412/blink/boards/nucleo_l412kb.json
  29. 18
    0
      nucleo-l412/blink/platformio.ini
  30. 24
    0
      nucleo-l412/blink/src/main.cpp
  31. 0
    4
      nucleo-l432/blink/.gitignore
  32. 1
    1
      nucleo-l432/blink/platformio.ini
  33. 1
    2
      nucleo-l432/blink/src/main.cpp
  34. 0
    4
      nucleo-l432/can/.gitignore
  35. 0
    4
      nucleo-l433/blink/.gitignore
  36. 0
    4
      nucleo-l476/blink/.gitignore
  37. 0
    4
      olimex-p103/blink/.gitignore
  38. 0
    4
      olimex-p103/swo/.gitignore
  39. 0
    4
      open429/blink/.gitignore
  40. 0
    4
      open429/can-rate/.gitignore
  41. 0
    4
      open429/can/.gitignore
  42. 0
    4
      open429/lcd/.gitignore
  43. 0
    4
      open429/ltdc/.gitignore
  44. 0
    4
      open429/sdcard/.gitignore
  45. 0
    4
      open429/sdram/.gitignore
  46. 0
    4
      open429/spiflash/.gitignore
  47. 0
    4
      open429/timer/.gitignore
  48. 0
    4
      tworow-f407/blink/.gitignore

+ 0
- 4
bluepill/blink/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
bluepill/can-node/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
bluepill/can/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
bluepill/pdp8/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
bluepill/sevenseg/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
bluepill/sw-can/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
bluepill/swo/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
bluepill/tone/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
diymore-f407vg/blink/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
diymore-f407vg/crc/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
diymore-f407vg/dfu-jump/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
diymore-f407vg/rand/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
diymore-f407vg/toggle/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
diymore-f407vg/usb/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
gold-dragon/blink/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
hytiny/blink/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
hytiny/can/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
hytiny/z80emu/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
multi-f103/blink/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
nucleo-f103/blink/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 4
- 4
nucleo-f103/blink/src/main.cpp View File

@@ -4,17 +4,17 @@ UartBufDev< PinA<2>, PinA<3> > console;
4 4
 
5 5
 int printf(const char* fmt, ...) {
6 6
     va_list ap; va_start(ap, fmt); veprintf(console.putc, fmt, ap); va_end(ap);
7
-	return 0;
7
+    return 0;
8 8
 }
9 9
 
10 10
 PinA<5> led;
11 11
 
12 12
 int main() {
13 13
     console.init();
14
-	enableSysTick(); // no HSE crystal
15
-	led.mode(Pinmode::out);
14
+    enableSysTick(); // no HSE crystal
15
+    led.mode(Pinmode::out);
16 16
 
17
-    while (1) {
17
+    while (true) {
18 18
         printf("%d\n", ticks);
19 19
         led = 1;
20 20
         wait_ms(100);

+ 0
- 4
nucleo-f103/semihost/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
nucleo-l011/blink/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
nucleo-l031/blink/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 1
- 1
nucleo-l031/blink/platformio.ini View File

@@ -13,6 +13,6 @@ build_flags = -D STM32L0
13 13
 platform = ststm32
14 14
 board = nucleo_l031k6
15 15
 framework = stm32cube
16
-upload_protocol = stlink
16
+upload_protocol = mbed
17 17
 monitor_speed = 115200
18 18
 lib_deps = jeeh

+ 2
- 3
nucleo-l031/blink/src/main.cpp View File

@@ -1,6 +1,6 @@
1 1
 #include <jee.h>
2 2
 
3
-UartDev< PinA<2>, PinA<3> > console;
3
+UartBufDev< PinA<2>, PinA<3> > console;
4 4
 
5 5
 int printf(const char* fmt, ...) {
6 6
     va_list ap; va_start(ap, fmt); veprintf(console.putc, fmt, ap); va_end(ap);
@@ -12,10 +12,9 @@ PinB<3> led;
12 12
 int main() {
13 13
     console.init();
14 14
     console.baud(115200, fullSpeedClock());
15
-
16 15
     led.mode(Pinmode::out);
17 16
 
18
-    while (1) {
17
+    while (true) {
19 18
         printf("%d\n", ticks);
20 19
         led = 1;
21 20
         wait_ms(100);

+ 1
- 0
nucleo-l412/blink/README.md View File

@@ -0,0 +1 @@
1
+See <https://jeelabs.org/2018/standby-current-f103/>

+ 39
- 0
nucleo-l412/blink/boards/nucleo_l412kb.json View File

@@ -0,0 +1,39 @@
1
+{
2
+  "build": {
3
+    "cpu": "cortex-m4",
4
+    "extra_flags": "-DSTM32L412xx",
5
+    "f_cpu": "80000000L",
6
+    "mcu": "stm32l412kbt6",
7
+    "variant": "NUCLEO_L412KB"
8
+  },
9
+  "debug": {
10
+    "default_tools": [
11
+      "stlink"
12
+    ],
13
+    "jlink_device": "STM32L412KB",
14
+    "onboard_tools": [
15
+      "stlink"
16
+    ],
17
+    "openocd_target": "stm32l4x",
18
+    "svd_path": "STM32L4x2.svd"
19
+  },
20
+  "frameworks": [
21
+    "arduino",
22
+    "mbed",
23
+    "stm32cube"
24
+  ],
25
+  "name": "ST Nucleo L412KB",
26
+  "upload": {
27
+    "maximum_ram_size": 32768,
28
+    "maximum_size": 131072,
29
+    "protocol": "mbed",
30
+    "protocols": [
31
+      "jlink",
32
+      "stlink",
33
+      "blackmagic",
34
+      "mbed"
35
+    ]
36
+  },
37
+  "url": "https://developer.mbed.org/platforms/ST-Nucleo-L412KB/",
38
+  "vendor": "ST"
39
+}

+ 18
- 0
nucleo-l412/blink/platformio.ini View File

@@ -0,0 +1,18 @@
1
+; PlatformIO Project Configuration File
2
+;
3
+;   Build options: build flags, source filter
4
+;   Upload options: custom upload port, speed and extra flags
5
+;   Library options: dependencies, extra library storages
6
+;   Advanced options: extra scripting
7
+;
8
+; Please visit documentation for the other options and examples
9
+; http://docs.platformio.org/page/projectconf.html
10
+
11
+[env:l412]
12
+build_flags = -DSTM32L4
13
+platform = ststm32
14
+board = nucleo_l412kb
15
+framework = stm32cube
16
+upload_protocol = mbed
17
+monitor_speed = 115200
18
+lib_deps = jeeh

+ 24
- 0
nucleo-l412/blink/src/main.cpp View File

@@ -0,0 +1,24 @@
1
+#include <jee.h>
2
+
3
+UartBufDev< PinA<2>, PinA<3> > console;
4
+
5
+int printf(const char* fmt, ...) {
6
+    va_list ap; va_start(ap, fmt); veprintf(console.putc, fmt, ap); va_end(ap);
7
+    return 0;
8
+}
9
+
10
+PinB<3> led;
11
+
12
+int main() {
13
+    console.init();
14
+    console.baud(115200, fullSpeedClock());
15
+    led.mode(Pinmode::out);
16
+
17
+    while (true) {
18
+        printf("%d\n", ticks);
19
+        led = 1;
20
+        wait_ms(100);
21
+        led = 0;
22
+        wait_ms(400);
23
+    }
24
+}

+ 0
- 4
nucleo-l432/blink/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 1
- 1
nucleo-l432/blink/platformio.ini View File

@@ -13,6 +13,6 @@ build_flags = -D STM32L4
13 13
 platform = ststm32
14 14
 board = nucleo_l432kc
15 15
 framework = stm32cube
16
-upload_protocol = stlink
16
+upload_protocol = mbed
17 17
 monitor_speed = 115200
18 18
 lib_deps = jeeh

+ 1
- 2
nucleo-l432/blink/src/main.cpp View File

@@ -12,10 +12,9 @@ PinB<3> led;
12 12
 int main() {
13 13
     console.init();
14 14
     console.baud(115200, fullSpeedClock());
15
-
16 15
     led.mode(Pinmode::out);
17 16
 
18
-    while (1) {
17
+    while (true) {
19 18
         printf("%d\n", ticks);
20 19
         led = 1;
21 20
         wait_ms(100);

+ 0
- 4
nucleo-l432/can/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
nucleo-l433/blink/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
nucleo-l476/blink/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
olimex-p103/blink/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
olimex-p103/swo/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
open429/blink/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
open429/can-rate/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
open429/can/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
open429/lcd/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
open429/ltdc/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
open429/sdcard/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
open429/sdram/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
open429/spiflash/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
open429/timer/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

+ 0
- 4
tworow-f407/blink/.gitignore View File

@@ -1,4 +0,0 @@
1
-.pioenvs
2
-.piolibdeps
3
-.clang_complete
4
-.gcc-flags.json

Loading…
Cancel
Save