Skip to content

Commit

Permalink
Merge pull request #14 from shaoziyang/master
Browse files Browse the repository at this point in the history
add PybNano V2 baord
  • Loading branch information
mmoskal authored Mar 25, 2020
2 parents 65fd893 + d51cb8b commit 25638e5
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions boards/pybnanov2/board.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#ifndef BOARD_H
#define BOARD_H

#include "../../pins.h"

#define OSC_FREQ 8
#define USBDEVICESTRING "PYB Nano v2"
#define USBMFGSTRING "pybCN"
#define BOARD_FLASH_SECTORS 8
#define BOARD_FLASH_SIZE (512 * 1024)


#ifdef DEFINE_CONFIGDATA
__attribute__((section(".config"))) __attribute__((used)) //
const uint32_t configData[] = {
/* CF2 START */
513675505, 539130489, // magic
32, 100, // used entries, total entries
CFG_PIN_LED1, 0, // PA_0 red
CFG_PIN_LED2, 1, // PA_1 green
CFG_PIN_LED3, 2, // PA_2 orange
CFG_PIN_LED4, 3, // PA_3 blue
CFG_PIN_BTN_A, 0x2D, // PC_13
204, 0x80000, // FLASH_BYTES = 0x80000
205, 0x18000, // RAM_BYTES = 0x18000
208, 0x2d89a8a6, // BOOTLOADER_BOARD_ID = 0x2d89a8a6
209, 0x57755a57, // UF2_FAMILY = STM32F401
210, 0x10, // PINS_PORT_SIZE = PA_16
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
/* CF2 END */
};
#endif

#endif /* BOARD_H */

0 comments on commit 25638e5

Please sign in to comment.