@@ -106,6 +106,27 @@ const static PblBoardConfig s_board_config_snowy_bb = {
106106 .round_mask = false
107107};
108108
109+ const static PblBoardConfig s_board_config_snowy_emery_bb = {
110+ .dbgserial_uart_index = 2 , // USART3
111+ .pebble_control_uart_index = 1 , // USART2
112+ .button_map = {
113+ {STM32_GPIOG_INDEX , 4 }, // back
114+ {STM32_GPIOG_INDEX , 3 }, // up
115+ {STM32_GPIOG_INDEX , 1 }, // select
116+ {STM32_GPIOG_INDEX , 2 }, // down
117+ },
118+ .flash_size = 4096 , /* Kbytes - larger to aid in development and debugging */
119+ .ram_size = 512 , /* Kbytes */
120+ .num_rows = 228 ,
121+ .num_cols = 200 ,
122+ .num_border_rows = 0 ,
123+ .num_border_cols = 0 ,
124+ .row_major = true,
125+ .row_inverted = true,
126+ .col_inverted = true,
127+ .round_mask = false
128+ };
129+
109130const static PblBoardConfig s_board_config_s4_bb = {
110131 .dbgserial_uart_index = 2 , // USART3
111132 .pebble_control_uart_index = 1 , // USART2
@@ -642,6 +663,11 @@ static void pebble_snowy_init(MachineState *machine)
642663 pebble_32f439_init (machine , & s_board_config_snowy_bb );
643664}
644665
666+ static void pebble_snowy_emery_init (MachineState * machine )
667+ {
668+ pebble_32f439_init (machine , & s_board_config_snowy_emery_bb );
669+ }
670+
645671static void pebble_s4_init (MachineState * machine )
646672{
647673 pebble_32f439_init (machine , & s_board_config_s4_bb );
@@ -672,6 +698,14 @@ static void pebble_snowy_bb_machine_init(MachineClass *mc)
672698
673699DEFINE_MACHINE ("pebble-snowy-bb" , pebble_snowy_bb_machine_init )
674700
701+ static void pebble_snowy_emery_machine_init (MachineClass * mc )
702+ {
703+ mc -> desc = "Pebble smartwatch (snowy, but emery)" ;
704+ mc -> init = pebble_snowy_emery_init ;
705+ }
706+
707+ DEFINE_MACHINE ("pebble-snowy-emery-bb" , pebble_snowy_emery_machine_init )
708+
675709static void pebble_s4_bb_machine_init (MachineClass * mc )
676710{
677711 mc -> desc = "Pebble smartwatch (s4)" ;
0 commit comments